From bd9983978b33806f6f83c44d75b8588268e742ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Thu, 1 Jul 2021 21:47:17 +0200 Subject: [PATCH] Hardening examplesite against misconfiguration --- exampleSite/config.toml | 2 +- exampleSite/content/cont/markdown.en.md | 2 +- exampleSite/content/cont/pages/_index.en.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index d7046bb723..2c441940e9 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -1,4 +1,4 @@ -baseURL = "/" +baseURL = "https://example.com" languageCode = "en-US" defaultContentLanguage = "en" diff --git a/exampleSite/content/cont/markdown.en.md b/exampleSite/content/cont/markdown.en.md index 080a384212..7e6bcc5fb5 100644 --- a/exampleSite/content/cont/markdown.en.md +++ b/exampleSite/content/cont/markdown.en.md @@ -429,7 +429,7 @@ HTML: GFM, or "GitHub Flavored Markdown" also supports syntax highlighting. To activate it, simply add the file extension of the language you want to use directly after the first code "fence", ` ```js `, and syntax highlighting will automatically be applied in the rendered HTML. -See [Code Highlighting]({{< ref "syntaxhighlight.md" >}}) for additional documentation. +See [Code Highlighting]({{% relref "syntaxhighlight.md" %}}) for additional documentation. For example, to apply syntax highlighting to JavaScript code: diff --git a/exampleSite/content/cont/pages/_index.en.md b/exampleSite/content/cont/pages/_index.en.md index 82ffc3a6eb..276c72afbb 100644 --- a/exampleSite/content/cont/pages/_index.en.md +++ b/exampleSite/content/cont/pages/_index.en.md @@ -85,7 +85,7 @@ Hugo provides a `new` command to create a new website. hugo new site ``` -**Hugo-theme-relearn** provides [archetypes]({{< relref "cont/archetypes.en.md" >}}) to help you create this kind of pages. +**Hugo-theme-relearn** provides [archetypes]({{%relref "cont/archetypes.en.md" %}}) to help you create this kind of pages. ## Front Matter configuration