mirror of
https://github.com/nikdoof/dimension-sh-nikdoof-web.git
synced 2025-12-23 22:59:26 +00:00
Initial commit
This commit is contained in:
17
templates/_default/atom.xml
Normal file
17
templates/_default/atom.xml
Normal file
@@ -0,0 +1,17 @@
|
||||
{{ `<?xml version="1.0" encoding="utf-8"?>` | safeHTML }}
|
||||
<feed xmlns="http://www.w3.org/2005/Atom">
|
||||
<id>{{ index site.URLs 0 }}{{ .Permalink }}</id>
|
||||
<title>{{ .Title }}</title>
|
||||
<updated>{{ .Updated.Format "2006-01-02T15:04:05Z07:00" }}</updated>
|
||||
<link href="{{ index site.URLs 0 | safeURL }}{{ .Permalink }}" rel="alternate"/>
|
||||
{{ range .Entries }}<entry>
|
||||
<id>{{ index site.URLs 0 }}{{ .Permalink }}</id>
|
||||
<title>{{ .Title }}</title>
|
||||
<updated>{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}</updated>
|
||||
{{- $permalink := .Permalink }}
|
||||
{{- range site.URLs }}
|
||||
<link href="{{ . | safeURL }}{{ $permalink }}" rel="alternate"/>
|
||||
{{- end }}
|
||||
</entry>
|
||||
{{ end -}}
|
||||
</feed>
|
||||
6
templates/_default/index.gmi
Normal file
6
templates/_default/index.gmi
Normal file
@@ -0,0 +1,6 @@
|
||||
# {{ .Title }}
|
||||
{{ if .Content }}
|
||||
{{ .Content }}{{ end }}
|
||||
{{ range .Pages }}=> {{ .Permalink }} {{ if not .Date.IsZero -}}
|
||||
{{.Date.Format "2006-01-02"}} {{end}}{{.Title}}
|
||||
{{ end -}}
|
||||
5
templates/_default/page.gmi
Normal file
5
templates/_default/page.gmi
Normal file
@@ -0,0 +1,5 @@
|
||||
# {{ .Title }}
|
||||
{{- if not .Date.IsZero }}
|
||||
Posted on {{ .Date.Format "2006-01-02" }}{{ end }}
|
||||
|
||||
{{ .Content }}
|
||||
Reference in New Issue
Block a user