{{ with .Params.externalUrl }}
- {{ $.Title | emojify }}
-
- ↗
-
+
+ {{ $.Title | emojify }}
+
+ ↗
+ ↖
+
+
{{ else }}
{{ end }}
{{ if and .Draft .Site.Params.article.showDraftLabel }}
-
+
{{ partial "badge.html" (i18n "article.draft" | emojify) }}
{{ end }}
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index a9b45df9..2103e34a 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -18,20 +18,22 @@
{{ end }}
-
+
{{/* Copyright */}}
-
- {{- with .Site.Params.copyright }}
- {{ . | emojify | markdownify }}
- {{- else }}
- ©
- {{ now.Format "2006" }}
- {{ .Site.Author.name | markdownify | emojify }}
- {{- end }}
-
+ {{ if .Site.Params.footer.showCopyright | default true }}
+
+ {{- with .Site.Params.copyright }}
+ {{ . | emojify | markdownify }}
+ {{- else }}
+ ©
+ {{ now.Format "2006" }}
+ {{ .Site.Author.name | markdownify | emojify }}
+ {{- end }}
+
+ {{ end }}
{{/* Theme attribution */}}
- {{ if .Site.Params.attribution | default true }}
+ {{ if .Site.Params.footer.showThemeAttribution | default true }}
{{ $hugo := printf `Hugo`
@@ -42,9 +44,9 @@
{{ end }}
{{/* Appearance switch */}}
- {{ if .Site.Params.showAppearanceSwitcher | default false }}
+ {{ if .Site.Params.footer.showAppearanceSwitcher | default false }}
diff --git a/layouts/partials/functions/warnings.html b/layouts/partials/functions/warnings.html
new file mode 100644
index 00000000..ecc6db9c
--- /dev/null
+++ b/layouts/partials/functions/warnings.html
@@ -0,0 +1,6 @@
+{{ if ne .Site.Params.showAppearanceSwitcher nil }}
+ {{ warnf "[CONGO] Theme parameter `showAppearanceSwitcher` has been renamed to `footer.showAppearanceSwitcher`. Please update your site configuration." }}
+{{ end }}
+{{ if ne .Site.Params.showScrollToTop nil }}
+ {{ warnf "[CONGO] Theme parameter `showScrollToTop` has been renamed to `footer.showScrollToTop`. Please update your site configuration." }}
+{{ end }}
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
deleted file mode 100644
index 06a0f63f..00000000
--- a/layouts/partials/header.html
+++ /dev/null
@@ -1,61 +0,0 @@
-
- {{/* Site logo/title */}}
-
- {{ if .Site.Params.Logo -}}
- {{ $logo := resources.Get .Site.Params.Logo }}
- {{ if $logo }}
-
-
-
- {{ end }}
- {{ else }}
- {{ .Site.Title | markdownify | emojify }}
- {{- end }}
- {{ partial "translations.html" . }}
-
- {{/* Main menu */}}
- {{ if .Site.Menus.main }}
-
- {{ end }}
-
diff --git a/layouts/partials/header/basic.html b/layouts/partials/header/basic.html
new file mode 100644
index 00000000..bb214f57
--- /dev/null
+++ b/layouts/partials/header/basic.html
@@ -0,0 +1,57 @@
+
+
+
diff --git a/layouts/partials/header/hamburger.html b/layouts/partials/header/hamburger.html
new file mode 100644
index 00000000..d28f98ca
--- /dev/null
+++ b/layouts/partials/header/hamburger.html
@@ -0,0 +1,75 @@
+
+
+
diff --git a/layouts/partials/search.html b/layouts/partials/search.html
index feed6f9e..841af518 100644
--- a/layouts/partials/search.html
+++ b/layouts/partials/search.html
@@ -1,7 +1,7 @@
+
diff --git a/layouts/partials/translations.html b/layouts/partials/translations.html
index 001e38cd..e4724e3e 100644
--- a/layouts/partials/translations.html
+++ b/layouts/partials/translations.html
@@ -1,7 +1,7 @@
{{ if .IsTranslated }}
-
- {{- with .Site.Params.copyright }} - {{ . | emojify | markdownify }} - {{- else }} - © - {{ now.Format "2006" }} - {{ .Site.Author.name | markdownify | emojify }} - {{- end }} -
+ {{ if .Site.Params.footer.showCopyright | default true }} ++ {{- with .Site.Params.copyright }} + {{ . | emojify | markdownify }} + {{- else }} + © + {{ now.Format "2006" }} + {{ .Site.Author.name | markdownify | emojify }} + {{- end }} +
+ {{ end }} {{/* Theme attribution */}} - {{ if .Site.Params.attribution | default true }} + {{ if .Site.Params.footer.showThemeAttribution | default true }}{{ $hugo := printf `Hugo` @@ -42,9 +44,9 @@ {{ end }}