Moving so much stuff around
This commit is contained in:
parent
b1719e8d24
commit
cd10df9d32
13 changed files with 34 additions and 22 deletions
|
|
@ -3,6 +3,8 @@
|
|||
<header id="post-header">
|
||||
<h1>{{ .Title }}</h1>
|
||||
<div>
|
||||
Part of the <a href="{{ .Parent.Permalink }}">{{ .Parent.Title }}</a> series
|
||||
</br>
|
||||
{{- if isset .Params "date" -}}
|
||||
{{ if eq .Lastmod .Date }}
|
||||
<time>{{ .Date | time.Format (i18n "post.created") }}</time>
|
||||
|
|
@ -1,4 +1,5 @@
|
|||
{{ define "main" }}
|
||||
{{ .Content }}
|
||||
<h3>{{ i18n "posts.title" }}</h3>
|
||||
<ul id="posts">
|
||||
{{- range .Pages }}
|
||||
|
|
|
|||
|
|
@ -1,12 +1,10 @@
|
|||
{{ define "main" }}
|
||||
{{ .Content }}
|
||||
<h3>Latest blog posts</h3>
|
||||
{{ with .GetPage "blog" }}
|
||||
<ul id="posts">
|
||||
{{- range first 5 .Pages }}
|
||||
{{ .Render "li" }}
|
||||
{{- end }}
|
||||
{{ range .Site.RegularPages }}
|
||||
{{ .Render "li" }}
|
||||
{{ end }}
|
||||
</ul>
|
||||
<a href="{{ .Permalink }}">Older</a>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
|
|
|||
|
|
@ -11,4 +11,14 @@
|
|||
</nav>
|
||||
|
||||
{{ .Content }}
|
||||
|
||||
{{ if compare.Gt .Pages.Len 0 }}
|
||||
<h3>{{ i18n "posts.title" }}</h3>
|
||||
<ul id="posts">
|
||||
{{- range .Pages }}
|
||||
{{ .Render "li" }}
|
||||
{{- end }}
|
||||
</ul>
|
||||
{{ end }}
|
||||
|
||||
{{ end }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue