summaryrefslogtreecommitdiff
path: root/layouts/_default/baseof.html
blob: 9addbf05061430ca99269d7f862582d89b57784a (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
<!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="{{ .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}}


    <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>
  <body>
    
    <header>
      <a href="/">
        <h1>{{ .Site.Title }}</h1>
      </a>
     
      <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="/category/engineering">Engineering</a>
          <a href="/category/emacs">Emacs</a>
          <a href="/category/bsd">BSD</a>
          <a href="/category/computer-history">Computer History</a>
          <a href="/star-trek">Star Trek</a>
        </nav>
      </nav>


    </header>
      <main class="right-column">

      {{ partial "back_nav" . }}

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

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

      </main>
   

  </body>
</html>