Skip to content

Commit

Permalink
Add support for Octothorpes
Browse files Browse the repository at this point in the history
  • Loading branch information
theory committed Nov 24, 2024
1 parent 21153dd commit a9ad224
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ feedLimit = 32
recentTagYears = 3
icon = "/icon-512x512.png"
favicon = "/icon-64x64.png"
octothorpes = true # https://octothorp.es

[params.mastodon]
url = "https://xoxo.zone/@theory"
Expand Down
6 changes: 5 additions & 1 deletion themes/justatheory/layouts/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
<link rel="manifest" href="/site.webmanifest" />
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#2d2d2d" />
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#2d2d2d" />{{ if and .Site.Params.octothorpes .Params.tags }}
<link rel="preload" as="fetch" href="https://octothorp.esc/?{{ .Permalink }}" />
{{- range .Params.tags }}
<link rel="octo:octothorpes" href="{{ . | urlize }}" />
{{- end }}{{ end }}
{{- with .Site.Params.mastodon.url }}
<link rel="me" href="{{ . }}" />
{{- end }}
Expand Down

0 comments on commit a9ad224

Please sign in to comment.