mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-23 21:02:09 +00:00
Compare commits
5 commits
7bd1a14ef5
...
a46b5238d0
Author | SHA1 | Date | |
---|---|---|---|
|
a46b5238d0 | ||
|
03ddadffb8 | ||
|
467baf6f2b | ||
|
3de047b413 | ||
|
702750931a |
5 changed files with 19 additions and 11 deletions
4
Makefile
4
Makefile
|
@ -96,7 +96,7 @@ validate-feeds: .validate-feed-main .validate-feed-posts .validate-feed-notes
|
||||||
.PHONY: validate-feeds .validate-feed-main .validate-feed-posts .validate-feed-notes
|
.PHONY: validate-feeds .validate-feed-main .validate-feed-posts .validate-feed-notes
|
||||||
|
|
||||||
.PHONY: lint-local
|
.PHONY: lint-local
|
||||||
lint-local: html-validate validate-html validate-json lint-css htmlproofer validate-feeds
|
lint-local: html-validate validate-html validate-json htmlproofer validate-feeds
|
||||||
|
|
||||||
# dev server, includes future and draft posts
|
# dev server, includes future and draft posts
|
||||||
.PHONY: serve
|
.PHONY: serve
|
||||||
|
@ -186,5 +186,5 @@ lint-and-deploy-staging:
|
||||||
.PHONY: deploy-envs
|
.PHONY: deploy-envs
|
||||||
deploy-envs:
|
deploy-envs:
|
||||||
@$(MAKE) -j1 HUGO_FLAGS='' USER=seirdy@envs.net WWW_ROOT=/home/seirdy/public_html GEMINI_ROOT=/home/seirdy/public_gemini HUGO_BASEURL='https://envs.net/~seirdy/' OUTPUT_DIR=public_envs .prepare-deploy copy-to-xhtml
|
@$(MAKE) -j1 HUGO_FLAGS='' USER=seirdy@envs.net WWW_ROOT=/home/seirdy/public_html GEMINI_ROOT=/home/seirdy/public_gemini HUGO_BASEURL='https://envs.net/~seirdy/' OUTPUT_DIR=public_envs .prepare-deploy copy-to-xhtml
|
||||||
@$(MAKE) HUGO_FLAGS='' USER=seirdy@envs.net WWW_ROOT=/home/seirdy/public_html GEMINI_ROOT=/home/seirdy/public_gemini HUGO_BASEURL='https://envs.net/~seirdy/' OUTPUT_DIR=public_envs html-validate validate-html validate-json
|
@$(MAKE) HUGO_FLAGS='' USER=seirdy@envs.net WWW_ROOT=/home/seirdy/public_html GEMINI_ROOT=/home/seirdy/public_gemini HUGO_BASEURL='https://envs.net/~seirdy/' OUTPUT_DIR=public_envs html-validate validate-html validate-json validate-feeds
|
||||||
@$(MAKE) SSHFLAGS='-o KexAlgorithms=curve25519-sha256@libssh.org' HUGO_FLAGS='' USER=seirdy@envs.net WWW_ROOT=/home/seirdy/public_html GEMINI_ROOT=/home/seirdy/public_gemini HUGO_BASEURL='https://envs.net/~seirdy/' OUTPUT_DIR=public_envs deploy
|
@$(MAKE) SSHFLAGS='-o KexAlgorithms=curve25519-sha256@libssh.org' HUGO_FLAGS='' USER=seirdy@envs.net WWW_ROOT=/home/seirdy/public_html GEMINI_ROOT=/home/seirdy/public_gemini HUGO_BASEURL='https://envs.net/~seirdy/' OUTPUT_DIR=public_envs deploy
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
{{- $period = "hourly" -}}
|
{{- $period = "hourly" -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- $icon := resources.Get "/favicon.svg" | resources.Fingerprint "md5" -}}
|
{{- $icon := resources.Get "/favicon.svg" | resources.Fingerprint "md5" -}}
|
||||||
|
{{- $image := resources.Get "/favicon192.png" | resources.Fingerprint "md5" -}}
|
||||||
{{- $logo := resources.Get "/atom.svg" | resources.Fingerprint "md5" -}}
|
{{- $logo := resources.Get "/atom.svg" | resources.Fingerprint "md5" -}}
|
||||||
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||||
<feed
|
<feed
|
||||||
|
@ -22,7 +23,8 @@
|
||||||
xmlns:poco="http://portablecontacts.net/spec/1.0"
|
xmlns:poco="http://portablecontacts.net/spec/1.0"
|
||||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
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"
|
||||||
|
xmlns:webfeeds="http://webfeeds.org/rss/1.0">
|
||||||
<title>{{ $title }} on {{ .Site.Title }}</title>
|
<title>{{ $title }} on {{ .Site.Title }}</title>
|
||||||
<subtitle>
|
<subtitle>
|
||||||
{{- if .Params.Description -}}
|
{{- if .Params.Description -}}
|
||||||
|
@ -31,8 +33,11 @@
|
||||||
{{- .Site.Params.Description -}}
|
{{- .Site.Params.Description -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
</subtitle>
|
</subtitle>
|
||||||
<icon>{{ $icon.Permalink }}</icon><logo>{{ $logo.Permalink }}</logo>
|
|
||||||
<link rel="self" type="application/atom+xml" href="{{ .Permalink }}atom.xml" />
|
<link rel="self" type="application/atom+xml" href="{{ .Permalink }}atom.xml" />
|
||||||
|
<icon>{{ $icon.Permalink }}</icon>
|
||||||
|
<webfeeds:icon>{{ $icon.Permalink }}</webfeeds:icon>
|
||||||
|
<logo>{{ $logo.Permalink }}</logo>
|
||||||
|
<webfeeds:accentColor>191919</webfeeds:accentColor>
|
||||||
<sy:updatePeriod>{{ $period }}</sy:updatePeriod>
|
<sy:updatePeriod>{{ $period }}</sy:updatePeriod>
|
||||||
<sy:updateFrequency>2</sy:updateFrequency>
|
<sy:updateFrequency>2</sy:updateFrequency>
|
||||||
<author>
|
<author>
|
||||||
|
@ -43,16 +48,20 @@
|
||||||
<uri>https://seirdy.one/</uri>
|
<uri>https://seirdy.one/</uri>
|
||||||
</author>
|
</author>
|
||||||
<admin:errorReportsTo rdf:resource="mailto:seirdy@seirdy.one" />
|
<admin:errorReportsTo rdf:resource="mailto:seirdy@seirdy.one" />
|
||||||
|
<link rel="license" type="application/rdf+xml" href="https://creativecommons.org/licenses/by-sa/4.0/rdf" />
|
||||||
<updated>{{ now.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</updated>
|
<updated>{{ now.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</updated>
|
||||||
<id>{{ .Permalink }}</id>
|
<id>{{ .Permalink }}</id>
|
||||||
{{ range $pages -}}
|
{{ range $pages -}}
|
||||||
{{- if not .Params.Private -}}
|
{{- if not .Params.Private -}}
|
||||||
<entry>
|
<entry>
|
||||||
<title>{{ .Title }}</title>
|
<title>{{ .Title }}</title>
|
||||||
<link rel="alternate" type="text/html" href="{{ .Permalink }}" /><id>{{ .Permalink }}</id>
|
<link rel="alternate" type="text/html" href="{{ .Permalink }}" />
|
||||||
<published>{{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</published><updated>{{ .Lastmod.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</updated>
|
<id>{{ .Permalink }}</id>
|
||||||
|
<published>{{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</published>
|
||||||
|
<updated>{{ .Lastmod.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</updated>
|
||||||
<author><name>{{ .Site.Author.name }}</name><uri>https://seirdy.one/</uri></author>
|
<author><name>{{ .Site.Author.name }}</name><uri>https://seirdy.one/</uri></author>
|
||||||
<rights>CC-BY-SA 4.0</rights>
|
<rights>CC-BY-SA 4.0</rights>
|
||||||
|
<link rel="license" type="application/rdf+xml" href="https://creativecommons.org/licenses/by-sa/4.0/rdf" />
|
||||||
{{- with .Params.replyURI -}}
|
{{- with .Params.replyURI -}}
|
||||||
<thr:in-reply-to ref="{{ . }}" href="{{ . }}" />
|
<thr:in-reply-to ref="{{ . }}" href="{{ . }}" />
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
@ -66,9 +75,9 @@
|
||||||
<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>
|
||||||
{{- with .Params.image -}}
|
{{- with .Params.image -}}
|
||||||
{{- $image := resources.Get (printf "/p/%s" . ) | resources.Fingerprint "md5" -}}
|
{{- $image = resources.Get (printf "/p/%s" . ) | resources.Fingerprint "md5" -}}
|
||||||
<media:thumbnail url="{{ $image.Permalink }}" width="{{ $image.Width }}" height="{{ $image.Height }}" />
|
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
<media:thumbnail url="{{ $image.Permalink }}" width="{{ $image.Width }}" height="{{ $image.Height }}" />
|
||||||
<content type="xhtml" xml:base="{{ .Permalink }}">
|
<content type="xhtml" xml:base="{{ .Permalink }}">
|
||||||
<div xmlns="http://www.w3.org/1999/xhtml">
|
<div xmlns="http://www.w3.org/1999/xhtml">
|
||||||
{{- if .Params.replyURI -}}
|
{{- if .Params.replyURI -}}
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
</header>
|
</header>
|
||||||
<hr />
|
<hr />
|
||||||
<div class="e-content entry-content" itemprop="articleBody">
|
<div class="e-content entry-content" itemprop="articleBody">
|
||||||
<meta itemprop="author" content="Rohan Kumar" />
|
|
||||||
<!--That was needed bc some reading modes get confused by other authors referenced in the text-->
|
<!--That was needed bc some reading modes get confused by other authors referenced in the text-->
|
||||||
{{- if .Params.replyURI -}}
|
{{- if .Params.replyURI -}}
|
||||||
{{- partial "reply-context" .Params -}}
|
{{- partial "reply-context" .Params -}}
|
||||||
|
|
|
@ -107,7 +107,7 @@
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
{{ if or (eq .Name "image-figure") (eq .Name "transcribed-image-figure") -}}
|
{{ if or (eq .Name "image-figure") (eq .Name "transcribed-image-figure") -}}
|
||||||
itemprop="image contentUrl"
|
itemprop="image contentUrl url"
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
decoding="async" />
|
decoding="async" />
|
||||||
|
|
|
@ -45,7 +45,7 @@ sed 7d "$html_file" | run_xmllint | tail -n +2 >"$tmp_file"
|
||||||
#shellcheck source=/home/rkumar/Executables/ghq/git.sr.ht/~seirdy/seirdy.one/scripts/xhtmlize.sh
|
#shellcheck source=/home/rkumar/Executables/ghq/git.sr.ht/~seirdy/seirdy.one/scripts/xhtmlize.sh
|
||||||
sed \
|
sed \
|
||||||
-e '1,7d' \
|
-e '1,7d' \
|
||||||
-e 's|</span>( )?.span itemprop="familyName|</span> <span itemprop="familyName"|' \
|
-e 's|</span><span itemprop="familyName"|</span>\ <span itemprop="familyName"|' \
|
||||||
-e 's|class="u-photo photo"[^<]*<|class="u-photo photo"/> <|' \
|
-e 's|class="u-photo photo"[^<]*<|class="u-photo photo"/> <|' \
|
||||||
-E \
|
-E \
|
||||||
-e 's|([a-z])<data|\1 <data|' \
|
-e 's|([a-z])<data|\1 <data|' \
|
||||||
|
|
Loading…
Reference in a new issue