From 615d2211463e073a65b0de60c61ab1184b14b958 Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Wed, 19 Jun 2019 21:18:55 +0200 Subject: theme: Switch to ananke theme --- themes/ananke/layouts/partials/site-header.html | 36 +++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100755 themes/ananke/layouts/partials/site-header.html (limited to 'themes/ananke/layouts/partials/site-header.html') diff --git a/themes/ananke/layouts/partials/site-header.html b/themes/ananke/layouts/partials/site-header.html new file mode 100755 index 0000000..10a682f --- /dev/null +++ b/themes/ananke/layouts/partials/site-header.html @@ -0,0 +1,36 @@ +{{ $featured_image := .Param "featured_image"}} +{{ if $featured_image }} + {{/* Trimming the slash and adding absURL make sure the image works no matter where our site lives */}} + {{ $featured_image := (trim $featured_image "/") | absURL }} +
+
+ {{ partial "site-navigation.html" .}} +
+

+ {{ .Title | default .Site.Title }} +

+ {{ with .Params.description }} +

+ {{ . }} +

+ {{ end }} +
+
+
+{{ else }} +
+
+ {{ partial "site-navigation.html" . }} +
+

+ {{ .Title | default .Site.Title }} +

+ {{ with .Params.description }} +

+ {{ . }} +

+ {{ end }} +
+
+
+{{ end }} -- cgit v1.2.3