blog/layouts/partials/labs-header-content.html

96 lines
4.7 KiB
HTML
Raw Normal View History

<!DOCTYPE html>
<html lang="{{.Site.LanguageCode}}">
<head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# article: http://ogp.me/ns/article#">
<!-- Basic Page Needs
-->
<meta charset="UTF-8">
<title>
{{ $isHomePage := eq .Title .Site.Title }}{{ .Title }}{{ if eq $isHomePage false }} | {{ .Site.Title }}{{ end }}
</title>
<!-- Mobile Specific Metas
-->
<meta name="viewport" content="width=device-width,user-scalable=no,maximum-scale=1,initial-scale=1">
<!-- HTTPS Canonical URL
-->
<link rel="canonical" href="{{ .Permalink }}"/>
<!-- CSS
-->
<link rel="stylesheet" href="/css/sanitize.css">
<link rel="stylesheet" href="/css/responsive.css">
<link rel="stylesheet" href="/css/theme.css">
<link rel="stylesheet" href="/css/custom.css">
{{ if .Params.leaflet }}
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.4.0/dist/leaflet.css" integrity="sha512-puBpdR0798OZvTTbP4A8Ix/l+A4dHDD0DGqYW6RQ+9jxkRFclaxxQb/SJAWZfWAkuyeQUytO7+7N4QKrDh+drA=="crossorigin=""/>
<style type="text/css">
<!--
#mapid { height: 600px; }
-->
</style>
{{ end }}
2021-02-28 04:55:34 +00:00
{{ if .Params.chart }}
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.3/Chart.min.css" />
{{ end }}
<!-- RSS
-->
<link href="{{ .Site.BaseURL }}index.xml" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
<link href="{{ .Site.BaseURL }}index.xml" rel="feed" type="application/rss+xml" title="{{ .Site.Title }}" />
<!-- Javascript
-->
<script type="text/javascript">var switchTo5x=true;</script>
<script type="text/javascript">stLight.options({publisher: "2b9fffc6-b3fe-4988-a0ef-4f9dcce98eaa", doNotHash: true, doNotCopy: true, hashAddressBar: false});</script>
{{ if .Params.leaflet }}
<!-- Make sure you put this AFTER Leaflet's CSS -->
<script src="https://unpkg.com/leaflet@1.4.0/dist/leaflet.js" integrity="sha512-QVftwZFqvtRNi0ZyCtsznlKSWOStnDORoefr1enyq5mVL4tmKB3S/EnC3rRJcxCPavG10IcrVGSmPh6Qw5lwrg==" crossorigin=""></script>
2019-04-13 16:00:44 +00:00
<script src="https://cdnjs.cloudflare.com/ajax/libs/topojson/3.0.0/topojson.min.js"></script>
{{ end }}
{{ if .Params.chart }}
<script type="text/javascript" src="https://npmcdn.com/chart.js@latest/dist/Chart.bundle.min.js"></script>
<script type="text/javascript" src="https://y-takey.github.io/chartjs-plugin-stacked100/plugin.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/chartjs-plugin-colorschemes"></script>
{{ end }}
<!-- OGP Settings -->
<meta property="fb:app_id" content="951084758293113" />
2021-02-28 04:55:34 +00:00
{{partial "opengraph.html" . }}
{{partial "twitter_cards.html" . }}
</head>
<body>
<div class="container">
<!-- Header Section Layout
-->
<header role="banner">
<div class="row gutters">
<div id="site-title" class="col span_6">
<h1><a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a></h1>
{{ with .Site.Params.subtitle }}<h2>{{ . }}</h2>{{ end }}
</div>
<div id="social" class="col span_6">
<ul>
{{ partial "sections-definition.html" }}
{{ with .Site.Params.twitter }}<li><a href="{{ . }}" target="_blank">Twitter</a></li>{{ end }}
{{ with .Site.Params.facebook }}<li><a href="{{ . }}" target="_blank">Facebook</a></li>{{ end }}
{{ with .Site.Params.github }}<li><a href="{{ . }}" target="_blank">GitHub</a></li>{{ end }}
{{ if .Site.Params.showsRSS }}<li><a href="{{ .Site.BaseURL }}index.xml" type="application/rss+xml" target="_blank">RSS</a></li>{{ end }}
</ul>
</div>
</div>
</header>