diff options
author | Mantas Vilčinskas <hi@mnts.lt> | 2021-10-02 21:49:01 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-02 21:49:01 +0300 |
commit | e2c0c2aa64ec564b4db3e67371209e2fa8b4e0aa (patch) | |
tree | 1de9ad9c6b1e681db33106db54a9f82e746bbabc /layouts/partials/index | |
parent | a2da5807fa5c8efb8bb0549de6a335e2e81c2e0c (diff) |
only allow informational posts to be pinned
Diffstat (limited to 'layouts/partials/index')
-rw-r--r-- | layouts/partials/index/announcements.html | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/layouts/partials/index/announcements.html b/layouts/partials/index/announcements.html index 01b353d..5f425fc 100644 --- a/layouts/partials/index/announcements.html +++ b/layouts/partials/index/announcements.html @@ -25,6 +25,7 @@ {{ end }} {{ range $pinned }} + {{ if .Params.informational }} <div class="padding"> <p> <a href="{{ .RelPermalink }}"><strong class="bold">{{ .Title }} →</strong></a> @@ -42,6 +43,7 @@ <p></p> </div> <hr class="clean announcement-box"> + {{ end }} {{ end }} </div> {{ end }} |