mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-27 14:12:09 +00:00
Compare commits
4 commits
6d09030988
...
c0fda29782
Author | SHA1 | Date | |
---|---|---|---|
|
c0fda29782 | ||
|
5b111aee3d | ||
|
13a2595482 | ||
|
1782aeeda6 |
9 changed files with 61 additions and 16 deletions
|
@ -1 +0,0 @@
|
||||||
../static/apple-touch-icon.png
|
|
1
assets/favicon192.png
Symbolic link
1
assets/favicon192.png
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../static/favicon192.png
|
|
@ -1,4 +1,4 @@
|
||||||
{{- $192png := resources.Get "/apple-touch-icon.png" | resources.Fingerprint "md5" }}
|
{{- $192png := resources.Get "/favicon192.png" | resources.Fingerprint "md5" }}
|
||||||
{{- $512png := resources.Get "/favicon512.png" | resources.Fingerprint "md5" }}
|
{{- $512png := resources.Get "/favicon512.png" | resources.Fingerprint "md5" }}
|
||||||
{{- $1024svg := resources.Get "/favicon.svg" | resources.Fingerprint "md5" }}
|
{{- $1024svg := resources.Get "/favicon.svg" | resources.Fingerprint "md5" }}
|
||||||
{{- $maskablesvg := resources.Get "/maskable_android.svg" | resources.Fingerprint "md5" -}}
|
{{- $maskablesvg := resources.Get "/maskable_android.svg" | resources.Fingerprint "md5" -}}
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
outputs:
|
outputs:
|
||||||
- html
|
- html
|
||||||
- gemtext
|
- gemtext
|
||||||
|
- atom
|
||||||
title: Seirdy's Home
|
title: Seirdy's Home
|
||||||
description: "Seirdy's Home: personal website and blog for Rohan Kumar, A.K.A. Seirdy. I write about and develop software to promote user autonomy."
|
description: "Seirdy's Home: personal website and blog for Rohan Kumar, A.K.A. Seirdy. I write about and develop software to promote user autonomy."
|
||||||
sitemap:
|
sitemap:
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
{{ $icon_svg := resources.Get "/favicon.svg" | resources.Fingerprint "md5" }}
|
{{ $icon_svg := resources.Get "/favicon.svg" | resources.Fingerprint "md5" }}
|
||||||
{{- printf `<link rel="icon" sizes="any" href="%s" type="image/svg+xml" />` $icon_svg.RelPermalink | safeHTML }}
|
{{- printf `<link rel="icon" sizes="any" href="%s" type="image/svg+xml" />` $icon_svg.RelPermalink | safeHTML }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{ $icon_192 := resources.Get "/apple-touch-icon.png" | resources.Fingerprint "md5" }}
|
{{ $icon_192 := resources.Get "/favicon192.png" | resources.Fingerprint "md5" }}
|
||||||
{{- printf `<link rel="icon" sizes="192x192" href="%s" type="image/png" />` $icon_192.RelPermalink | safeHTML -}}
|
{{- printf `<link rel="icon" sizes="192x192" href="%s" type="image/png" />` $icon_192.RelPermalink | safeHTML -}}
|
||||||
<meta name="color-scheme" content="light dark" />
|
<meta name="color-scheme" content="light dark" />
|
||||||
<meta name="theme-color" content="#191919" media="(prefers-color-scheme:dark)" />
|
<meta name="theme-color" content="#191919" media="(prefers-color-scheme:dark)" />
|
||||||
|
|
|
@ -1,15 +1,16 @@
|
||||||
{{- $pages := (where site.RegularPages "Section" .Section) -}}
|
{{- $pages := (where site.RegularPages "Section" .Section) -}}
|
||||||
{{- if .IsHome }}
|
|
||||||
{{- $pages = where .Site.RegularPages "Section" "" -}}
|
|
||||||
{{ end -}}
|
|
||||||
{{- $type := "article" -}}
|
|
||||||
{{- $period := "daily" -}}
|
{{- $period := "daily" -}}
|
||||||
|
{{- $title := .Section | humanize -}}
|
||||||
|
{{- if .IsHome }}
|
||||||
|
{{- $title = "All content" -}}
|
||||||
|
{{- $pages = .Site.RegularPages -}}
|
||||||
|
{{- $period = "hourly" -}}
|
||||||
|
{{ end -}}
|
||||||
{{- if eq .Section "notes" -}}
|
{{- if eq .Section "notes" -}}
|
||||||
{{- $type = "note" -}}
|
|
||||||
{{- $period = "hourly" -}}
|
{{- $period = "hourly" -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- $icon_svg := resources.Get "/favicon.svg" | resources.Fingerprint "md5" -}}
|
{{- $icon_svg := resources.Get "/favicon.svg" | resources.Fingerprint "md5" -}}
|
||||||
{{- $icon_png := resources.Get "/apple-touch-icon.png" | resources.Fingerprint "md5" -}}
|
{{- $icon_png := resources.Get "/favicon192.png" | resources.Fingerprint "md5" -}}
|
||||||
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||||
<feed
|
<feed
|
||||||
xmlns="http://www.w3.org/2005/Atom"
|
xmlns="http://www.w3.org/2005/Atom"
|
||||||
|
@ -20,7 +21,7 @@
|
||||||
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
|
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
|
||||||
xmlns:thr="http://purl.org/syndication/thread/1.0"
|
xmlns:thr="http://purl.org/syndication/thread/1.0"
|
||||||
xml:lang="{{ .Site.LanguageCode }}">
|
xml:lang="{{ .Site.LanguageCode }}">
|
||||||
<title>{{ .Section | humanize}} on {{ .Site.Title }}</title>
|
<title>{{ $title }} on {{ .Site.Title }}</title>
|
||||||
<link rel="self" type="application/atom+xml" href="{{ .Permalink }}atom.xml" />
|
<link rel="self" type="application/atom+xml" href="{{ .Permalink }}atom.xml" />
|
||||||
<logo>{{ $icon_png.Permalink }}</logo>
|
<logo>{{ $icon_png.Permalink }}</logo>
|
||||||
<icon>{{ .Site.Params.icon | absURL }}</icon>
|
<icon>{{ .Site.Params.icon | absURL }}</icon>
|
||||||
|
@ -62,6 +63,10 @@
|
||||||
{{ partial "processed-content.html" . | replaceRE `(?: )?(?:item(type|scope|prop|id|ref)="[^"]*"|class="language-figure")` "" | safeHTML }}
|
{{ partial "processed-content.html" . | replaceRE `(?: )?(?:item(type|scope|prop|id|ref)="[^"]*"|class="language-figure")` "" | safeHTML }}
|
||||||
</div>
|
</div>
|
||||||
</content>
|
</content>
|
||||||
|
{{- $type := "article" -}}
|
||||||
|
{{- if eq .Section "notes" -}}
|
||||||
|
{{- $type = "note" -}}
|
||||||
|
{{- end -}}
|
||||||
<activity:object-type>http://activitystrea.ms/schema/1.0/{{ $type }}</activity:object-type>
|
<activity:object-type>http://activitystrea.ms/schema/1.0/{{ $type }}</activity:object-type>
|
||||||
<activity:verb>http://activitystrea.ms/schema/1.0/post</activity:verb>
|
<activity:verb>http://activitystrea.ms/schema/1.0/post</activity:verb>
|
||||||
</entry>
|
</entry>
|
||||||
|
|
|
@ -21,14 +21,18 @@
|
||||||
{{ $webmanifest := resources.Get "/manifest.webmanifest" | resources.ExecuteAsTemplate "manifest.webmanifest" . | resources.Minify | resources.Fingerprint "md5" -}}
|
{{ $webmanifest := resources.Get "/manifest.webmanifest" | resources.ExecuteAsTemplate "manifest.webmanifest" . | resources.Minify | resources.Fingerprint "md5" -}}
|
||||||
{{- printf `<link href="%s" rel="manifest" />` $webmanifest.RelPermalink | safeHTML -}}
|
{{- printf `<link href="%s" rel="manifest" />` $webmanifest.RelPermalink | safeHTML -}}
|
||||||
<!--Feeds for both notes and posts; posts come first unless we're in the notes section.-->
|
<!--Feeds for both notes and posts; posts come first unless we're in the notes section.-->
|
||||||
{{- $isNotes := false -}}
|
|
||||||
{{- if or (eq .Section "notes") (eq .Title "Notes") -}}
|
{{- if or (eq .Section "notes") (eq .Title "Notes") -}}
|
||||||
{{- $isNotes = true -}}
|
|
||||||
<link rel="alternate" type="application/atom+xml" href="{{ site.BaseURL }}notes/atom.xml" title="Notes" />
|
<link rel="alternate" type="application/atom+xml" href="{{ site.BaseURL }}notes/atom.xml" title="Notes" />
|
||||||
{{- end }}
|
<link rel="alternate" type="application/atom+xml" href="{{ site.BaseURL }}atom.xml" title="All content" />
|
||||||
<link rel="alternate" type="application/atom+xml" href="{{ site.BaseURL }}posts/atom.xml" title="Posts" />
|
<link rel="alternate" type="application/atom+xml" href="{{ site.BaseURL }}posts/atom.xml" title="Posts" />
|
||||||
{{ if not $isNotes -}}
|
{{- else if or (eq .Section "posts") (eq .Title "Posts") -}}
|
||||||
<link rel="alternate" type="application/atom+xml" href="{{ site.BaseURL }}/notes/atom.xml" title="Notes" />
|
<link rel="alternate" type="application/atom+xml" href="{{ site.BaseURL }}posts/atom.xml" title="Posts" />
|
||||||
|
<link rel="alternate" type="application/atom+xml" href="{{ site.BaseURL }}atom.xml" title="All content" />
|
||||||
|
<link rel="alternate" type="application/atom+xml" href="{{ site.BaseURL }}notes/atom.xml" title="Notes" />
|
||||||
|
{{- else -}}
|
||||||
|
<link rel="alternate" type="application/atom+xml" href="{{ site.BaseURL }}atom.xml" title="All content" />
|
||||||
|
<link rel="alternate" type="application/atom+xml" href="{{ site.BaseURL }}posts/atom.xml" title="Posts" />
|
||||||
|
<link rel="alternate" type="application/atom+xml" href="{{ site.BaseURL }}notes/atom.xml" title="Notes" />
|
||||||
{{- end }}
|
{{- end }}
|
||||||
<title>{{ .Title }}{{ if and (lt (len .Title) 54) (ne $canonicalRelPermalink "/") }} - Seirdy{{ end }}</title>
|
<title>{{ .Title }}{{ if and (lt (len .Title) 54) (ne $canonicalRelPermalink "/") }} - Seirdy{{ end }}</title>
|
||||||
{{ $description := .Site.Params.Description -}}
|
{{ $description := .Site.Params.Description -}}
|
||||||
|
@ -51,7 +55,7 @@
|
||||||
{{ $icon_svg := resources.Get "/favicon.svg" | resources.Fingerprint "md5" }}
|
{{ $icon_svg := resources.Get "/favicon.svg" | resources.Fingerprint "md5" }}
|
||||||
{{- printf `<link rel="icon" sizes="any" href="%s" type="image/svg+xml" />` $icon_svg.RelPermalink | safeHTML }}
|
{{- printf `<link rel="icon" sizes="any" href="%s" type="image/svg+xml" />` $icon_svg.RelPermalink | safeHTML }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{ $icon_192 := resources.Get "/apple-touch-icon.png" | resources.Fingerprint "md5" }}
|
{{ $icon_192 := resources.Get "/favicon192.png" | resources.Fingerprint "md5" }}
|
||||||
{{- printf `<link rel="icon" sizes="192x192" href="%s" type="image/png" />` $icon_192.RelPermalink | safeHTML -}}
|
{{- printf `<link rel="icon" sizes="192x192" href="%s" type="image/png" />` $icon_192.RelPermalink | safeHTML -}}
|
||||||
<meta name="color-scheme" content="light dark" />
|
<meta name="color-scheme" content="light dark" />
|
||||||
<meta name="format-detection" content="telephone=no" /><!-- Why does apple do this -->
|
<meta name="format-detection" content="telephone=no" /><!-- Why does apple do this -->
|
||||||
|
|
Before Width: | Height: | Size: 638 B After Width: | Height: | Size: 638 B |
35
static/webfinger.json
Normal file
35
static/webfinger.json
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
{
|
||||||
|
"subject": "acct:seirdy@seirdy.one",
|
||||||
|
"aliases": [
|
||||||
|
"mailto:seirdy@seirdy.one",
|
||||||
|
"https://seirdy.one/",
|
||||||
|
"matrix:u/seirdy:seirdy.one",
|
||||||
|
"https://pleroma.envs.net/seirdy"
|
||||||
|
],
|
||||||
|
"links": [
|
||||||
|
{
|
||||||
|
"rel": "http://webfinger.net/rel/avatar",
|
||||||
|
"href": "https://seirdy.one/favicon192.png",
|
||||||
|
"type": "image/png"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"rel": "http://webfinger.net/rel/profile-page",
|
||||||
|
"href": "https://seirdy.one/",
|
||||||
|
"type": "text/html"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"rel": "http://webfinger.net/rel/profile-page",
|
||||||
|
"href": "https://pleroma.envs.net/seirdy",
|
||||||
|
"type": "text/html"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"rel": "pgpkey",
|
||||||
|
"type": "application/pgp-keys",
|
||||||
|
"href": "https://seirdy.one/publickey.asc",
|
||||||
|
"properties": {
|
||||||
|
"fingerprint": "AC6AF1F838DF3DCC2E47A6CF1E892DB2A5F84479",
|
||||||
|
"algorithm": "rsa4096"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
Loading…
Reference in a new issue