Compare commits

...

3 Commits

Author SHA1 Message Date
hedy 86eb7e55ab
Clean up config.toml
- Remove webmentions for now
- Specifify minification but that does not actually allow me to remove
  the `| minify` calls when fetching resources...
- Clean up indentation and fix comments
2024-04-20 12:49:22 +08:00
hedy 3a1b3b7cf7
Move posts date to the very top, before even the title 2024-04-20 12:35:32 +08:00
hedy 74796f208c
Adjust text font and contrast 2024-04-18 17:50:46 +08:00
3 changed files with 39 additions and 44 deletions

View File

@ -51,7 +51,7 @@
--accent-bg: #44475a;
--accent-bg-light: #303035;
--code-bg: #3e3e4b;
--text: #eee;
--text: #dfdfe6;
--text-light: #b8b8c6;
--non-text-light: #999fbf;
@ -80,6 +80,7 @@ body {
* in their browser settings, so I help them.
* But... that's barely an excuse for me to use a big font-stack, I know */
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
font-family: ui-sans-serif,system-ui,apple color emoji,segoe ui emoji,segoe ui symbol,"Segoe UI",Roboto,noto color emoji,sans-serif;
font-size: var(--base-fontsize);
line-height: var(--line-height);
@ -117,7 +118,7 @@ blockquote {
margin-left: 0;
padding-left: 1.25rem;
border-left: 3px solid var(--text-light);
opacity: .9;
opacity: .82;
}
table {

View File

@ -22,7 +22,7 @@ srcURLPrefix = "https://git.sr.ht/~hedy/site/tree/master/item/"
logURLPrefix = "https://git.sr.ht/~hedy/site/log/master/item/"
shortTitle = "~hedy"
suffixTitle = " | ~hedy" # prepended after page titles
suffixTitle = " | ~hedy" # appended after specific page titles
geminiRoot = "gemini://home.hedy.dev"
@ -41,38 +41,40 @@ tag = "tags"
posts = "/posts/:slug"
[menu]
[[menu.main]]
identifier = "posts"
name = "Posts"
title = "posts"
url = "/posts/"
weight = 10
[[menu.main]]
identifier = "about"
name = "About"
title = "about"
url = "/about/"
weight = 20
[[menu.main]]
identifier = "misc"
name = "Misc"
title = "misc"
url = "/misc/"
weight = 40
[[menu.main]]
identifier = "rss"
name = "RSS"
title = "rss"
url = "/posts/index.xml"
weight = 100
[[menu.main]]
identifier = "posts"
name = "Posts"
title = "posts"
url = "/posts/"
weight = 10
[[menu.main]]
identifier = "about"
name = "About"
title = "about"
url = "/about/"
weight = 20
[[menu.main]]
identifier = "misc"
name = "Misc"
title = "misc"
url = "/misc/"
weight = 40
[[menu.main]]
identifier = "rss"
name = "RSS"
title = "rss"
url = "/posts/index.xml"
weight = 100
[markup.goldmark.renderer]
# Allows HTML in Markdown
# Allow HTML in Markdown
unsafe = true
[mediaTypes]
[mediaTypes."text/gemini"]
suffixes = ["gmi"]
[mediaTypes."application/atom+xml"]
suffixes = ["xml"]
[outputFormats]
[outputFormats.Gemini]
@ -83,12 +85,12 @@ mediaType = "text/gemini"
protocol = "gemini://"
permalinkable = true
path = "gemini/"
# No /slug/index.gmi, please.
# Even though I specify this explicitly here, it doesn't actually work.
# I clean this up in the site build process using ./bin/gemini-clean.py.
noUgly = false
uglyurls = true
[mediaTypes."application/atom+xml"]
suffixes = ["xml"]
[outputFormats.GEMATOM]
name = "GEMATOM"
mediaType = "application/atom+xml"
@ -110,14 +112,7 @@ isPlainText = false
[outputs]
section = ["HTML", "RSS", "GEMATOM", "ATOM"]
[webmentions]
newDir = "public"
oldDir = "old"
webmentionsFile = "mentions.json"
excludeSources = [
"/tags/*",
"/",
]
excludeDestinations = [
"https://do.hedy.dev"
]
[minify]
minifyOutput = true
disableXML = true
disableHTML = true

View File

@ -1,8 +1,7 @@
{{ define "content" -}}
# {{ $.Title }}
{{ .Date.UTC.Format "Jan 02, 2006" }}{{ partial "lastmod.gmi" (dict "Page" . "Prefix" " (updated on " "Postfix" ")") }}
# {{ $.Title }}
{{ partial "processed-content.gmi" . }}
***