blog

Source for my blog
git clone git://git.konyahin.xyz/blog
Log | Files | Refs

baseof.html (1632B)


      1 <!DOCTYPE html>
      2 <html lang="{{ .Site.Language }}">
      3 <head>
      4 	<title>{{ if not .IsHome }}{{ .Title | title }} | {{ end }}{{ .Site.Title }}</title>
      5 	<link rel="canonical" href="{{ .Site.BaseURL }}">
      6 	<link rel='alternate' type='application/rss+xml' title="{{ .Site.Title }} RSS" href='/index.xml'>
      7 	<link rel='stylesheet' type='text/css' href='/style.css'>
      8 	{{ with .Site.Params.favicon }}<link rel="icon" href="{{ . }}">
      9 	{{ end -}}
     10 	<meta name="description" content="{{ with .Params.description }}{{ . }}{{ else }}{{ .Summary }}{{ end }}">
     11 	{{ if isset .Params "tags" }}<meta name="keywords" content="{{ with .Params.tags }}{{ delimit . ", " }}{{ end }}">
     12 	{{ end -}}
     13 	<meta name="viewport" content="width=device-width, initial-scale=1">
     14 	<meta name="robots" content="index, follow">
     15 	<meta charset="utf-8">
     16 </head>
     17 <body>
     18 {{ if .Site.Menus.main }}{{ partial "nav.html" . }}{{ end -}}
     19 <main>
     20 <header><h1 id="tag_{{ .Title }}">{{ block "title" . }}{{ end }}</h1></header>
     21 <article>
     22 {{ block "main" . }}
     23 {{ .Content }}
     24 {{ end }}
     25 {{ if .Param "nextprev" }}{{ partial "nextprev.html" . -}}{{ end -}}
     26 {{ if .Param "taglist" }}{{ partial "taglist.html" . }}{{ end -}}
     27 </article>
     28 </main>
     29 {{ block "footer" . }}
     30 <footer>
     31         {{ if not .IsHome }}
     32             <a href="/">на главную</a> <br/>
     33             пишите свои комментарии на <a href="mailto:me@konyahin.xyz">me@konyahin.xyz</a>
     34         {{ end }}
     35 	{{- if .Param "showrss" }}<br><br><a href="/index.xml"><img src="/rss.svg" style="max-height:1.5em" alt="RSS Feed" title="Subscribe via RSS for updates."></a>{{ end }}
     36 </footer>
     37 {{ end }}
     38 </body>
     39 </html>