Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/it-gro/hugo-theme-w3css-basic.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorit-gro <13005925+it-gro@users.noreply.github.com>2021-06-14 16:01:40 +0300
committerit-gro <13005925+it-gro@users.noreply.github.com>2021-06-14 16:01:40 +0300
commit26538e2a79db44f50c3cf918153286665048d076 (patch)
tree95357c70b99b1d9d62126beb46a1634cfed09786
parent1a2eb6a11f295dcf9e7ec95954662b3b9f1d798d (diff)
Fix missing headline
-rw-r--r--layouts/_default/single.html12
1 files changed, 10 insertions, 2 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index a03b520..d1c379e 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -1,7 +1,15 @@
-{{/*
{{ define `headline` }}
{{- if or $.Site.Params.debug (findRE `\bhtml-comment\b` $.Site.Params.traceFlags) }}
{{- `<!-- _default/single.html (headline) -->` | safeHTML }}
{{- end}}
+
+ <h1 class='w3-panel {{ default `w3-theme-l2` ($.Site.Param `colorTaxonomyPanel`)}} '>
+ {{- if eq .Data.Singular `category` }}<i class="w3-margin-right fas fa-folder-open" aria-hidden="true"></i>{{ default `Category` (i18n `categoryTitle`) }}: {{ end }}
+ {{- if eq .Data.Singular `tag` }}<i class="w3-margin-right fas fa-tag" aria-hidden="true"></i>{{ default `Tag` (i18n `tagTitle`) }}: {{ end }}
+ {{- .Title | markdownify | emojify }}
+ <span style="float:right;">
+ {{- partial `main.headline.nav-right.html` . -}}
+ </span>
+ </h1>
+
{{ end }}
-*/}}