Merge pull request #4 from recanman/main

fix a couple of things, add RSS feed
This commit is contained in:
rottenwheel 2024-07-04 00:23:23 -05:00 committed by GitHub
commit 2217bbba0a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 40 additions and 9 deletions

View file

@ -0,0 +1,27 @@
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>{{ .Site.Title }}</title>
<link>{{ .Site.BaseURL }}</link>
<description>{{ .Site.Params.Description }}</description>
<generator>Hugo</generator>
<language>{{ .Site.LanguageCode }}</language>
<managingEditor>{{ .Site.Params.Author.name }}</managingEditor>
<webMaster>{{ .Site.Params.Author.name }}</webMaster>
<copyright>{{ .Site.Params.Author.name }}</copyright>
<lastBuildDate>{{ now.Format "Mon, 02 Jan 2006 15:04:05 -0700" }}</lastBuildDate>
<atom:link href="{{ .Permalink }}" rel="self" type="application/rss+xml" />
{{ range where .Site.Pages "Type" "weekly" }}
<item>
<title>{{ .Title }}</title>
<link>{{ .Permalink }}</link>
<guid isPermaLink="true">{{ .Permalink }}</guid>
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" }}</pubDate>
<content type="html">{{ .Content | truncate 350 | html }}</content>
<media:thumbnail url="{{ .Permalink }}cover.png" xmlns:media="http://search.yahoo.com/mrss/" />
<media:content medium="image" url="{{ .Permalink }}cover.png" xmlns:media="http://search.yahoo.com/mrss/" />
</item>
{{ end }}
</channel>
</rss>

View file

@ -7,10 +7,10 @@
<meta name="description" content="{{ .Description }}" /> <meta name="description" content="{{ .Description }}" />
<meta name="keywords" content="{{ .Keywords }}" /> <meta name="keywords" content="{{ .Keywords }}" />
<link rel="icon" type="image/png" sizes="32x32" href="/revuo-icon_1.png" /> <link rel="icon" type="image/png" sizes="32x32" href="/img/revuo-icon_1.png" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon_1.png" /> <link rel="apple-touch-icon" sizes="180x180" href="/img/apple-touch-icon_1.png" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32_1.png" /> <link rel="icon" type="image/png" sizes="32x32" href="/img/favicon-32x32_1.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16_1.png" /> <link rel="icon" type="image/png" sizes="16x16" href="/img/favicon-16x16_1.png" />
<meta name="application-name" content="{{ .Site.Title }}" /> <meta name="application-name" content="{{ .Site.Title }}" />
<meta name="msapplication-TileColor" content="#ffffff" /> <meta name="msapplication-TileColor" content="#ffffff" />
@ -23,6 +23,10 @@
<meta property="og:site_name" content="{{ .Site.Title }}" /> <meta property="og:site_name" content="{{ .Site.Title }}" />
<meta property="og:title" content="{{ .Title }}" /> <meta property="og:title" content="{{ .Title }}" />
{{ with .OutputFormats.Get "rss" -}}
{{ printf `<link rel=%q type=%q href=%q title=%q>` .Rel .MediaType.Type .Permalink site.Title | safeHTML }}
{{ end }}
<script type="application/ld+json"> <script type="application/ld+json">
{ {
"@context" : "http://schema.org", "@context" : "http://schema.org",
@ -37,11 +41,11 @@
// "description" : "{{ if .Description }}{{ .Description }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ end }}{{ end }}", // "description" : "{{ if .Description }}{{ .Description }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ end }}{{ end }}",
"description" : "{{ with .Description }}{{ . }}{{ else }}{{ .Site.Params.description }}{{ end }}" "description" : "{{ with .Description }}{{ . }}{{ else }}{{ .Site.Params.description }}{{ end }}"
"inLanguage" : "{{ .Lang }}", "inLanguage" : "{{ .Lang }}",
"author" : "{{ range .Site.Author }}{{ . }}{{ end }}", "author" : "{{ .Site.Params.Author.name }}",
"creator" : "{{ range .Site.Author }}{{ . }}{{ end }}", "creator" : "{{ .Site.Params.Author.name }}",
"publisher": "{{ range .Site.Author }}{{ . }}{{ end }}", "publisher": "{{ .Site.Params.Author.name }}",
"accountablePerson" : "{{ range .Site.Author }}{{ . }}{{ end }}", "accountablePerson" : "{{ .Site.Params.Author.name }}",
"copyrightHolder" : "{{ range .Site.Author }}{{ . }}{{ end }}", "copyrightHolder" : "{{ .Site.Params.Author.name }}",
"copyrightYear" : "{{ .Date.Format "2006" }}", "copyrightYear" : "{{ .Date.Format "2006" }}",
"datePublished": "{{ .Date | safeHTML }}", "datePublished": "{{ .Date | safeHTML }}",
"dateModified" : "{{ .Date | safeHTML }}", "dateModified" : "{{ .Date | safeHTML }}",