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/header.html')
-rw-r--r--layouts/partials/header.html37
1 files changed, 37 insertions, 0 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
new file mode 100644
index 0000000..7fa7621
--- /dev/null
+++ b/layouts/partials/header.html
@@ -0,0 +1,37 @@
+<header>
+ <div class="header-image-container">
+ <div class="header-image">
+ <img src="{{ .Site.Params.about.profileImage | relURL }}" alt="profile image of {{ .Site.Params.author }}"/>
+ </div>
+ </div>
+ <div class="header-info">
+ {{ if not .IsHome }}
+ <a class="home-icon" href="{{ `/` | relURL }}" aria-label="home page">
+ {{ partial "homeIcon" . }}
+ </a>
+ {{ else }}
+ <h1 class="site-title">{{- .Site.Title -}}</h1>
+ {{ end }}
+
+ <p>
+ <span class="site-title home-{{ .IsHome }}">
+ {{ if not .IsHome }} {{ .Site.Title }} {{ end }}
+ </span>
+ {{ .Site.Params.about.narrative | markdownify }}
+ </p>
+
+ <div class="social-info">
+ {{ range $key, $val := .Site.Params.social }}
+ <small>
+ <a
+ class="social-link"
+ href="{{ $val }}"
+ aria-label="social media links"
+ >
+ {{- $key -}}
+ </a>
+ </small>
+ {{ end }}
+ </div>
+ </div>
+</header>