mirror of
https://github.com/danbee/danbarber.me.hugo.git
synced 2025-03-04 08:59:18 +00:00
Compare commits
5 Commits
ad7a76175f
...
10be52708a
| Author | SHA1 | Date | |
|---|---|---|---|
| 10be52708a | |||
| ee43d83ac7 | |||
| ea630afc95 | |||
| e1d7668a3e | |||
| 32baf7cad5 |
@ -7,20 +7,21 @@
|
||||
"feed_url": "{{ .Permalink}}",
|
||||
|
||||
"items": [
|
||||
{{ range $i, $e := first 40 .Site.RegularPages }}
|
||||
{{ range $i, $e := first 20 .Site.RegularPages }}
|
||||
{{ if $i }}, {{ end }}
|
||||
|
||||
{
|
||||
"id": "{{ .Permalink }}",
|
||||
"title": "{{ .Title }}",
|
||||
{{ if .Params.image }} {{ $src := .Page.Resources.GetMatch (.Params.image) }}
|
||||
{{ if .Params.image }}
|
||||
{{ $src := .Page.Resources.GetMatch (.Params.image) }}
|
||||
{{ $image := $src.Fit $imageSize }}
|
||||
"image": "{{ $image.RelPermalink }}",
|
||||
{{ end }}
|
||||
{{ if .Params.categories }}
|
||||
"categories": ["{{ delimit .Params.categories "," }}"],
|
||||
{{ end }}
|
||||
"content_text": {{ .Summary | jsonify }},
|
||||
"content_html": {{ .Content | jsonify }},
|
||||
"url": "{{ .Permalink }}",
|
||||
"date_published": "{{ .Date }}"
|
||||
}
|
||||
|
||||
41
layouts/index.xml
Normal file
41
layouts/index.xml
Normal file
@ -0,0 +1,41 @@
|
||||
{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\" ?>" | safeHTML }}
|
||||
<feed xmlns="http://www.w3.org/2005/Atom">
|
||||
|
||||
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title>
|
||||
<link href="{{ .Permalink }}" />
|
||||
<link rel="self" href="{{ .Permalink }}index.xml" />
|
||||
<id>{{ .Permalink }}</id>
|
||||
<generator uri="https://gohugo.io">Hugo</generator>
|
||||
|
||||
<author>
|
||||
<name>Daniel Barber</name>
|
||||
</author>
|
||||
|
||||
{{ with .Site.Author.email }}
|
||||
<author>
|
||||
<name>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</name>
|
||||
</author>
|
||||
{{end}}
|
||||
|
||||
{{ with .Site.Copyright }}
|
||||
<copyright>{{.}}</copyright>
|
||||
{{end}}
|
||||
|
||||
{{ if not .Date.IsZero }}
|
||||
<updated>{{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</updated>
|
||||
{{ end }}
|
||||
|
||||
{{ range first 20 .Site.RegularPages }}
|
||||
<entry>
|
||||
<title>{{ .Title }}</title>
|
||||
<link href="{{ .Permalink }}" />
|
||||
<updated>{{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</updated>
|
||||
<id>{{ .Permalink }}</id>
|
||||
<author>
|
||||
<name>Daniel Barber</name>
|
||||
</author>
|
||||
<content type="html">{{ .Content | html }}</content>
|
||||
</entry>
|
||||
{{ end }}
|
||||
|
||||
</feed>
|
||||
@ -21,6 +21,15 @@
|
||||
{{- end }}
|
||||
{{ end -}}
|
||||
|
||||
<!-- Favicon -->
|
||||
<link href="" rel="shortcut icon">
|
||||
|
||||
<!-- Large favicon for Opera Speed Dial -->
|
||||
<link rel="icon" type="image/png" href="/favicon_32.png">
|
||||
|
||||
<!-- iOS favicons -->
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon-180x180.png">
|
||||
|
||||
<!-- Indieweb -->
|
||||
<link rel="micropub" href="https://danbarber.me/micropub/main">
|
||||
<link rel="token_endpoint" href="https://tokens.indieauth.com/token">
|
||||
|
||||
@ -1,33 +1,35 @@
|
||||
{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\" ?>" | safeHTML }}
|
||||
<feed xmlns="http://www.w3.org/2005/Atom">
|
||||
|
||||
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title>
|
||||
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title>
|
||||
<link href="{{ .Permalink }}" />
|
||||
<link rel="self" href="{{ .Permalink }}index.xml" />
|
||||
<id>{{ .Permalink }}"</id>
|
||||
<generator uri="https://gohugo.io">Hugo</generator>
|
||||
|
||||
<author>
|
||||
<name>Daniel Barber</name>
|
||||
</author>
|
||||
|
||||
{{ with .Site.Copyright }}
|
||||
<copyright>{{.}}</copyright>
|
||||
{{end}}
|
||||
|
||||
{{ if not .Date.IsZero }}
|
||||
<updated>{{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</updated>
|
||||
{{ end }}
|
||||
|
||||
{{ range first 20 .Pages }}
|
||||
<entry>
|
||||
<title>{{ .Title }}</title>
|
||||
<link href="{{ .Permalink }}" />
|
||||
<id>{{ .Permalink }}"</id>
|
||||
<generator uri="https://gohugo.io">Hugo</generator>
|
||||
|
||||
{{ with .Site.Author.email }}
|
||||
<updated>{{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</updated>
|
||||
<id>{{ .Permalink }}</id>
|
||||
<author>
|
||||
<name>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</name>
|
||||
<name>Daniel Barber</name>
|
||||
</author>
|
||||
{{end}}
|
||||
|
||||
{{ with .Site.Copyright }}
|
||||
<copyright>{{.}}</copyright>
|
||||
{{end}}
|
||||
|
||||
{{ if not .Date.IsZero }}
|
||||
<updated>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</updated>
|
||||
{{ end }}
|
||||
|
||||
{{ range first 20 .Pages }}
|
||||
<entry>
|
||||
<title>{{ .Title }}</title>
|
||||
<link href="{{ .Permalink }}" />
|
||||
<updated>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</updated>
|
||||
<id>{{ .Permalink }}</id>
|
||||
<content type="html">{{ .Content | html }}</content>
|
||||
</entry>
|
||||
{{ end }}
|
||||
<content type="html">{{ .Content | html }}</content>
|
||||
</entry>
|
||||
{{ end }}
|
||||
|
||||
</feed>
|
||||
|
||||
@ -1,33 +1,35 @@
|
||||
{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\" ?>" | safeHTML }}
|
||||
<feed xmlns="http://www.w3.org/2005/Atom">
|
||||
|
||||
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title>
|
||||
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title>
|
||||
<link href="{{ .Permalink }}" />
|
||||
<link rel="self" href="{{ .Permalink }}index.xml" />
|
||||
<id>{{ .Permalink }}</id>
|
||||
<generator uri="https://gohugo.io">Hugo</generator>
|
||||
|
||||
<author>
|
||||
<name>Daniel Barber</name>
|
||||
</author>
|
||||
|
||||
{{ with .Site.Copyright }}
|
||||
<copyright>{{.}}</copyright>
|
||||
{{end}}
|
||||
|
||||
{{ if not .Date.IsZero }}
|
||||
<updated>{{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</updated>
|
||||
{{ end }}
|
||||
|
||||
{{ range first 20 .Pages }}
|
||||
<entry>
|
||||
<title>{{ .Title }}</title>
|
||||
<link href="{{ .Permalink }}" />
|
||||
<id>{{ .Permalink }}"</id>
|
||||
<generator uri="https://gohugo.io">Hugo</generator>
|
||||
|
||||
{{ with .Site.Author.email }}
|
||||
<updated>{{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</updated>
|
||||
<id>{{ .Permalink }}</id>
|
||||
<author>
|
||||
<name>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</name>
|
||||
<name>Daniel Barber</name>
|
||||
</author>
|
||||
{{end}}
|
||||
|
||||
{{ with .Site.Copyright }}
|
||||
<copyright>{{.}}</copyright>
|
||||
{{end}}
|
||||
|
||||
{{ if not .Date.IsZero }}
|
||||
<updated>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</updated>
|
||||
{{ end }}
|
||||
|
||||
{{ range first 20 .Pages }}
|
||||
<entry>
|
||||
<title>{{ .Title }}</title>
|
||||
<link href="{{ .Permalink }}" />
|
||||
<updated>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</updated>
|
||||
<id>{{ .Permalink }}</id>
|
||||
<content type="html">{{ .Content | html }}</content>
|
||||
</entry>
|
||||
{{ end }}
|
||||
<content type="html">{{ .Content | html }}</content>
|
||||
</entry>
|
||||
{{ end }}
|
||||
|
||||
</feed>
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
[build]
|
||||
publish = "public"
|
||||
command = "hugo --gc --minify -b $DEPLOY_PRIME_URL"
|
||||
command = "hugo --gc --minify -b $URL"
|
||||
|
||||
[context.production.environment]
|
||||
HUGO_VERSION = "0.58.3"
|
||||
|
||||
BIN
static/apple-touch-icon-180x180.png
Normal file
BIN
static/apple-touch-icon-180x180.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.4 KiB |
BIN
static/favicon_128.png
Normal file
BIN
static/favicon_128.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 6.0 KiB |
BIN
static/favicon_16.png
Normal file
BIN
static/favicon_16.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 521 B |
BIN
static/favicon_32.png
Normal file
BIN
static/favicon_32.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.5 KiB |
Loading…
Reference in New Issue
Block a user