~ashie/blog

e530bfafe0cad10eef6a7406df6683969772fa97 — Ash 12 days ago f478a76
style: some formatting
2 files changed, 34 insertions(+), 18 deletions(-)

M layouts/_default/_markup/render-link.html
M layouts/_default/rss.xml
M layouts/_default/_markup/render-link.html => layouts/_default/_markup/render-link.html +1 -1
@@ 6,7 6,7 @@
            strings.Contains
                .Destination
                (replaceRE "https?://([^/]+).*" "$1" site.BaseURL)
                | not
            | not
        )
    -}}
        <sup>↗</sup>

M layouts/_default/rss.xml => layouts/_default/rss.xml +33 -17
@@ 1,9 1,12 @@
{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
{{- $pages := .Site.RegularPages }}
{{- $limit := .Site.Config.Services.RSS.Limit }}
{{- if ge $limit 1 }}
{{
    printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>"
        | safeHTML
}}
{{ $pages := .Site.RegularPages }}
{{ $limit := .Site.Config.Services.RSS.Limit }}
{{ if ge $limit 1 }}
    {{ $pages = $pages | first $limit }}
{{- end }}
{{ end }}
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>{{ .Site.Title }}</title>


@@ 11,24 14,37 @@
    <description>Articles from {{ .Site.Title }}</description>
    {{ with .Site.LanguageCode }}<language>{{.}}</language>{{end}}
    <copyright>{{ .Site.Copyright }}</copyright>
    <managingEditor>{{ .Site.Author.email }} ({{ .Site.Author.name }})</managingEditor>
    <managingEditor>
        {{ .Site.Author.email }} ({{ .Site.Author.name }})
    </managingEditor>
    <webMaster>{{ .Site.Author.email }} ({{ .Site.Author.name }})</webMaster>
    <lastBuildDate>{{ now.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>
    <lastBuildDate>
        {{ now.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}
    </lastBuildDate>
    <generator>Hugo -- gohugo.io</generator>
    <docs>https://www.rssboard.org/rss-specification</docs>
    {{ with .OutputFormats.Get "RSS" }}
    {{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
        {{
            printf "<atom:link href=%q rel=\"self\" type=%q />"
                .Permalink
                .MediaType
            | safeHTML
        }}
    {{ end }}
    {{ range where $pages "Type" "blog" }}
    <item>
      <title>{{ .Title }}</title>
      <link>{{ .Permalink }}</link>
      <description>{{ .Content | html }}</description>
      <author>{{ .Site.Author.email }} ({{ .Site.Author.name }})</author>
      <guid>{{ printf "%d-%s" .Date.Unix (.File.ContentBaseName | urlize) }}</guid>
      <pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
      <comments>{{ .Site.BaseURL }}/contact.html</comments>
    </item>
        <item>
            <title>{{ .Title }}</title>
            <link>{{ .Permalink }}</link>
            <description>{{ .Content | html }}</description>
            <author>{{ .Site.Author.email }} ({{ .Site.Author.name }})</author>
            <guid>
                {{ printf "%d-%s" .Date.Unix (.File.ContentBaseName | urlize) }}
            </guid>
            <pubDate>
                {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}
            </pubDate>
            <comments>{{ .Site.BaseURL }}/contact.html</comments>
        </item>
    {{ end }}
  </channel>
</rss>