diff --git a/exampleSite/content/_index.md b/exampleSite/content/_index.md index 94aad94f..05310b04 100644 --- a/exampleSite/content/_index.md +++ b/exampleSite/content/_index.md @@ -1,5 +1,6 @@ --- title: Documentation +description: Geekdoc is a simple Hugo theme for documentations. It is intentionally designed as a fast and lean theme and may not fit the requirements of complex projects. If a more feature-complete theme is required there are a lot of got alternatives out there. --- @@ -13,7 +14,7 @@ title: Documentation -Geekdoc is a simple Hugo theme for documentations. It is intentionally designed as a fast and lean theme and may not fit the requirements of complex projects. If a more feature-complete theme is required there are a lot of got alternatives out there. You can find a demo and the full documentation at [https://geekdocs.de](https://geekdocs.de). +Geekdoc is a simple Hugo theme for documentations. It is intentionally designed as a fast and lean theme and may not fit the requirements of complex projects. If a more feature-complete theme is required there are a lot of got alternatives out there. ## Features diff --git a/exampleSite/content/usage/getting-started.md b/exampleSite/content/usage/getting-started.md index 140bddc5..69b0190d 100644 --- a/exampleSite/content/usage/getting-started.md +++ b/exampleSite/content/usage/getting-started.md @@ -5,6 +5,8 @@ weight: -20 This page tells you how to get started with the Geekdoc theme, including installation and basic configuration. + + {{< toc >}} ## Install requirements diff --git a/layouts/404.html b/layouts/404.html index 4d89f623..2c6a928f 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -2,7 +2,11 @@ - {{ partial "head" . }} + {{ partial "head/meta" . }} + Lost? Don't worry + + {{ partial "head/favicons" . }} + {{ partial "head/others" . }} diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 6bcfea2c..6c2f7810 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -2,7 +2,11 @@ - {{ partial "head" . }} + {{ partial "head/meta" . }} + {{ if not (eq .Kind "home") }}{{ partial "title" . }} | {{ end }}{{ .Site.Title }} + + {{ partial "head/favicons" . }} + {{ partial "head/others" . }} diff --git a/layouts/partials/head/favicons.html b/layouts/partials/head/favicons.html new file mode 100644 index 00000000..4326806b --- /dev/null +++ b/layouts/partials/head/favicons.html @@ -0,0 +1 @@ + diff --git a/layouts/partials/head/meta.html b/layouts/partials/head/meta.html new file mode 100644 index 00000000..f3862368 --- /dev/null +++ b/layouts/partials/head/meta.html @@ -0,0 +1,12 @@ + + + +{{ $description := default (default .Site.Title .Site.Params.description) (default .Summary .Description) }} +{{ $keywords := default .Site.Params.Keywords .Keywords }} + +{{ with $description }} + +{{ end }} +{{ with $keywords }} + +{{ end }} diff --git a/layouts/partials/head.html b/layouts/partials/head/others.html similarity index 91% rename from layouts/partials/head.html rename to layouts/partials/head/others.html index 9d283a8c..2f36fe87 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head/others.html @@ -1,9 +1,3 @@ - - - - -{{ partial "title" . }} | {{ .Site.Title -}} -