mirror of
https://github.com/Brandon-Rozek/website-theme.git
synced 2025-10-09 10:11:14 +00:00
Merge remote-tracking branch 'upstream/master'
This commit is contained in:
commit
4f7e08f5ac
23 changed files with 617 additions and 20 deletions
|
@ -22,8 +22,14 @@
|
|||
{{ $markdown := resources.Get "css/markdown.css" }}
|
||||
{{ $fontawesome := resources.Get "css/fontawesome.css" }}
|
||||
{{ $syntaxHighlight := resources.Get "css/syntax-highlight.css" }}
|
||||
{{ $css := slice $style $markdown $fontawesome $syntaxHighlight | resources.Concat "style.css" | resources.Minify | resources.Fingerprint }}
|
||||
<link rel="stylesheet" href="{{ $css.Permalink }}">
|
||||
{{ $css := slice $style $markdown $syntaxHighlight | resources.Concat "style.css" | resources.Minify | resources.Fingerprint }}
|
||||
<link rel="stylesheet" href="{{ $css.Permalink }}" integrity="{{ $css.Data.Integrity }}">
|
||||
{{ $styleDark := resources.Get "css/style-dark.css" }}
|
||||
{{ $markdownDark := resources.Get "css/markdown-dark.css" }}
|
||||
{{ $cssDark := slice $styleDark $markdownDark | resources.Concat "style-dark.css" | resources.Minify | resources.Fingerprint }}
|
||||
<link rel="stylesheet" href="{{ $cssDark.Permalink }}" media="(prefers-color-scheme: dark)" integrity="{{ $cssDark.Data.Integrity }}">
|
||||
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous">
|
||||
|
||||
<!-- custom css -->
|
||||
{{ range .Site.Params.custom_css }}
|
||||
<link rel="stylesheet" href="{{ . }}">
|
||||
|
@ -33,7 +39,8 @@
|
|||
{{- template "_internal/opengraph.html" . -}}
|
||||
{{- template "_internal/google_news.html" . -}}
|
||||
{{- template "_internal/schema.html" . -}}
|
||||
{{- template "_internal/twitter_cards.html" . -}}
|
||||
<!-- {{- template "_internal/twitter_cards.html" . -}} -->
|
||||
{{- partial "twitter_cards.html" . -}}
|
||||
|
||||
<!-- Polyfill for old browsers -->
|
||||
{{ `<!--[if lte IE 9]>
|
||||
|
@ -45,4 +52,8 @@
|
|||
<script src="https://cdn.jsdelivr.net/npm/respond.js@1.4.2/dest/respond.min.js"></script>
|
||||
<![endif]-->` | safeHTML }}
|
||||
|
||||
<!-- Analytics -->
|
||||
{{- if and (not .Site.IsServer) .Site.GoogleAnalytics -}}
|
||||
{{ template "_internal/google_analytics_async.html" . }}
|
||||
{{- end -}}
|
||||
</head>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue