diff options
author | Alexander Neonxp Kiryukhin <i@neonxp.ru> | 2024-11-16 19:32:18 +0300 |
---|---|---|
committer | Alexander Neonxp Kiryukhin <i@neonxp.ru> | 2024-11-17 01:28:57 +0300 |
commit | 239d68f94c6250276850fbe95eaa6cdd5c38fb26 (patch) | |
tree | c576da169afc442f51eae6213ad0ff749ed86589 /themes/hugo-theme-stack/layouts/partials/article/components/details.html | |
parent | 8e79098193fd0a8b65305dd8054cf7c424c60bc5 (diff) |
Своя тема, полностью всё переделал
Diffstat (limited to 'themes/hugo-theme-stack/layouts/partials/article/components/details.html')
-rw-r--r-- | themes/hugo-theme-stack/layouts/partials/article/components/details.html | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/themes/hugo-theme-stack/layouts/partials/article/components/details.html b/themes/hugo-theme-stack/layouts/partials/article/components/details.html deleted file mode 100644 index 7c27302..0000000 --- a/themes/hugo-theme-stack/layouts/partials/article/components/details.html +++ /dev/null @@ -1,61 +0,0 @@ -<div class="article-details"> - {{ if .Params.categories }} - <header class="article-category"> - {{ range (.GetTerms "categories") }} - <a href="{{ .RelPermalink }}" {{ with .Params.style }}style="background-color: {{ .background }}; color: {{ .color }};"{{ end }}> - {{ .LinkTitle }} - </a> - {{ end }} - </header> - {{ end }} - - <div class="article-title-wrapper"> - <h2 class="article-title"> - <a href="{{ .RelPermalink }}"> - {{- .Title -}} - </a> - </h2> - - {{ with .Params.description }} - <h3 class="article-subtitle"> - {{ . }} - </h3> - {{ end }} - </div> - - {{ $showReadingTime := .Params.readingTime | default (.Site.Params.article.readingTime) }} - {{ $showDate := not .Date.IsZero }} - {{ $showFooter := or $showDate $showReadingTime }} - {{ if $showFooter }} - <footer class="article-time"> - {{ if $showDate }} - <div> - {{ partial "helper/icon" "date" }} - <time class="article-time--published"> - {{- .Date | time.Format (or .Site.Params.dateFormat.published "Jan 02, 2006") -}} - </time> - </div> - {{ end }} - - {{ if $showReadingTime }} - <div> - {{ partial "helper/icon" "clock" }} - <time class="article-time--reading"> - {{ T "article.readingTime" .ReadingTime }} - </time> - </div> - {{ end }} - </footer> - {{ end }} - - {{ if .IsTranslated }} - <footer class="article-translations"> - {{ partial "helper/icon" "language" }} - <div> - {{ range .Translations }} - <a href="{{ .Permalink }}" class="link">{{ .Language.LanguageName }}</a> - {{ end }} - </div> - </footer> - {{ end }} -</div> |