aboutsummaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/list.html7
-rw-r--r--layouts/partials/header.html2
2 files changed, 7 insertions, 2 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 2bc2b1e..cffc40d 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -1,5 +1,10 @@
{{ define "main" }}
<div class="container">
- {{ .Content }}
+ <h1>{{ .Title }}</h1>
+ <ul>
+ {{ range .Pages }}
+ <li><a href="{{ .Permalink }}">{{ .Date.Format "2006-01-02" }} | {{ .Title }}</a></li>
+ {{ end }}
+ </ul>
</div>
{{ end }}
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 195573e..61fe360 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -2,7 +2,7 @@
<nav class="navbar navbar-expand-sm flex-column flex-sm-row p-0">
<a class="navbar-brand mr-sm-auto" href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a>
<div class="navbar-nav flex-row">
- {{ with .Site.Menus.navbar }}
+ {{ with .Site.Menus.main }}
{{ $navbar_len := len . }}
{{ range $i, $nav_item := . }}
<a class="nav-item nav-link" href="{{ $nav_item.URL | relURL }}">{{ $nav_item.Name }}</a>