mirror of
https://github.com/softinio/softinio.com.git
synced 2025-08-31 17:26:42 -07:00
Upgrade hugo, add new comments and jsonfeed
This commit is contained in:
parent
5cc8f26047
commit
10ad0367e3
4 changed files with 46 additions and 3 deletions
21
layouts/index.jsonfeed.json
Normal file
21
layouts/index.jsonfeed.json
Normal file
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
"version": "https://jsonfeed.org/version/1",
|
||||
"title": "{{ .Site.Title }}",
|
||||
"home_page_url": {{ .Permalink | jsonify }},
|
||||
"feed_url": {{ with .OutputFormats.Get "jsonfeed" -}}
|
||||
{{- .Permalink | jsonify -}}
|
||||
{{- end }},
|
||||
"items": [
|
||||
{{ range $index, $entry := first 10 .Data.Pages }}
|
||||
{{- if $index }}, {{ end }}
|
||||
{
|
||||
"id": {{ .Permalink | jsonify }},
|
||||
"url": {{ .Permalink | jsonify }},
|
||||
"title": {{ .Title | jsonify }},
|
||||
"date_published": {{ .Date.Format "2006-01-02T15:04:05Z07:00" | jsonify }},
|
||||
"content_html": {{ .Content | jsonify }}
|
||||
}
|
||||
{{- end }}
|
||||
]
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue