From 5bbd5b53d191272eb210f9353f1ef5cb508567e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Wed, 24 Apr 2024 21:38:16 +0200 Subject: [PATCH] docs: force description - for the home page, set it explicitly as the included README will mess up the description with the text of the h1 heading - ignore auto-generated summaries of Hugo --- exampleSite/config/_default/hugo.toml | 3 +++ exampleSite/content/_index.en.md | 1 + exampleSite/content/_index.pir.md | 1 + 3 files changed, 5 insertions(+) diff --git a/exampleSite/config/_default/hugo.toml b/exampleSite/config/_default/hugo.toml index c50bcafd19..de6cfad3ca 100644 --- a/exampleSite/config/_default/hugo.toml +++ b/exampleSite/config/_default/hugo.toml @@ -28,6 +28,9 @@ defaultContentLanguage = "en" # the site's title of this showcase; you should change this ;-) title = "Hugo Relearn Theme" +# Don't use any auto-generated summaries +summaryLength = 0 + [outputs] # add `json` to the home to support Lunr search; This is a mandatory setting # for the search functionality diff --git a/exampleSite/content/_index.en.md b/exampleSite/content/_index.en.md index d3077ee57f..bfb2e60471 100644 --- a/exampleSite/content/_index.en.md +++ b/exampleSite/content/_index.en.md @@ -1,5 +1,6 @@ +++ archetype = "home" +description = "A theme for Hugo designed for documentation." title = "Hugo Relearn Theme" +++ {{% replaceRE "https://mcshelby.github.io/hugo-theme-relearn/" "" %}} diff --git a/exampleSite/content/_index.pir.md b/exampleSite/content/_index.pir.md index f42f796d82..b8d2929ea9 100644 --- a/exampleSite/content/_index.pir.md +++ b/exampleSite/content/_index.pir.md @@ -1,5 +1,6 @@ +++ archetype = "home" +description = "A theme fer Cap'n Hugo designed fer documentat'n." title = "Cap'n Hugo Relearrrn Theme" +++ {{< piratify true >}} \ No newline at end of file