diff options
author | Ngô Ngọc Đức Huy <huyngo@disroot.org> | 2021-05-08 22:12:55 +0700 |
---|---|---|
committer | Ngô Ngọc Đức Huy <huyngo@disroot.org> | 2021-05-08 22:12:55 +0700 |
commit | 1e177f34da8089f1c508501d73efc84016f84a55 (patch) | |
tree | 2b2bea31ab9f0a7cc6c2f533e1ee0a4b534413ea | |
parent | cfe47619942f4416878ce3680eb09d28fcddadc4 (diff) | |
download | blog-1e177f34da8089f1c508501d73efc84016f84a55.tar.gz |
Fix some layout issues
-rw-r--r-- | layouts/_default/list.html | 3 | ||||
-rw-r--r-- | layouts/partials/postInfo.html | 28 |
2 files changed, 17 insertions, 14 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html index c9f9806..59eb537 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -5,6 +5,8 @@ <div class="articles h-feed"> <h1 class="post-title">{{ i18n .Title }}</h1> + {{ if .Params.no_feed }} + {{ else}} {{ range .Page.CurrentSection.Pages }} <div class="post-short-list h-entry"> <header class="post-header"> @@ -13,6 +15,7 @@ {{ partial "postInfo.html" . }} </div> {{ end }} + {{ end}} </div> {{ end }} diff --git a/layouts/partials/postInfo.html b/layouts/partials/postInfo.html index d7146fd..f9052b0 100644 --- a/layouts/partials/postInfo.html +++ b/layouts/partials/postInfo.html @@ -14,21 +14,21 @@ <div class="post-taxonomies"> {{ if .Params.categories }} - categories: - <ul class="post-categories"> - {{ range .Params.categories }} - <li><a href="{{ "categories/" | urlize | absLangURL }}">{{ . }}</a></li> - {{ end }} - </ul> + categories: + <ul class="post-categories"> + {{ range .Params.categories }} + <li><a href="{{ "categories/" | urlize | absLangURL }}">{{ . }}</a></li> {{ end }} - <br> - tagged: - {{ if .Params.tags }} - <ul class="post-tags"> - {{ range .Params.tags }} - <li><a href="{{ "tags/" | absLangURL }}{{ . | urlize }}">#{{ . }}</a></li> - {{ end }} - </ul> + </ul> + {{ end }} + <br> + {{ if .Params.tags }} + tagged: + <ul class="post-tags"> + {{ range .Params.tags }} + <li><a href="{{ "tags/" | absLangURL }}{{ . | urlize }}">#{{ . }}</a></li> + {{ end }} + </ul> {{ end }} </div> </div> |