2 changed files with 35 additions and 9 deletions
			
			
		@ -1,10 +1,31 @@ | 
				
			|||||
{{ define "main" }} | 
					{{ define "main" }} | 
				
			||||
  <h1>{{ .Title }}</h1> | 
					  <h1>{{ .Title }}</h1> | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					  {{- with .Params.authors }} | 
				
			||||
 | 
					  {{- $author := (index . 0) }} | 
				
			||||
 | 
					  <h4>Author: <a href={{ printf "/%s/%s" "authors" (urlize $author) }}>{{ $author }}</a></h4> | 
				
			||||
 | 
					  {{- end }} | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					  {{- if (not .Params.hideDate) }} | 
				
			||||
 | 
					  {{- $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }} | 
				
			||||
 | 
					  {{- $dateHuman := .Date | time.Format "Mon | Jan 2, 2006" }} | 
				
			||||
 | 
					  <h4>Posted: <time datetime="{{ $dateMachine }}">{{ $dateHuman }}</time></h4> | 
				
			||||
 | 
					  {{- end }} | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					  {{- range (.GetTerms "tags") }} | 
				
			||||
 | 
					  <span><a href="{{ .Permalink }}">{{ .LinkTitle }}</a></span> | 
				
			||||
 | 
					  {{- end }} | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					  {{- partial "image.html" | 
				
			||||
 | 
					     (dict | 
				
			||||
 | 
					      "image" (.Resources.GetMatch "featured") | 
				
			||||
 | 
					      "alt" .Params.featured.alt | 
				
			||||
 | 
					      "sizes" (slice 320 480 600 800) | 
				
			||||
 | 
					      "classes" (slice "shadow" "featured")) }} | 
				
			||||
  {{ .Content }} | 
					  {{ .Content }} | 
				
			||||
  <section> | 
					  <section class="article-group author-articles"> | 
				
			||||
  {{ range .Pages }} | 
					  {{- range .Data.Pages }} | 
				
			||||
    <h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2> | 
					    {{ partial "article.html" . }} | 
				
			||||
    {{ .Summary }} | 
					  {{- end }} | 
				
			||||
  {{ end }} | 
					 | 
				
			||||
  </section> | 
					  </section> | 
				
			||||
{{ end }} | 
					{{ end }} | 
				
			||||
 | 
				
			|||||
					Loading…
					
					
				
		Reference in new issue