General improvements
This commit is contained in:
parent
2af206caf9
commit
e17269bc14
5 changed files with 74 additions and 84 deletions
|
@ -1,15 +1,9 @@
|
|||
{{ $recentupdatessection := .Site.Params.recentupdates | default "blog"}}
|
||||
|
||||
{{ with .Site.GetPage "section" $recentupdatessection }}
|
||||
|
||||
<div id="recent-updates">
|
||||
|
||||
<h2>{{ i18n "latestUpdates" }}</h2>
|
||||
|
||||
{{ range (first 3 (where .Pages "Section" $recentupdatessection)) }}
|
||||
<p class="timestamp">{{ .Date.Format "2006-01-02" }} <a href="{{ .Permalink }}">{{ .Title }}</a></p>
|
||||
{{ end }}
|
||||
|
||||
</div>
|
||||
|
||||
{{ end }}
|
||||
{{- $recentupdatessection := .Site.Params.recentupdates | default "blog" }}
|
||||
{{- with .Site.GetPage "section" $recentupdatessection }}
|
||||
<div id="recent-updates">
|
||||
<h2>{{ i18n "latestUpdates" }}</h2>
|
||||
{{- range (first 3 (where .Pages "Section" $recentupdatessection)) }}
|
||||
<p class="timestamp">{{ .Date.Format "2006-01-02" }} <a href="{{ .Permalink }}">{{ .Title }}</a></p>
|
||||
{{- end }}
|
||||
</div>
|
||||
{{ end -}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue