Commit 777bf67f authored by Phu Nguyen's avatar Phu Nguyen
Browse files

Cleanup

- Use the shared RSS template
parent 3a0261f2
......@@ -3,3 +3,5 @@
/kate/
/ktexteditor/
/syntax-highlighting/
/pos/
/locale/
......@@ -1347,6 +1347,8 @@ markup:
goldmark:
renderer:
unsafe: true
highlight:
style: tango
module:
imports:
- path: invent.kde.org/websites/aether-sass
......@@ -1355,32 +1357,9 @@ outputs:
- HTML
- RSS
params:
comments: false
commit: true
logo: /images/kate.svg
matomo: 33
readingTime: true
repoName: kate-editor-org
rss: false
selfHosted: true
rssSection: post
showPatrons: false
showRelatedPosts: true
useHLJS: true
wordCount: false
privacy:
disqus:
disable: true
googleAnalytics:
disable: true
instagram:
disable: true
twitter:
disable: true
vimeo:
disable: true
youtube:
disable: true
pygmentsCodeFences: true
pygmentsCodefencesGuessSyntax: true
pygmentsStyle: trac
pygmentsUseClasses: true
---
title: Features
hideMeta: true
author: Christoph Cullmann
date: 2010-07-09T08:40:19+00:00
menu:
main:
......
---
title: Build It
hideMeta: true
author: Christoph Cullmann
date: 2016-06-13T15:15:02+00:00
menu:
......
---
title: Get Kate
hideMeta: true
author: Christoph Cullmann
date: 2010-07-09T14:40:05+00:00
sassFiles:
......
---
title: Join Us
hideMeta: true
author: Christoph Cullmann
date: 2010-07-09T08:58:54+00:00
menu:
......
---
title: VI Mode
hideMeta: true
author: Erlend Hamberg
date: 2010-08-30T18:09:51+00:00
menu:
......
---
title: Merge Requests
hideMeta: true
author: Christoph Cullmann
date: 2021-01-24T01:01:01+00:00
menu:
......
---
title: Get Help
hideMeta: true
author: Christoph Cullmann
date: 2010-07-09T08:23:52+00:00
menu:
......
---
title: Syntax Highlighting
hideMeta: true
author: Christoph Cullmann
date: 2019-08-24T12:12:12+00:00
menu:
......
---
title: The Team
hideMeta: true
author: Christoph Cullmann
date: 2010-07-09T09:03:57+00:00
menu:
......
---
title: Color Themes
hideMeta: true
author: Christoph Cullmann
date: 2019-08-24T12:12:12+00:00
menu:
......
{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\" ?>" | safeHTML }}
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title>
<link>{{ .Permalink }}</link>
<description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }}</description>
<generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }}
<language>{{.}}</language>{{end}}{{ with .Site.Author.email }}
<managingEditor>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Author.email }}
<webMaster>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }}
<copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }}
<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
{{ with .OutputFormats.Get "RSS" }}
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
{{ end }}
{{ $pages := (.Site.GetPage "/post").RegularPagesRecursive }}
{{ range first 4 (where $pages "Params.hidden" "ne" "true") }}
<item>
<title>{{ .Title }}</title>
<link>{{ .Permalink }}</link>
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
{{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
<guid>{{ .Permalink }}</guid>
<description>{{ .Content | html }}</description>
</item>
{{ end }}
</channel>
</rss>
......@@ -13,6 +13,7 @@ import datetime
requestsMd = open(sys.path[0] + "/content/merge-requests.md", 'w')
requestsMd.write('''---
title: Merge Requests
hideMeta: true
author: Christoph Cullmann
date: 2021-01-24T01:01:01+00:00
menu:
......
<?xml version="1.0" encoding="utf-8"?>
<browserconfig>
<msapplication>
<tile>
<square150x150logo src="/mstile-150x150.png"/>
<TileColor>#1f99f3</TileColor>
</tile>
</msapplication>
</browserconfig>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment