2016-09-01 16:37:27 +02:00
|
|
|
<!DOCTYPE html>
|
2019-12-04 08:56:41 +01:00
|
|
|
<html lang="{{ .Lang }}" {{ if or (eq .Lang "ar") (eq .Lang "fa") }}dir="rtl"{{ end }}>
|
2016-09-01 16:37:27 +02:00
|
|
|
|
2016-11-24 13:39:39 +01:00
|
|
|
<head>
|
2016-09-26 08:23:13 +02:00
|
|
|
{{ partial "head-meta.html" . }}
|
2016-09-01 16:37:27 +02:00
|
|
|
|
2017-01-20 14:56:33 +01:00
|
|
|
{{ block "schema-dot-org" . }}
|
|
|
|
<!-- schema.org metadata differs for Nodes and Pages -->
|
|
|
|
{{ end }}
|
|
|
|
|
2016-09-01 16:37:27 +02:00
|
|
|
<link rel="canonical" href="{{ .Permalink }}">
|
|
|
|
|
|
|
|
<title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title>
|
|
|
|
|
2019-12-04 08:56:41 +01:00
|
|
|
{{ if or (eq .Lang "ar") (eq .Lang "fa") }}
|
2020-01-23 18:46:05 +01:00
|
|
|
{{ "<!-- RTL -->" | safeHTML }}
|
2020-01-23 18:34:21 +01:00
|
|
|
{{ $styleRtl := resources.Get "css/style.rtl.css" | resources.Fingerprint }}
|
|
|
|
<link href="{{ $styleRtl.Permalink }}" rel="stylesheet"{{ if not .Site.Params.disable_sri }} integrity="{{ $styleRtl.Data.Integrity }}" crossorigin="anonymous"{{ end }}>
|
2019-04-18 21:19:42 +02:00
|
|
|
{{ else }}
|
2016-09-01 16:37:27 +02:00
|
|
|
{{ "<!-- combined, minified CSS -->" | safeHTML }}
|
2020-01-23 18:34:21 +01:00
|
|
|
{{ $style := resources.Get "css/style.css" | resources.Fingerprint }}
|
|
|
|
<link href="{{ $style.Permalink }}" rel="stylesheet"{{ if not .Site.Params.disable_sri }} integrity="{{ $style.Data.Integrity }}" crossorigin="anonymous"{{ end }}>
|
2019-04-18 21:19:42 +02:00
|
|
|
{{ end }}
|
2016-09-19 09:00:28 +02:00
|
|
|
|
2020-01-27 17:10:58 +01:00
|
|
|
{{ "<!-- minified Font Awesome for SVG icons -->" | safeHTML }}
|
|
|
|
{{ $fontawesome := resources.Get "js/fontawesome.min.js" | resources.Fingerprint }}
|
|
|
|
<script defer src="{{ $fontawesome.Permalink }}" integrity="{{ $fontawesome.Data.Integrity }}" crossorigin="anonymous"></script>
|
|
|
|
|
2016-11-09 14:42:39 +01:00
|
|
|
{{ "<!-- RSS 2.0 feed -->" | safeHTML }}
|
2019-04-14 15:25:35 +02:00
|
|
|
{{ with .OutputFormats.Get "rss" -}}
|
|
|
|
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
|
|
|
|
{{ end -}}
|
2016-10-15 04:10:01 +02:00
|
|
|
|
2020-05-17 21:32:12 +02:00
|
|
|
{{ if .Site.GoogleAnalytics }}
|
2016-11-13 13:13:17 +01:00
|
|
|
{{ partial "cookie-consent.html" . }}
|
|
|
|
{{ end }}
|
2016-11-22 20:11:50 +01:00
|
|
|
|
|
|
|
{{ partial "head-custom.html" . }}
|
2016-09-01 16:37:27 +02:00
|
|
|
</head>
|
|
|
|
|
2016-11-24 13:39:39 +01:00
|
|
|
<body>
|
2016-09-01 16:37:27 +02:00
|
|
|
|
2018-01-02 22:51:28 +01:00
|
|
|
{{ block "masthead" . }}
|
2016-11-24 13:39:39 +01:00
|
|
|
<div class="blog-masthead">
|
|
|
|
<div class="container">
|
|
|
|
<nav class="nav blog-nav">
|
|
|
|
<a class="nav-link {{ if .IsHome }}active{{ end }}" href="{{ .Site.BaseURL | absLangURL }}">{{ i18n "home" }}</a>
|
2018-03-09 19:29:11 +01:00
|
|
|
{{- $currentPage := . -}}
|
2016-11-17 11:04:14 +01:00
|
|
|
{{ range .Site.Menus.navbar }}
|
2017-04-04 11:03:07 +02:00
|
|
|
{{ $menuURL := .URL | absLangURL }}
|
2018-03-09 19:29:11 +01:00
|
|
|
<a class="nav-link{{ if or ($currentPage.IsMenuCurrent "navbar" .) ($currentPage.HasMenuCurrent "navbar" .) }} active{{end}}" href="{{ .URL }}" title="{{ .Title }}">{{ .Name }}</a>
|
2017-04-04 10:54:30 +02:00
|
|
|
{{ end }}
|
2016-11-24 13:39:39 +01:00
|
|
|
</nav>
|
|
|
|
</div>
|
2016-09-01 16:37:27 +02:00
|
|
|
</div>
|
2018-01-02 22:51:28 +01:00
|
|
|
{{ end }}
|
2016-09-01 16:37:27 +02:00
|
|
|
|
2018-01-02 22:51:28 +01:00
|
|
|
{{ block "header" . }}
|
2018-08-28 15:50:21 +02:00
|
|
|
{{ if (ne .Site.Params.header_visible false) }}
|
2016-11-24 13:39:39 +01:00
|
|
|
<header class="blog-header">
|
|
|
|
<div class="container">
|
2019-10-09 21:23:02 +02:00
|
|
|
<h1 class="blog-title" dir="auto"><a href="{{ .Site.BaseURL | absURL }}" rel="home">{{ .Site.Title | safeHTML }}</a></h1>
|
2019-04-18 22:38:53 +02:00
|
|
|
{{ if .Site.Params.description }}<p class="lead blog-description" dir="auto">{{ .Site.Params.description | markdownify }}</p>{{ end }}
|
2016-11-24 13:39:39 +01:00
|
|
|
</div>
|
|
|
|
</header>
|
2018-01-02 22:51:28 +01:00
|
|
|
{{ end }}
|
2018-08-25 17:11:15 +02:00
|
|
|
{{ end }}
|
2016-09-01 16:37:27 +02:00
|
|
|
|
2018-01-02 22:51:28 +01:00
|
|
|
{{ block "body" . }}
|
2016-11-24 13:39:39 +01:00
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-8 blog-main">
|
2016-09-01 16:37:27 +02:00
|
|
|
|
2016-11-24 13:39:39 +01:00
|
|
|
{{ block "main" . }}
|
|
|
|
<!-- The part of the page that begins to differ between templates -->
|
|
|
|
{{ end }}
|
2016-09-01 16:37:27 +02:00
|
|
|
|
2016-11-24 13:39:39 +01:00
|
|
|
</div> {{ "<!-- /.blog-main -->" | safeHTML }}
|
2016-09-01 16:37:27 +02:00
|
|
|
|
2016-11-24 13:39:39 +01:00
|
|
|
{{ partial "sidebar.html" . }}
|
2016-09-01 16:37:27 +02:00
|
|
|
|
2016-11-24 13:39:39 +01:00
|
|
|
</div> {{ "<!-- /.row -->" | safeHTML }}
|
|
|
|
</div> {{ "<!-- /.container -->" | safeHTML }}
|
2018-01-02 22:51:28 +01:00
|
|
|
{{ end }}
|
2016-09-01 16:37:27 +02:00
|
|
|
|
2018-01-02 22:51:28 +01:00
|
|
|
{{ block "footer" . }}
|
2016-11-24 13:39:39 +01:00
|
|
|
<footer class="blog-footer">
|
2019-04-18 22:38:53 +02:00
|
|
|
<p dir="auto">
|
2016-10-09 12:36:07 +02:00
|
|
|
{{ if .Site.Copyright }}
|
|
|
|
{{ .Site.Copyright | markdownify }}
|
|
|
|
{{ else }}
|
2016-10-09 12:38:49 +02:00
|
|
|
Blog template created by <a href="https://twitter.com/mdo">@mdo</a>, ported to Hugo by <a href='https://twitter.com/mralanorth'>@mralanorth</a>.
|
2016-10-09 12:36:07 +02:00
|
|
|
{{ end }}
|
2016-11-24 13:39:39 +01:00
|
|
|
</p>
|
|
|
|
<p>
|
2017-01-05 14:23:09 +01:00
|
|
|
<a href="#">{{ i18n "backToTop" }}</a>
|
2016-11-24 13:39:39 +01:00
|
|
|
</p>
|
|
|
|
</footer>
|
2018-01-02 22:51:28 +01:00
|
|
|
{{ end }}
|
2016-09-01 16:37:27 +02:00
|
|
|
|
2016-11-24 13:39:39 +01:00
|
|
|
</body>
|
2016-09-01 16:37:27 +02:00
|
|
|
|
|
|
|
</html>
|
2016-11-24 13:33:56 +01:00
|
|
|
|
|
|
|
{{- /* vim: set ts=2 sw=2 et: */}}
|