1
Fork 0

Base64 encode content, so files are smaller and more compressable

This commit is contained in:
Jake Howard 2018-05-10 13:57:53 +01:00
parent 1e4cfebc41
commit ef6c17f3c0
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom"> <feed xmlns="http://www.w3.org/2005/Atom">
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title> <title type="text">{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title>
<subtitle>A subtitle.</subtitle> <subtitle>A subtitle.</subtitle>
<link href="{{ .Permalink }}" rel="self" /> <link href="{{ .Permalink }}" rel="self" />
<link href="{{ absURL "/" }}" /> <link href="{{ absURL "/" }}" />
@ -26,9 +26,9 @@
<rights type="html"> <rights type="html">
{{ partial "copyright.html" . | html }} {{ partial "copyright.html" . | html }}
</rights> </rights>
<summary>{{ .Summary }}</summary> <summary>{{ base64Encode .Summary }}</summary>
<content type="html"> <content>
{{ .Content | html }} {{ base64Encode .Content }}
</content> </content>
<author> <author>
<name>{{ .Site.Params.author }}</name> <name>{{ .Site.Params.author }}</name>