initial commit
This commit is contained in:
parent
2012aa8834
commit
9ddfa58ace
2289 changed files with 11217 additions and 0 deletions
|
@ -0,0 +1,38 @@
|
|||
<h2>
|
||||
{{ $title := .Title }}
|
||||
{{ $section := .Section | humanize }}
|
||||
{{ if and (ne $section $title) (ne $section "Tags") (ne $title (printf "%ss" $section)) }}
|
||||
{{ $section }}:
|
||||
{{ end }}
|
||||
{{ if and (eq $section "Tags") (eq $section $title) }}
|
||||
{{ i18n "tagsColumn" }}
|
||||
{{ else }}
|
||||
{{ if and (eq $section "Tags") (ne $section $title) }}{{ i18n "tagColumn" }} #{{ end }}{{ $title }}
|
||||
{{ end }}
|
||||
</h2>
|
||||
<ul class="list">
|
||||
{{ if and (eq $section "Tags") (eq $section $title) }}
|
||||
{{/* if we're in the Tags section, sort alphabetically and don't show the date */}}
|
||||
{{ range (sort .Pages "Title") }}
|
||||
<li>
|
||||
<a href="{{ .Permalink }}">#{{ .Title }}</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
{{ range .Pages }}
|
||||
<li>
|
||||
<div>
|
||||
<span class="date">
|
||||
{{- partial "date.html" .Date -}}
|
||||
</span>
|
||||
<span>
|
||||
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
||||
{{- if ne (.Date | time.Format "Jan 02, 2006 3:04 PM Z07:00") (.Lastmod.Format "Jan 02, 2006 3:04 PM Z07:00")
|
||||
-}}
|
||||
(updated: {{- partial "date.html" .Lastmod -}})
|
||||
{{ end }} </span>
|
||||
</div>
|
||||
</li>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</ul>
|
Loading…
Add table
Add a link
Reference in a new issue