mirror of
https://github.com/yuzu-emu/shared-bulma-theme.git
synced 2024-12-23 04:15:37 +00:00
703e054972
... since CORS policy is not possible to set in GitHub Pages
118 lines
4.5 KiB
HTML
Executable file
118 lines
4.5 KiB
HTML
Executable file
<!DOCTYPE html>
|
|
<html lang="{{ .Site.Params.languageCode | default " en-us " }}" {{- if not .IsHome }}class="has-navbar-fixed-top" {{- end }}>
|
|
|
|
<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 .RelPermalink " / " }}{{ .Title }} · {{ end }}{{ .Site.Title }}" />
|
|
<meta property="og:site_name" content="{{ .Site.Title }}" />
|
|
<meta property="og:url" content="{{ .Permalink }}" />
|
|
{{ .Render "meta" }}
|
|
|
|
<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 .OutputFormats.Get "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 }}" /> {{ 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">
|
|
{{ $stylesheet := resources.Get "scss/style.scss" | toCSS | minify }}
|
|
<link rel="stylesheet" href="{{ $stylesheet.Permalink }}" />
|
|
{{- block "css" . }}{{- end }}
|
|
|
|
{{ if eq (getenv "HUGO_ENV") "PRD" }}
|
|
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
|
|
<script async src="https://www.googletagmanager.com/gtag/js?id={{ .Site.Params.GoogleAnalyticsTrackingId }}"></script>
|
|
|
|
<!-- 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 }}
|
|
</head>
|
|
|
|
<body>
|
|
{{- if not .IsHome }}
|
|
{{ partial "layout/navbar" . }}
|
|
{{- end }}
|
|
|
|
{{ .Render "header" }}
|
|
|
|
{{ block "header" . }}{{ end }}
|
|
|
|
{{ $full_width := .Params.FullWidth | default false }}
|
|
{{ $left_sidebar := .Params.left_sidebar | default false }}
|
|
{{- if .IsHome }}
|
|
<div class="container">
|
|
{{ block "main" . }}{{ end }}
|
|
</div>
|
|
{{ else if eq $full_width true }}
|
|
<div class="container">
|
|
{{ block "main" . }}{{ end }}
|
|
</div>
|
|
{{ else if eq $left_sidebar true }}
|
|
<div class="container">
|
|
<div class="columns is-centered">
|
|
<div class="column is-four-fifths">
|
|
{{ block "main" . }}{{ end }}
|
|
</div>
|
|
<div class="column">
|
|
{{ block "sidebar" . }}{{ end }}
|
|
{{ partial "layout/sidebar" }}
|
|
</div>
|
|
</div>
|
|
<div class="column">
|
|
{{ block "btm_bar" . }}{{ end }}
|
|
{{ partial "layout/btm_bar" }}
|
|
</div>
|
|
</div>
|
|
{{ else }}
|
|
<div class="container">
|
|
<div class="columns is-centered">
|
|
<div class="column is-four-fifths">
|
|
{{ block "main" . }}{{ end }}
|
|
</div>
|
|
<div class="column">
|
|
{{ block "sidebar" . }}{{ end }}
|
|
{{ partial "layout/sidebar" }}
|
|
</div>
|
|
</div>
|
|
<div class="column">
|
|
{{ block "btm_bar" . }}{{ end }}
|
|
{{ partial "layout/btm_bar" }}
|
|
</div>
|
|
</div>
|
|
{{ end }}
|
|
|
|
<div class="container">
|
|
<footer class="footer">
|
|
{{ partial "layout/footerContents" . }}
|
|
</footer>
|
|
</div>
|
|
|
|
{{ $mainJs := resources.Match "js/**.js" | resources.Concat "js/script.js" | minify }}
|
|
<script src="{{ $mainJs.Permalink }}"></script>
|
|
{{- block "scripts" . }}{{- end }}
|
|
|
|
{{- if eq (getenv "HUGO_ENV") "PRD" }}
|
|
<script type="text/javascript">
|
|
for (var i = 0; i < document.getElementsByClassName('adsbygoogle').length; i++) {
|
|
(adsbygoogle = window.adsbygoogle || []).push({});
|
|
}
|
|
</script>
|
|
{{- end }}
|
|
</body>
|
|
|
|
</html>
|