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

github.com/urjaacharya/redgood.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/regularHeader.html')
-rw-r--r--layouts/partials/regularHeader.html27
1 files changed, 27 insertions, 0 deletions
diff --git a/layouts/partials/regularHeader.html b/layouts/partials/regularHeader.html
new file mode 100644
index 0000000..69470fc
--- /dev/null
+++ b/layouts/partials/regularHeader.html
@@ -0,0 +1,27 @@
+<header class="regular-page-header">
+ <div
+ style="
+ display: flex;
+ justify-content: space-between;
+ width: 98%;
+ margin-bottom: 0.5em;
+ "
+ >
+ <a class="header-icon" href="{{ `/` | relURL }}" aria-label="home page">
+ <i class="bi bi-house-door"></i>
+ </a>
+ {{ partial "share" . }}
+ </div>
+ <div class="page-title-and-info" style="text-align: center">
+ <h1 class="page-title">
+ {{ if or (eq .Kind "taxonomy") (eq .Kind "term") }}#{{ end }}{{ .Title }}
+ </h1>
+ {{ if eq .Kind "page" }}
+ <p class="document-date">
+ {{ dateFormat .Site.Params.theme.dateFormat .Date }} &middot; {{ .Params.author }}
+ </p>
+ {{ if .Description }}
+ <p class="document-description">"{{ .Description }}"</p>
+ {{ end }} {{ end }}
+ </div>
+</header>