mirror of
https://github.com/jlelse/GoBlog
synced 2024-06-17 05:55:00 +00:00
28 lines
1.4 KiB
Plaintext
28 lines
1.4 KiB
Plaintext
{{ define "base" }}
|
|
<!doctype html>
|
|
<html lang="{{ .Blog.Lang }}">
|
|
<meta charset="utf-8">
|
|
<meta name=viewport content="width=device-width,initial-scale=1">
|
|
<link rel="stylesheet" href="{{ asset "css/styles.css" }}">
|
|
{{ with .Canonical }}<link rel="canonical" href="{{ . }}">{{ end }}
|
|
{{ block "title" . }}
|
|
<title>{{ .Blog.Title }}</title>
|
|
{{ end }}
|
|
<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" />
|
|
{{ with .User }}{{ range .Identities }}<link rel="me" href="{{ . }}" />{{ end }}{{ end }}
|
|
{{ $os := opensearch .Blog }}
|
|
{{ if $os }}
|
|
<link rel="search" type="application/opensearchdescription+xml" href="{{ $os }}" title="{{ .Blog.Title }}" />
|
|
{{ end }}
|
|
{{ include "header" . }}
|
|
{{ block "main" . }}{{ end }}
|
|
{{ include "footer" . }}
|
|
<script defer src="{{ asset "js/easteregg.js" }}"></script>
|
|
</html>
|
|
{{ end }} |