mirror of
https://github.com/jbowdre/runtimeterror.git
synced 2024-11-10 01:52:19 +00:00
35 lines
1 KiB
HTML
35 lines
1 KiB
HTML
{{ if .Params.description }}<p>{{ .Params.description }}</p>{{ end }}
|
|
{{ if or (.Params.author) (.Params.date) }}
|
|
<p>
|
|
{{ if .Params.author }}By {{ .Params.author }}{{ if .Date }}, {{ end }}{{ end }}
|
|
{{ if .Date }}{{ .Date.Format "2006-01-02" }}{{ end }}
|
|
</p>
|
|
<p>
|
|
{{- with .Params.tags -}}
|
|
{{- range . }}
|
|
{{- $tag := urlize . -}}
|
|
[<a href='{{ absLangURL (printf "tags/%s" $tag) }}' title="{{ . }}">{{ . }}</a>]
|
|
{{- end }}
|
|
{{- end }}
|
|
</p>
|
|
{{ end }}
|
|
{{ if and (gt .WordCount 400 ) (gt (len .TableOfContents) 180) }}
|
|
<hr>
|
|
<h2>On this page</h2>
|
|
{{ .TableOfContents }}
|
|
<hr>
|
|
{{ end }}
|
|
|
|
{{- $posts := where .Site.RegularPages "Type" "in" .Site.Params.mainSections }}
|
|
{{- $featured := default 8 .Site.Params.numberOfFeaturedPosts }}
|
|
{{- $featuredPosts := first $featured (where $posts "Params.featured" true)}}
|
|
{{- with $featuredPosts }}
|
|
<h2>Featured Posts</h2>
|
|
<ul>
|
|
{{- range . }}
|
|
<li>
|
|
<a href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title | markdownify }}</a>
|
|
</li>
|
|
{{- end }}
|
|
</ul>
|
|
{{- end }}
|