35 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			HTML
		
	
	
			
		
		
	
	
			35 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			HTML
		
	
	
| {{ define "main" }}
 | |
| <header>
 | |
|     <h2>{{.Title}}</h2>
 | |
| </header>
 | |
| <!-- "{{.Content}}" pulls from the markdown content of the corresponding
 | |
|      _index.md -->
 | |
| <main>
 | |
|     <header>
 | |
|         {{.Content }}
 | |
|     </header>
 | |
|     <section class="posts-list">
 | |
|         <!--
 | |
|             Ranges pages by the publish date, in reverse order, to display the
 | |
|             post titles of the section from most recent to older. If the pages
 | |
|             has the parameter announce, then it displays a marked warning.
 | |
|         -->
 | |
|         {{ range .Pages.ByPublishDate.Reverse }}
 | |
|           <article>
 | |
|             {{ if .Params.Announce }}
 | |
|             <a href="{{ .Permalink }}"
 | |
|               title="{{ i18n "announcedLive" }}">
 | |
|               {{- .Title -}}
 | |
|             </a> <mark>{{ i18n "announce" }}</mark>
 | |
|             {{ else }}
 | |
|             <a href="{{ .Permalink }}">
 | |
|              {{- .Title -}}
 | |
|             </a>
 | |
|             {{ end }}
 | |
|             {{ partial "lists-footer.html" . }}
 | |
|           </article>
 | |
|         {{ end }}
 | |
|     </section>
 | |
| </main>
 | |
| {{ end }}
 |