mirror of
https://github.com/Brandon-Rozek/website.git
synced 2025-10-09 22:41:13 +00:00
Adjusting postroll RSS/Atom/JSONFeed
This commit is contained in:
parent
6a9e1847d7
commit
9a663b328a
3 changed files with 97 additions and 0 deletions
12
layouts/postroll/item.json.json
Normal file
12
layouts/postroll/item.json.json
Normal file
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"id": "{{ .Params.url }}",
|
||||
"url": "{{ .Params.url }}",
|
||||
"title": {{ .Title | jsonify }},
|
||||
"authors": ["{{ .Params.author }}"],
|
||||
{{ $pre := "<p><strong>Brandon's Comment:</strong></p>" }}
|
||||
{{ $content := .Content }}
|
||||
{{ $combined := printf "%s%s" $pre $content}}
|
||||
{{ $combined := $combined | jsonify (dict "noHTMLEscape" true) }}
|
||||
"content_html": {{ $combined }},
|
||||
"date_published": "{{ .Date.Format "2006.01.02" }}"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue