summaryrefslogtreecommitdiff
path: root/layouts/_default/baseof.html
blob: 49f65dfdf260ed734a280bcd1207eab55057c01a (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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>
      {{- block "title" . }}
      [{{ .Site.Title}}] {{ .Page.Title }}
      {{- end }}
    </title>
    <link rel='stylesheet' type='text/css' href='/style.css?v=4.0'>
    <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 name="description" content="{{ .Params.Abstract | default .Site.Params.DefaultDescription}}">

    <meta property="og:title" content="{{ .Page.Title }}">
    <meta property="og:type" content="website">
    <meta property="og:url" content="{{ .Permalink }}">
    {{- $imageUrl := default "logos/right.png" .Params.image }}
    {{- $image := resources.Get $imageUrl }}
    <meta property="og:image" content="{{ $image.Permalink }}">
    <meta property="og:description" content="{{ .Params.Abstract | default .Site.Params.DefaultDescription}}">

    <meta name="twitter:title" content="{{ .Page.Title }}">
    <meta name="twitter:image" content="{{ $image.Permalink }}">
    <meta name="twitter:card" content="summary_large_image">
    <meta name="twitter:description" content="{{ .Params.Abstract | default .Site.Params.DefaultDescription}}" >

    <link rel="canonical" href="{{ .Permalink }}">
    <link rel='alternate' type='application/rss+xml' title="Feed with all changes" href='/index.xml'>
    <link rel='alternate' type='application/rss+xml' title="Feed with Emacs changes" href='/emacs/rss.xml'>
    <meta name="robots" content="index, follow">
    {{ if isset .Params "tags" }}<meta name="keywords" content="{{ with .Params.tags }}{{ delimit . ", " }}{{ end }}">{{end}}
    <link rel="me" href="https://emacs.ch/@mms">

    <link href="https://github.com/michalsapka" rel="me">
    <link rel="webmention" href="https://webmention.io/d-s.sh/webmention">
    <link rel="pingback" href="https://webmention.io/d-s.sh/xmlrpc">
  </head>
   
  {{ $section_class := "mms"}}
  {{ if in .Page.Params.categories "star-trek"  }}
    {{ $section_class = "star-trek" }}
  {{ else if in .Page.Params.category "site-info"  }}
    {{ $section_class = "site-info" }}
  {{ else if in .Page.Params.categories "site"  }}
    {{ $section_class = "site-info" }}
  {{ else if in .Page.Params.category "bsd"  }}
    {{ $section_class = "bsd" }}
  {{ else if in .Page.Params.categories "blog"  }}
    {{ $section_class = "blog" }}
  {{ else if in .Page.Params.categories "article"  }}
    {{ $section_class = "article" }}
  {{ else if in .Page.Params.categories "emacs"  }}
    {{ $section_class = "emacs" }}
  {{ end }}
  <body class="{{ $section_class }}">
    <header>
      <div class="logo">
  {{ if in .Page.Params.category "bsd" }}
        {{ $logo := resources.Get "logos/logo-beastie-white.svg"}}
        <img src="{{$logo.RelPermalink}}" class="beastie">
  {{ else if in .Page.Params.categories "star-trek" }}
        {{ $logo := resources.Get "logos/logo-startrek-white.svg" }}
        <img src="{{$logo.RelPermalink}}" class="stbadge">
  {{ else if in .Page.Params.categories "blog" }}
        {{ $logo := resources.Get "logos/logo-blog-white.svg" }}
        <img src="{{$logo.RelPermalink}}" class="blogicon">
  {{ else if in .Page.Params.categories "article" }}
        {{ $logo := resources.Get "logos/logo-article-white.svg" }}
        <img src="{{$logo.RelPermalink}}" class="files">
  {{ else if in .Page.Params.Categories "emacs" }}
        {{ $logo := resources.Get "logos/logo-emacs-white.svg" }}
        <img src="{{$logo.RelPermalink}}" class="emacslogo">
  {{ end }}
      </div>

      <div class="name">
        <nav>
          <h1>{{ .Page.Title }}</h1>
      {{ partial "back_nav" . }}
        </nav>
      </div>
    </header>


      <main class="right-column">


        {{ block "main" . }}
        {{ end }}
        
        {{ block "pagination" . }}
        {{ end }} 

      {{ partial "back_nav" . }}
      <br><br>

      </main>
   

      
    <footer>
      <nav id="top-nav">
        <nav id="main-nav">
          <a href="/">Home</a> |
          <a href="/about">About</a> |
          <a href="/links">Links</a> |
          <a href="/index.xml">RSS</a>
        </nav>
	<nav id="categories-nav">
	  <a href="/articles/">Articles</a> |
	  <a href="/blog/">Blog</a> |
	  <a href="/bsd/">BSD</a> |
	  <a href="/emacs/">Emacs</a> |
	  <a href="/funnies/">Funnies</a> |
	  <a href="/site/">Site info</a> |
	  <a href="/star-trek/">Star Trek </a> |
	  <a href="/vcs/git">VCS</a>
	</nav>
        <br>
        <nav>
          Powered by
          <a href="https://www.openbsd.org/">OpenBSD</a>,
          <a href="https://gohugo.io/">Hugo</a>, and
          <a href="https://www.gnu.org/software/emacs/">Emacs</a>.
          Consider <a href="https://notochrome.org/">not using Chrome</a>.
          
          </nav>

        </nav>
      </nav>
    </footer>
  </body>
</html>