src

Go monorepo.
git clone git://code.dwrz.net/src
Log | Files | Refs

timeline.gohtml (880B)


      1 {{ define "timeline" }}
      2   <article class="wide128">
      3     {{ range .Years }}
      4       <h2 class="bg-green white">{{ .Text }}</h2>
      5       {{ range .Entries }}
      6 	{{ if .Cover }}
      7 	  <div class="timeline-row">
      8 	    <div>
      9 	      <a href="/timeline/{{ .Link }}/">
     10 		<img alt="" src="/static/media/480/{{ .Cover }}">
     11 	      </a>
     12 	    </div>
     13 	    <div>
     14 	      <a class="text-large" href="/timeline/{{ .Link }}/">
     15 		{{ .Title }}
     16 	      </a>
     17 	      <br>
     18 	      <span class="text-small gray3">
     19 		{{ .Date.Format "2006-01-02" }}
     20 	      </span>
     21 	    </div>
     22 	  </div>
     23 	{{ else }}
     24 	  <div class="timeline-row-single">
     25 	    <div>
     26 	      <a class="text-large" href="/timeline/{{ .Link }}/">
     27 		{{ .Title }}
     28 	      </a>
     29 	      <br>
     30 	      <span class="text-small gray3">
     31 		{{ .Date.Format "2006-01-02" }}
     32 	      </span>
     33 	    </div>
     34 	  </div>
     35 	{{ end }}
     36       {{ end }}
     37     {{ end }}
     38   </article>
     39 {{ end }}