diff options
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/list.html | 5 | ||||
-rw-r--r-- | layouts/partials/article_list_item.html | 3 | ||||
-rw-r--r-- | layouts/shortcodes/menu.html | 12 |
3 files changed, 14 insertions, 6 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 827bdc9..a7b0668 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,5 +1,8 @@ {{ define "main" }} +{{if .Page.Content}} + {{ .Page.Content }} +{{ else }} {{ if in .Page.Params.Categories "blog" }} {{ partial "partials/blog_index.html" . }} {{ else if in .Page.Params.Categories "article" }} @@ -12,4 +15,6 @@ {{ end }} {{ end }} +{{end}} + {{ end }} diff --git a/layouts/partials/article_list_item.html b/layouts/partials/article_list_item.html index 7f09c98..0b530c4 100644 --- a/layouts/partials/article_list_item.html +++ b/layouts/partials/article_list_item.html @@ -1,6 +1,7 @@ <div class="list-item"> - <a href="{{ .Page.Permalink }}"> <time>{{ .PublishDate.Format "2006-01-02" }}</time> + <a href="{{ .Page.Permalink }}"> + <span>{{ .Page.Title }}</span> </a> </div> diff --git a/layouts/shortcodes/menu.html b/layouts/shortcodes/menu.html index 356c675..3f6cc2f 100644 --- a/layouts/shortcodes/menu.html +++ b/layouts/shortcodes/menu.html @@ -4,15 +4,17 @@ <nav> <ol> {{- range index site.Menus $menuID }} - <li> - <a href="{{ .URL }}"> - {{ .Name }} - </a> - + {{if .Params.placeholder }} + <li class="placeholder">{{.Name}} + {{else}} + <li><a href="{{ .URL }}">{{ .Name }}</a> + {{end}} + {{ if .HasChildren }} <ul> {{ range .Children }} <li> + <a href="{{ .URL }}"> {{ .Name }} </a> |