diff --git a/common-content/hugo.toml b/common-content/hugo.toml index d24b83be8..49f5df1ae 100644 --- a/common-content/hugo.toml +++ b/common-content/hugo.toml @@ -2,4 +2,17 @@ [module] [module.hugoVersion] extended = true - min = "0.116.0" \ No newline at end of file + min = "0.116.0" + +[markup] + [markup.tableOfContents] + endLevel = 2 + ordered = true + startLevel = 2 + [markup.goldmark] + [markup.goldmark.renderer] + unsafe = true + [markup.goldmark.parser] + [markup.goldmark.parser.attribute] + block = true + title = true diff --git a/common-docs/hugo.toml b/common-docs/hugo.toml index 6a6dfbc52..08e194a01 100644 --- a/common-docs/hugo.toml +++ b/common-docs/hugo.toml @@ -63,20 +63,24 @@ maxAge="6h" getenv = ["^HUGO_CURRICULUM_GITHUB_BEARER_TOKEN$"] +theme = "common-theme" + +#this makes the section nav go the right way +# because of this 'unexpected behaviour' https://gohugo.io/methods/page/nextinsection/ +[page] + nextPrevInSectionSortOrder = 'asc' + nextPrevSortOrder = 'asc' + + [markup] -# I've configured markdown so you don't have to [markup.tableOfContents] endLevel = 2 ordered = true startLevel = 2 + [markup.goldmark] [markup.goldmark.renderer] -# Enable HTML codeblocks, e.g. for
blocks unsafe = true - -theme = "common-theme" - -#this makes the section nav go the right way -# because of this 'unexpected behaviour' https://gohugo.io/methods/page/nextinsection/ -[page] - nextPrevInSectionSortOrder = 'asc' - nextPrevSortOrder = 'asc' \ No newline at end of file + [markup.goldmark.parser] + [markup.goldmark.parser.attribute] + block = true + title = true diff --git a/common-theme/hugo.toml b/common-theme/hugo.toml index e3c68a4b4..4df59fd02 100644 --- a/common-theme/hugo.toml +++ b/common-theme/hugo.toml @@ -59,3 +59,17 @@ getenv = ["^HUGO_CURRICULUM_GITHUB_BEARER_TOKEN$"] [module.hugoVersion] extended = true min = "0.133.0" + + +[markup] + [markup.tableOfContents] + endLevel = 2 + ordered = true + startLevel = 2 + [markup.goldmark] + [markup.goldmark.renderer] + unsafe = true + [markup.goldmark.parser] + [markup.goldmark.parser.attribute] + block = true + title = true diff --git a/org-cyf-guides/hugo.toml b/org-cyf-guides/hugo.toml index f19000f5d..cc6f38e79 100644 --- a/org-cyf-guides/hugo.toml +++ b/org-cyf-guides/hugo.toml @@ -9,4 +9,17 @@ baseURL = "https://guides.codeyourfuture.io/" # because of this 'unexpected behaviour' https://gohugo.io/methods/page/nextinsection/ [page] nextPrevInSectionSortOrder = 'asc' - nextPrevSortOrder = 'asc' \ No newline at end of file + nextPrevSortOrder = 'asc' + +[markup] + [markup.tableOfContents] + endLevel = 2 + ordered = true + startLevel = 2 + [markup.goldmark] + [markup.goldmark.renderer] + unsafe = true + [markup.goldmark.parser] + [markup.goldmark.parser.attribute] + block = true + title = true diff --git a/org-cyf-how-this-works/hugo.toml b/org-cyf-how-this-works/hugo.toml index db62f7cce..75a4849db 100644 --- a/org-cyf-how-this-works/hugo.toml +++ b/org-cyf-how-this-works/hugo.toml @@ -5,3 +5,17 @@ baseURL = "https://curriculum.codeyourfuture.io/" [module] [[module.imports]] path = "github.com/CodeYourFuture/curriculum/org-cyf-theme" + + +[markup] + [markup.tableOfContents] + endLevel = 2 + ordered = true + startLevel = 2 + [markup.goldmark] + [markup.goldmark.renderer] + unsafe = true + [markup.goldmark.parser] + [markup.goldmark.parser.attribute] + block = true + title = true diff --git a/org-cyf-itd/hugo.toml b/org-cyf-itd/hugo.toml index 6208a1e87..7370685a4 100644 --- a/org-cyf-itd/hugo.toml +++ b/org-cyf-itd/hugo.toml @@ -19,18 +19,22 @@ description="Meet the world of tech in 30 days" weight = 3 url = "https://codeyourfuture.io/donate/" +#this makes the section nav go the right way +# because of this 'unexpected behaviour' https://gohugo.io/methods/page/nextinsection/ +[page] + nextPrevInSectionSortOrder = 'asc' + nextPrevSortOrder = 'asc' + + [markup] -# I've configured markdown so you don't have to [markup.tableOfContents] endLevel = 2 ordered = true startLevel = 2 + [markup.goldmark] [markup.goldmark.renderer] -# Enable HTML codeblocks, e.g. for
blocks unsafe = true - -#this makes the section nav go the right way -# because of this 'unexpected behaviour' https://gohugo.io/methods/page/nextinsection/ -[page] - nextPrevInSectionSortOrder = 'asc' - nextPrevSortOrder = 'asc' \ No newline at end of file + [markup.goldmark.parser] + [markup.goldmark.parser.attribute] + block = true + title = true diff --git a/org-cyf-launch/hugo.toml b/org-cyf-launch/hugo.toml index 44b506e83..6c09e6e94 100644 --- a/org-cyf-launch/hugo.toml +++ b/org-cyf-launch/hugo.toml @@ -21,18 +21,22 @@ baseURL = "https://launch.codeyourfuture.io/" target = "content/pd/blocks" +#this makes the section nav go the right way +# because of this 'unexpected behaviour' https://gohugo.io/methods/page/nextinsection/ +[page] + nextPrevInSectionSortOrder = 'asc' + nextPrevSortOrder = 'asc' + + [markup] -# I've configured markdown so you don't have to [markup.tableOfContents] endLevel = 2 ordered = true startLevel = 2 + [markup.goldmark] [markup.goldmark.renderer] -# Enable HTML codeblocks, e.g. for
blocks unsafe = true - -#this makes the section nav go the right way -# because of this 'unexpected behaviour' https://gohugo.io/methods/page/nextinsection/ -[page] - nextPrevInSectionSortOrder = 'asc' - nextPrevSortOrder = 'asc' \ No newline at end of file + [markup.goldmark.parser] + [markup.goldmark.parser.attribute] + block = true + title = true diff --git a/org-cyf-piscine/hugo.toml b/org-cyf-piscine/hugo.toml index fbee95829..e04b76352 100644 --- a/org-cyf-piscine/hugo.toml +++ b/org-cyf-piscine/hugo.toml @@ -7,18 +7,22 @@ title = "CYF Piscine" [params] googleFonts="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;500;700&family=Inter:wght@400;600&display=swap" +#this makes the section nav go the right way +# because of this 'unexpected behaviour' https://gohugo.io/methods/page/nextinsection/ +[page] + nextPrevInSectionSortOrder = 'asc' + nextPrevSortOrder = 'asc' + + [markup] -# I've configured markdown so you don't have to [markup.tableOfContents] endLevel = 2 ordered = true startLevel = 2 + [markup.goldmark] [markup.goldmark.renderer] -# Enable HTML codeblocks, e.g. for
blocks unsafe = true - -#this makes the section nav go the right way -# because of this 'unexpected behaviour' https://gohugo.io/methods/page/nextinsection/ -[page] - nextPrevInSectionSortOrder = 'asc' - nextPrevSortOrder = 'asc' \ No newline at end of file + [markup.goldmark.parser] + [markup.goldmark.parser.attribute] + block = true + title = true diff --git a/org-cyf-sdc/hugo.toml b/org-cyf-sdc/hugo.toml index 44c3b5a66..1585e1d6f 100644 --- a/org-cyf-sdc/hugo.toml +++ b/org-cyf-sdc/hugo.toml @@ -24,17 +24,22 @@ baseURL = "https://sdc.codeyourfuture.io/" [params] googleFonts="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;500;700&family=Inter:wght@400;600&display=swap" +#this makes the section nav go the right way +# because of this 'unexpected behaviour' https://gohugo.io/methods/page/nextinsection/ +[page] + nextPrevInSectionSortOrder = 'asc' + nextPrevSortOrder = 'asc' + + [markup] -# I've configured markdown so you don't have to [markup.tableOfContents] endLevel = 2 ordered = true startLevel = 2 + [markup.goldmark] [markup.goldmark.renderer] -# Enable HTML codeblocks, e.g. for
blocks unsafe = true -#this makes the section nav go the right way -# because of this 'unexpected behaviour' https://gohugo.io/methods/page/nextinsection/ -[page] - nextPrevInSectionSortOrder = 'asc' - nextPrevSortOrder = 'asc' + [markup.goldmark.parser] + [markup.goldmark.parser.attribute] + block = true + title = true diff --git a/org-cyf-theme/hugo.toml b/org-cyf-theme/hugo.toml index 7e8fdfa2c..d0b24abd5 100644 --- a/org-cyf-theme/hugo.toml +++ b/org-cyf-theme/hugo.toml @@ -64,3 +64,17 @@ maxAge = 0 # Allow accessing a GitHub bearer token to avoid rate limits when doing HTTP fetches to the GitHub API. # This can be generated at https://github.com/settings/tokens?type=beta and needs read-only access to all public CYF GitHub repos. getenv = ["^HUGO_CURRICULUM_GITHUB_BEARER_TOKEN$"] + + +[markup] + [markup.tableOfContents] + endLevel = 2 + ordered = true + startLevel = 2 + [markup.goldmark] + [markup.goldmark.renderer] + unsafe = true + [markup.goldmark.parser] + [markup.goldmark.parser.attribute] + block = true + title = true diff --git a/org-cyf-tracks/hugo.toml b/org-cyf-tracks/hugo.toml index dee1b1de5..2d182c294 100644 --- a/org-cyf-tracks/hugo.toml +++ b/org-cyf-tracks/hugo.toml @@ -23,3 +23,17 @@ baseURL = "https://tracks.codeyourfuture.io/" [taxonomies] track_kind = "track_kinds" + + +[markup] + [markup.tableOfContents] + endLevel = 2 + ordered = true + startLevel = 2 + [markup.goldmark] + [markup.goldmark.renderer] + unsafe = true + [markup.goldmark.parser] + [markup.goldmark.parser.attribute] + block = true + title = true diff --git a/org-cyf/hugo.toml b/org-cyf/hugo.toml index b419d4dab..4c02e9bcc 100644 --- a/org-cyf/hugo.toml +++ b/org-cyf/hugo.toml @@ -64,3 +64,17 @@ target = "content/guides" [page] nextPrevInSectionSortOrder = 'asc' nextPrevSortOrder = 'asc' + + +[markup] + [markup.tableOfContents] + endLevel = 2 + ordered = true + startLevel = 2 + [markup.goldmark] + [markup.goldmark.renderer] + unsafe = true + [markup.goldmark.parser] + [markup.goldmark.parser.attribute] + block = true + title = true