commit 653c3a1b7e66680d80f2010550721748a9073073
parent bcbd22ba8a0be9b3641d3addcdd9608a49472b2b
Author: Radek Kozieł <radoslaw.koziel@gmail.com>
Date:   Fri,  9 Jun 2023 23:37:19 +0200

Merge pull request #460 from Thunder33345/taxonomy-title

Added heading to term pages
Diffstat:
Massets/css/style.scss | 1+
Aassets/css/term.scss | 3+++
Alayouts/_default/term.html | 57+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 61 insertions(+), 0 deletions(-)

diff --git a/assets/css/style.scss b/assets/css/style.scss @@ -16,4 +16,5 @@ @import "syntax"; @import "code"; @import "terms"; +@import "term"; @import "gist"; diff --git a/assets/css/term.scss b/assets/css/term.scss @@ -0,0 +1,3 @@ +h1.term { + color: $accent; +} diff --git a/layouts/_default/term.html b/layouts/_default/term.html @@ -0,0 +1,57 @@ +{{ define "main" }} + <h1 class="term">{{ .Title }}</h1> + {{ with .Content }} + <div class="index-content"> + {{ . }} + </div> + {{ end }} + <div class="posts"> + {{ range .Paginator.Pages }} + <article class="post on-list"> + <h1 class="post-title"> + <a href="{{ .Permalink }}">{{ .Title | markdownify }}</a> + </h1> + <div class="post-meta"> + {{ if .Date }} + <time class="post-date"> + {{ .Date.Format "2006-01-02" }} + </time> + {{ end }} + {{ with .Params.Author }} + <span class="post-author"> :: {{ . }}</span> + {{ end }} + </div> + + {{ if .Params.tags }} + <span class="post-tags"> + {{ range .Params.tags }} + #<a href="{{ (urlize (printf "tags/%s/" . )) | absLangURL }}"> + {{- . -}} + </a>&nbsp; + {{ end }} + </span> + {{ end }} + + {{ partial "cover.html" . }} + + <div class="post-content"> + {{ if .Params.showFullContent }} + {{ .Content }} + {{ else if .Description }} + {{ .Description | markdownify }} + {{ else }} + {{ .Summary }} + {{ end }} + </div> + + {{ if not .Params.showFullContent }} + <div> + <a class="read-more button" href="{{.RelPermalink}}">{{ $.Site.Params.ReadMore }} →</a> + </div> + {{ end }} + </article> + {{ end }} + + {{ partial "pagination.html" . }} + </div> +{{ end }}