diff options
-rw-r--r-- | layouts/_default/list.html | 6 | ||||
-rw-r--r-- | layouts/_default/section.html | 14 | ||||
-rw-r--r-- | layouts/index.html | 5 |
3 files changed, 21 insertions, 4 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html index d45b0df..978cf16 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,6 +1,6 @@ -{{- define "main" -}} -<div class="post-header"> - <h1 class="post-title">{{ .Title }}</h1> +{{ define "main" -}} +<div> + <h1>{{ .Title }}</h1> </div> <ul> {{ range .Paginator.Pages -}} diff --git a/layouts/_default/section.html b/layouts/_default/section.html new file mode 100644 index 0000000..c7faf14 --- /dev/null +++ b/layouts/_default/section.html @@ -0,0 +1,14 @@ +{{ define "main" -}} +<div> + <h1>{{ .Title }}</h1> +</div> +<div> + {{ .Content -}} +</div> +<ul> + {{ range .Paginator.Pages -}} + <li>{{ with .Date }}{{ .Format "2006-01-02 15:04" }} - {{ end }}<a href="{{ .RelPermalink }}">{{ .Title }}</a>{{ with .Description }}: {{ . }}{{ end }}</li> + {{ end -}} +</ul> +</main> +{{ end }} diff --git a/layouts/index.html b/layouts/index.html index 61ed863..02cc477 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,4 +1,7 @@ -{{- define "main" -}} +{{ define "main" -}} +<div> + {{ .Content -}} +</div> <ul> {{ range (.Paginate ( where .Site.RegularPages "Type" "in" site.Params.mainSections )).Pages -}} <li>{{ .Date.Format "2006-01-02 15:04" }} - <a href="{{ .RelPermalink }}">{{ .Title }}</a></li> |