forked from CodeYourFuture/curriculum
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hugo.toml
84 lines (73 loc) · 2.83 KB
/
hugo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
title = "CYF Curriculum"
baseURL = "https://curriculum.codeyourfuture.io/"
[taxonomies]
category = 'categories' # Content types are blocks, definitions, guides
tag = 'themes'
activity = 'activities'
[module]
[[module.imports]]
path = "github.com/CodeYourFuture/curriculum/common-theme"
[[module.imports]]
path = "github.com/CodeYourFuture/curriculum/common-content"
[[module.imports.mounts]]
source = "en"
target = "content"
[[module.imports]]
path = "github.com/CodeYourFuture/curriculum/org-cyf-guides"
[[module.imports.mounts]]
source = "content"
target = "content/guides"
[[module.imports]]
path = "github.com/CodeYourFuture/CYF-PD"
[[module.imports.mounts]]
source = "content/blocks"
target = "content/pd/blocks"
[menus]
[[menus.secondary]]
name = "Guides 👈🏾"
weight = 1
url = "/guides"
[[menus.secondary]]
name = "Join Us 👋🏿"
weight = 2
url = "https://codeyourfuture.io/volunteers/"#CYF-ONLY
[[menus.secondary]]
name = "Support 🫶🏼"
weight = 3
url = "https://codeyourfuture.io/donate/"#CYF-ONLY
[params]
googleFonts="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;500;700&family=Inter:wght@400;600&display=swap"
description = "A free and open source software development programme."
main_website = "https://codeyourfuture.io/"
main_org_name = "Code Your Future"
our_name="CYF"
org = "https://github.com/CodeYourFuture"
repo = "https://github.com/CodeYourFuture/curriculum/"
pdrepo = "CYF-PD"
root = "curriculum"
# We use a proxy which concatenates paginated responses, otherwise we miss results.
# Daniel is currently hosting this code https://github.com/illicitonion/github-issue-proxy but we should work out a long-term maintainable solution to this problem.
# The /cached/120 path prefix here caches results for 2 hours to avoid rate limits. Drop the /cached/120 if you need fresh results.
orgapi = "https://github-issue-proxy.illicitonion.com/cached/120/repos/CodeYourFuture/"
[caches.getresource]
# Disable caching of fetches - we want every build to get up to date content for issues, so that if people make clarifications or fixes to issues, we pick them up.
maxAge = 0
[security.funcs]
# 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.highlight]
lineNos = false
codeFences = true
guessSyntax = true
[markup.goldmark.renderer]
# Enable HTML codeblocks, e.g. for <details> blocks
unsafe = true
hardWraps = true
footnote= true
theme = "common-theme"