mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-23 21:02:09 +00:00
Atom: directly include un-escaped XHTML
This commit is contained in:
parent
6a7ac36f11
commit
e453714d42
3 changed files with 8 additions and 4 deletions
|
@ -150,5 +150,5 @@ disableKinds = ["taxonomy", "term"]
|
||||||
# don't minify html but minify other resources, esp the fulltext rss/atom feeds
|
# don't minify html but minify other resources, esp the fulltext rss/atom feeds
|
||||||
[minify]
|
[minify]
|
||||||
minifyOutput = true
|
minifyOutput = true
|
||||||
disableXML = false
|
disableXML = true
|
||||||
disableHTML = true
|
disableHTML = true
|
||||||
|
|
|
@ -8,5 +8,5 @@
|
||||||
{{- $href := printf "%s%s%s" $baseURL $parsedDest.Path $fragment | absURL -}}
|
{{- $href := printf "%s%s%s" $baseURL $parsedDest.Path $fragment | absURL -}}
|
||||||
<a href="{{ $href }}"{{ with .Title}} title="{{ . }}"{{ end }}>{{ .Text | safeHTML }}</a>
|
<a href="{{ $href }}"{{ with .Title}} title="{{ . }}"{{ end }}>{{ .Text | safeHTML }}</a>
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
<a href="{{ .Destination }}"{{ with .Title}} title="{{ . }}"{{ end }}>{{ .Text | safeHTML }}</a>
|
<a href="{{ .Destination | htmlEscape }}"{{ with .Title}} title="{{ . }}"{{ end }}>{{ .Text | safeHTML }}</a>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
<id>{{ .Permalink }}</id>
|
<id>{{ .Permalink }}</id>
|
||||||
{{ range $pages }}
|
{{ range $pages }}
|
||||||
<entry>
|
<entry>
|
||||||
<title type="html"><![CDATA[{{ .Title | safeHTML }}]]></title>
|
<title type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml">{{ .Title | safeHTML }}</div></title>
|
||||||
<link href="{{ .Permalink }}" />
|
<link href="{{ .Permalink }}" />
|
||||||
<published>{{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</published>
|
<published>{{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</published>
|
||||||
<updated>{{ .Lastmod.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</updated>
|
<updated>{{ .Lastmod.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</updated>
|
||||||
|
@ -26,7 +26,11 @@
|
||||||
</author>
|
</author>
|
||||||
<id>{{ .Permalink }}</id>
|
<id>{{ .Permalink }}</id>
|
||||||
<rights>CC-BY-SA 4.0 by Rohan Kumar</rights>
|
<rights>CC-BY-SA 4.0 by Rohan Kumar</rights>
|
||||||
<content type="html"><![CDATA[{{ .Content | safeHTML }}]]></content>
|
<content type="xhtml">
|
||||||
|
<div xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
{{ partial "processed-content.html" . | safeHTML }}
|
||||||
|
</div>
|
||||||
|
</content>
|
||||||
<object-type xmlns="http://activitystrea.ms/spec/1.0/">
|
<object-type xmlns="http://activitystrea.ms/spec/1.0/">
|
||||||
{{- if eq .Section "notes" -}}
|
{{- if eq .Section "notes" -}}
|
||||||
note
|
note
|
||||||
|
|
Loading…
Reference in a new issue