diff options
author | Leon Stafford <me@ljs.dev> | 2020-09-15 18:18:09 +0300 |
---|---|---|
committer | Leon Stafford <me@ljs.dev> | 2020-09-15 18:18:09 +0300 |
commit | aca967458325b6789ccf34cb88ae32a41e67d3e5 (patch) | |
tree | 7f5c76efeb75c27dc2808394488602cea9755c8e | |
parent | 4b6740ee2860ec1226db3d432bcc4dc8fef8c9b3 (diff) |
adjust meta and list views
-rw-r--r-- | layouts/_default/list.html | 20 | ||||
-rw-r--r-- | layouts/_default/single.html | 5 |
2 files changed, 15 insertions, 10 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 118b1a3..7f7e25b 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -2,20 +2,22 @@ <h1>{{ .Title }}</h1> -The title and an excerpt of each article is listed below. The excerpt is a - hyperlink you can follow to the full article. - {{ range .Pages.ByPublishDate.Reverse }} - <h3><a class="test1" href="{{ .RelPermalink }}">{{ .Title }}</a></h3> + <h3> + <a href="{{ .RelPermalink }}">{{ .Title }}</a> + </h3> - {{ partial "metadata.html" . }} + + {{ if gt (len .Summary) 0 }} - <p> - <a class="test2" href="{{ .RelPermalink }}"> + <p> {{ .Summary | safeHTML }} - </a> - </p> + + <a href="{{ .RelPermalink }}">{{ .Title }} full article</a> + </p> + {{ end }} + {{ end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index dc05dca..cb732eb 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,6 +1,9 @@ {{ define "main" }} <h1>{{ .Title }}</h1> -{{ partial "metadata.html" . }} + +{{ if ne .Params.Type "page" }} + {{ partial "metadata.html" . }} +{{ end }} {{ .Content }} |