mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-23 12:52:10 +00:00
Compare commits
No commits in common. "1eedc95339712975a20d30ba6bd4824c5ee444a7" and "da534b27a355707a10c826dbb2938d619d3c12c6" have entirely different histories.
1eedc95339
...
da534b27a3
2 changed files with 6 additions and 19 deletions
|
@ -16,23 +16,17 @@
|
|||
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||
<feed
|
||||
xmlns="http://www.w3.org/2005/Atom"
|
||||
xml:lang="{{ .Site.LanguageCode }}"
|
||||
xmlns:activity="http://activitystrea.ms/spec/1.0/"
|
||||
xmlns:admin="http://webns.net/mvcb/"
|
||||
xmlns:cf="http://www.microsoft.com/schemas/rss/core/2005"
|
||||
xmlns:media="http://search.yahoo.com/mrss/"
|
||||
xmlns:ostatus="http://ostatus.org/schema/1.0"
|
||||
xmlns:poco="http://portablecontacts.net/spec/1.0"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
|
||||
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
|
||||
xmlns:thr="http://purl.org/syndication/thread/1.0"
|
||||
xmlns:webfeeds="http://webfeeds.org/rss/1.0"
|
||||
xml:lang="{{ .Site.LanguageCode }}">
|
||||
<cf:treatAs>list</cf:treatAs>
|
||||
<cf:listinfo>
|
||||
<cf:sort
|
||||
ns="http://www.w3.org/2005/Atom"
|
||||
element="published" data-type="date" label="Date published" default="true"/>
|
||||
</cf:listinfo>
|
||||
xmlns:webfeeds="http://webfeeds.org/rss/1.0">
|
||||
<title>{{ $title }} on {{ .Site.Title }}</title>
|
||||
<subtitle>
|
||||
{{- if .Params.Description -}}
|
||||
|
@ -79,14 +73,12 @@
|
|||
<rights type="text">Copyright © {{ now.Year }} Rohan Kumar</rights>
|
||||
<link rel="license" type="application/rdf+xml" href="https://creativecommons.org/licenses/by-sa/4.0/rdf" />
|
||||
{{- with .Params.replyURI -}}
|
||||
<thr:in-reply-to ref="{{ . }}" href="{{ . }}" type="text/html" />
|
||||
<link rel="related" type="text/html" href="{{ . }}" />
|
||||
<thr:in-reply-to ref="{{ . }}" href="{{ . }}" />
|
||||
{{- end -}}
|
||||
{{- with .Params.replyAuthorURI -}}
|
||||
<link rel="mentioned" ostatus:object-type="http://activitystrea.ms/schema/1.0/person" href="{{ . }}"/>
|
||||
{{- end -}}
|
||||
{{- $type := "article" -}}
|
||||
{{- /* TODO: add bookmark type and convert bookmarks to their own post types. */ -}}
|
||||
{{- if eq .Section "notes" -}}
|
||||
{{- $type = "note" -}}
|
||||
{{- end -}}
|
||||
|
@ -107,12 +99,7 @@
|
|||
{{ partial "processed-content.html" . | replaceRE `(?: )?(?:item(type|scope|prop|id|ref)="[^"]*"|class="language-figure")` "" | replaceRE `<meta content="true" ?/>` "" | safeHTML -}}
|
||||
</div>
|
||||
</content>
|
||||
{{- /* TODO: add application/atom+xml version of comments. */ -}}
|
||||
<link
|
||||
rel="replies" type="text/html"
|
||||
href="{{ .Permalink }}#webmentions"
|
||||
thr:count="{{ .Page.Scratch.Get "webmentionCount" }}" />
|
||||
<thr:total>{{ .Page.Scratch.Get "webmentionCount" }}</thr:total>
|
||||
<slash:comments>{{ .Page.Scratch.Get "webmentionCount" }}</slash:comments>
|
||||
</entry>
|
||||
{{ end -}}
|
||||
{{- end }}
|
||||
|
|
|
@ -52,5 +52,5 @@ sed 7d "$html_file" | run_xmllint | tail -n +2 >"$tmp_file"
|
|||
-e 's#</span>(<a[^>]*rel="(nofollow ugc|ugc nofollow)"([^>]*)?>liked</a>)#</span> \1#' \
|
||||
-e 's#^[\t\s]*<(code|/pre)#<\1#' \
|
||||
"$tmp_file" \
|
||||
| awk '/(^<\/code>|<pre tabindex="0">)/{printf "%s",$0;next}7'
|
||||
| awk '/^<\/code>/{printf "%s",$0;next}7'
|
||||
} >"$html_file"
|
||||
|
|
Loading…
Reference in a new issue