-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathhugo.toml
More file actions
61 lines (50 loc) · 1.8 KB
/
Copy pathhugo.toml
File metadata and controls
61 lines (50 loc) · 1.8 KB
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
baseURL = "https://blog.runestone.academy/"
title = "Runestone Academy"
# Emit name.html instead of name/index.html so URLs match the old Tinkerer site.
uglyURLs = true
# Drop a GA4 measurement id here (G-XXXXXXX) to enable analytics.
# NOTE: the old site used Universal Analytics (UA-29883683-1), which Google
# stopped processing in July 2023, so it is intentionally left blank.
googleAnalytics = ""
# Disqus is intentionally removed (no comments).
[languages.en]
locale = "en-us"
[params]
tagline = "Democratizing textbooks for the 21st century"
description = "Interactive Textbooks for Computer Science, Data Science and more"
author = "Brad Miller"
landing = "https://landing.runestone.academy"
# Preserve the old date-based URLs exactly, e.g.
# /2026/06/28/first_time_contributors.html
# /pages/about.html
[permalinks]
posts = "/:year/:month/:day/:slug"
pages = "/pages/:slug"
# Only categories were used in practice (tags were effectively unused).
[taxonomies]
category = "categories"
[pagination]
pagerSize = 10
# Home emits the page, the RSS feed (as rss.html, see below) and the
# search index (index.json).
[outputs]
home = ["HTML", "RSS", "JSON"]
section = ["HTML"]
taxonomy = ["HTML"]
term = ["HTML"]
# The legacy feed lived at /rss.html. Hugo writes the feed to /rss.xml (a
# ".html" media-type suffix collides with text/html), so deploy.sh copies
# rss.xml -> rss.html after the build and the feed is advertised at /rss.html
# for subscriber continuity.
[outputFormats.RSS]
baseName = "rss"
[markup]
[markup.goldmark.renderer]
unsafe = true # posts contain inline HTML
[markup.highlight]
style = "native" # matches the old Pygments "native" style
noClasses = true
lineNos = false
[markup.tableOfContents]
startLevel = 2
endLevel = 3