shared-bulma-theme/layouts/_default/baseof.html

98 lines
3.7 KiB
HTML
Raw Normal View History

2018-01-04 20:15:06 +00:00
<!DOCTYPE html>
2018-01-13 17:57:20 +00:00
<html lang="{{ .Site.Params.languageCode | default " en-us " }}" {{- if not .IsHome }}class="has-navbar-fixed-top" {{- end }}>
2018-01-04 20:15:06 +00:00
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">
<meta name="theme-color" content="#404040">
<meta property="og:title" content="{{ if ne .URL " / " }}{{ .Title }} &middot; {{ end }}{{ .Site.Title }}" />
<meta property="og:site_name" content="{{ .Site.Title }}" />
<meta property="og:url" content="{{ .Permalink }}" />
{{ if .IsHome }}
<meta property="og:description" content="{{ .Summary }}" />
<meta name="description" content="{{ .Summary }}" />
<meta property="og:type" content="website" />
<meta property="og:image" content="{{ .Site.BaseURL }}/images/logo.png" />
{{ else if .IsPage }}
{{ .Render "meta" }}
{{ end }}
<link rel="icon" href="{{ .Site.BaseURL }}/favicon.ico" />
<link rel="shortcut icon" href="{{ .Site.BaseURL }}/favicon.ico" type="image/x-icon" />
<link rel="canonical" href="{{ .Permalink }}"> {{ if .RSSLink }}
<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 }}" /> {{ end }}
<title>{{- if not .IsHome }}{{ .Title }} - {{ .Site.Title }}{{- else }}{{ .Site.Title }} - {{ .Site.Params.Tagline }}{{- end}}</title>
<link href="https://fonts.googleapis.com/css?family=Ubuntu|Dosis" rel="stylesheet">
<link href="https://use.fontawesome.com/releases/v5.0.2/css/all.css" rel="stylesheet">
2018-01-13 18:16:41 +00:00
<link rel="stylesheet" href="{{ .Site.BaseURL }}/css/style.css" />
{{ if eq (getenv "HUGO_ENV") "PRD" }}
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
2018-01-13 18:39:29 +00:00
<script async src="https://www.googletagmanager.com/gtag/js?id={{ .Site.Params.GoogleAnalyticsTrackingId }}"></script>
2018-01-13 18:16:41 +00:00
<!-- Google Analytics -->
<script type="text/javascript">
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', '{{ .Site.Params.GoogleAnalyticsTrackingId }}');
</script>
<!-- End Google Analytics -->
{{ else }}
<meta name="robots" content="noindex,nofollow" />
{{ end }}
2018-01-04 20:15:06 +00:00
</head>
<body>
{{- if not .IsHome }}
{{ partial "layout/navbar" . }}
{{- end }}
{{ .Render "header" }}
{{ block "header" . }}{{ end }}
{{ $full_width := .Params.FullWidth | default false }}
2018-04-14 23:34:02 +00:00
{{- if eq .IsPage false }}
<div class="container">
{{ block "main" . }}{{ end }}
</div>
{{ else if eq $full_width true }}
<div class="container">
{{ block "main" . }}{{ end }}
</div>
{{ else }}
<div class="container">
<div class="columns">
<div class="column is-two-thirds">
{{ block "main" . }}{{ end }}
</div>
<div class="column">
{{ partial "layout/sidebar" }}
</div>
</div>
</div>
{{ end }}
<div class="container">
<footer class="footer">
{{ partial "layout/footerContents" . }}
</footer>
</div>
<script src="{{ .Site.BaseURL }}/js/script.js"></script>
{{- block "scripts" . }}{{- end }}
2018-01-13 18:16:41 +00:00
{{- if eq (getenv "HUGO_ENV") "PRD" }}
<script type="text/javascript">
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
2018-01-13 17:57:20 +00:00
{{- end }}
2018-01-04 20:15:06 +00:00
</body>
</html>