GoBlog/templates/base.gohtml

25 lines
1.3 KiB
Plaintext
Raw Normal View History

2020-07-31 13:48:01 +00:00
{{ define "base" }}
2020-09-19 10:57:14 +00:00
<!doctype html>
2020-10-12 16:47:23 +00:00
<html lang={{ .Blog.Lang }}>
2020-09-19 10:57:14 +00:00
<meta charset=utf-8>
<meta name=viewport content="width=device-width,initial-scale=1">
<meta http-equiv=x-ua-compatible content="IE=edge">
<link rel="stylesheet" href="{{ asset "css/styles.css" }}">
2020-12-04 21:47:50 +00:00
{{ if user.Emoji }}
<link rel="icon" type="image/svg+xml" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>{{ user.Emoji }}</text></svg>">
{{ else if user.Picture }}
2020-12-22 19:29:25 +00:00
<link rel="icon" href="{{ user.Picture }}">
2020-12-04 21:47:50 +00:00
{{ end }}
2020-11-01 17:37:21 +00:00
{{ with .Canonical }}<link rel="canonical" href="{{ . }}">{{ end }}
2020-09-19 10:57:14 +00:00
{{ template "title" . }}
2020-11-15 16:26:46 +00:00
<link rel="alternate" type="application/rss+xml" title="RSS ({{ .Blog.Title }})" href="{{ .Blog.Path }}.rss"/>
<link rel="alternate" type="application/atom+xml" title="Atom ({{ .Blog.Title }})" href="{{ .Blog.Path }}.atom"/>
<link rel="alternate" type="application/feed+json" title="JSON Feed ({{ .Blog.Title }})" href="{{ .Blog.Path }}.json"/>
<link rel="webmention" href="/webmention" />
<link rel="micropub" href="/micropub" />
<link rel="authorization_endpoint" href="/indieauth" />
<link rel="token_endpoint" href="/indieauth/token" />
2020-11-01 17:37:21 +00:00
{{ include "header" . }}
2020-09-19 10:57:14 +00:00
{{ template "main" . }}
2020-11-01 17:37:21 +00:00
{{ include "footer" . }}
2020-07-31 13:48:01 +00:00
{{ end }}