~seirdy/seirdy.one

seirdy.one/config.toml -rw-r--r-- 3.3 KiB
d6b40e2fRohan Kumar Search engines: remove dupe entry 9 days ago
                                                                                
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
baseURL = "https://seirdy.one/"
languageCode = "en-us"
title = "Seirdy's Home"

enableInlineShortcodes = true
enableGitInfo = true
disableHugoGeneratorInject = true  # I inject it explicitly at the BOTTOM of <head>
uglyurls = true
pygmentsCodeFences = true
pygmentsUseClasses = true
disableKinds = ["taxonomy", "term"]

[params]
description = "Seirdy's Home: personal website and blog for Rohan Kumar, A.K.A. Seirdy"
src = "https://sr.ht/~seirdy/seirdy.one"
logUrlPrefix = "https://git.sr.ht/~seirdy/seirdy.one/log/master/item/"
copyright = "Copyright © 2021 Rohan Kumar"
dark = "auto"
highlight = false

[author]
name = "Rohan Kumar"

[menu]
  [[menu.main]]
	identifier = "posts"
	name = "posts"
	title = "posts"
	url = "/posts.html"
	weight = 10

  [[menu.main]]
	identifier = "about"
	name = "about"
	title = "about"
	url = "/about.html"
	weight = 20

  [[menu.main]]
	identifier = "resume"
	name = "resume"
	title = "resume"
	url = "/resume.html"
	weight = 30

  [[menu.main]]
	identifier = "rss"
	name = "rss"
	title = "rss"
	url = "/posts/index.xml"
	weight = 40

[permalinks]
posts = "/:year/:month/:day/:filename"

[markup.goldmark.renderer]
# Allows HTML in Markdown
unsafe = true

[markup.tableOfContents]
ordered = true

# lifted from https://git.sr.ht/~sircmpwn/drewdevault.com
[mediaTypes]
[mediaTypes."text/gemini"]
suffixes = ["gmi"]
[mediaTypes."application/manifest+json"]
suffixes = ["webmanifest"]

[outputFormats]
[outputFormats.Gemini]
name = "GEMTEXT"
isPlainText = true
isHTML = false
mediaType = "text/gemini"
protocol = "gemini://"
permalinkable = true
path = "gemini/"

[outputFormats.GEMRSS]
name = "GEMRSS"
isHTML = false
mediaType = "application/rss+xml"
protocol = "gemini://"
path = "gemini/"

[outputs]
section = ["HTML", "RSS", "GEMRSS"]

# https://github.com/nekr0z/static-webmentions
[webmentions]
newDir = "public"
oldDir = "old"
webmentionsFile = "mentions.json"
excludeSources = [
  "/tags/*",                    # only trailing * are supported at the moment
  "/posts/*",                     # this only excludes /posts/index.html, not /posts/somepost/
  "/",                          # same as "/index.html"
]

# addresses that we don't want to send webmentions to
# other schemes and stuff that's I link to too often
excludeDestinations = [
  "mailto:",
	"gemini:",
	"https://web.archive.org",
	"https://lists.sr.ht/~seirdy/seirdy.one-comments",
	"https://useplaintext.email/",
	"https://seirdy.one",
]

[server]
[[server.headers]]
for = "/**.{css,png,webp,webm}"
[server.headers.values]
X-Content-Type-Options = "nosniff"
Strict-Transport-Security = "max-age=31536000; includeSubDomains; preload"
Cache-Control = "max-age=31557600, immutable"
[[server.headers]]
for = "/**"
[server.headers.values]
X-Content-Type-Options = "nosniff"
Strict-Transport-Security = "max-age=31536000; includeSubDomains; preload"
Referrer-Policy = "no-referrer"
X-XSS-Protection = "1; mode=block"
X-FROG-UNSAFE = "1"
X-UA-Compatible = "IE=edge"
Content-Security-Policy = "default-src 'none'; img-src 'self' https://seirdy.one data:; style-src 'unsafe-inline'; script-src 'self'; frame-ancestors 'none'; base-uri 'none'; form-action 'none'; manifest-src 'self'; upgrade-insecure-requests;"
Permissions-Policy = "accelerometer=(), camera=(), geolocation=(), gyroscope=(), magnetometer=(), microphone=(), payment=(), usb=()"
Cache-Control = "max-age=120, no-transform"