blob: 280135ef6b8366bc56ebe515c78328056ce057d0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
<!DOCTYPE html>
<HTML lang="en">
<HEAD>
<META charset="utf-8">
<TITLE>{{ block "title" . }}
{{ .Site.Title }}
{{ end }}</TITLE>
<link rel='stylesheet' type='text/css' href='/style.css'>
<meta name="viewport" content="width=device-width, initial-scale=1" />
{{- $image := resources.Get "/icons/apple-touch-icon.png"}}
<link rel="apple-touch-icon" sizes="180x180" href="{{ $image.Permalink }}">
{{- $image := resources.Get "/icons/favicon-32x32.png" }}
<link rel="icon" type="image/png" sizes="32x32" href="{{ $image.Permalink }}">
{{- $image := resources.Get "/icons/favicon-16x16.png" }}
<link rel="icon" type="image/png" sizes="16x16" href="{{ $image.Permalink }}">
<meta property="og:title" content="{{ .Page.Title }}" />
<meta property="og:type" content="website" />
<meta property="og:url" content="{{ .Page.Permalink }}" />
{{- $imageUrl := default "logo.png" .Params.image }}
{{- $image := resources.Get $imageUrl }}
<meta property="og:image" content="{{ $image.Permalink }}" />
<meta name="twitter:title" content="{{ .Page.Title }}">
<meta name="twitter:image" content="{{ $image.Permalink }}">
<meta name="twitter:card" content="summary_large_image">
<link rel="canonical" href="{{ .Site.BaseURL }}">
<link rel='alternate' type='application/rss+xml' title="{{ .Site.Title }} RSS" href='/index.xml'>
<meta name="robots" content="index, follow">
{{ if isset .Params "tags" }}<meta name="keywords" content="{{ with .Params.tags }}{{ delimit . ", " }}{{ end }}">{{end}}
</HEAD>
<BODY>
{{ block "header" . }}
<HEADER>
{{ $image := resources.Get "logo.png" }}
{{ $image := $image.Resize "x45" }}
<a href="/">
<img alt="logo" src="{{ $image.Permalink }}" width={{$image.Width}} height={{$image.Height}}/>
<div>
<h1>{{ .Site.Title }}</h1>
(because giphy sucks)
</div>
</a>
</HEADER>
{{ end }}
<MAIN>
{{ block "page-title" . }}
<h2> {{ .Page.Title }}</h2>
{{ end }}
{{ block "main" . }}
{{ end }}
</MAIN>
{{ block "FOOTER" . }}
<FOOTER>
<ASIDE>
<BR>
Terms and conditions
<OL>
<li> I don't care who you are so I won't track you.
<li> I have stolen all those memes so I have no rights to them.
<li> You will not kill my server.
</OL>
</ASIDE>
<div>
Created by <a href="https://sapka.me" target="_blank">Michal</a>.
<a href="https://github.com/michalsapka/meme.sapka.me" target="_blank">Source code is available</a>.
<BR>
<BR>
</div>
</FOOTER>
{{ end }}
</BODY>
</HTML>
|