You've already forked no-js-hugo-theme
Move from static -> assets
This commit is contained in:
@ -4,16 +4,27 @@
|
||||
<html lang="{{ .Site.LanguageCode }}">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="Content-Security-Policy" content="default-src 'self' 'unsafe-inline' data: ;{{ if .Params.asciinema }}script-src 'self' 'unsafe-inline' 'unsafe-eval';{{ end }}">
|
||||
<link rel="alternate" type="application/rss+xml" href="/posts/index.xml">
|
||||
<!-- Diable favicon requests: https://stackoverflow.com/a/13416784 -->
|
||||
<link rel="icon" href="data:;base64,iVBORw0KGgo=">
|
||||
{{ if .Params.asciinema }}
|
||||
{{ with resources.Get "vendor/asciinema/asciinema-player.css" | resources.Minify | resources.Fingerprint }}
|
||||
<link rel="stylesheet" type="text/css" href="{{ .RelPermalink }}" />
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{- if isset .Site.Params "onionlocation" }}
|
||||
<meta http-equiv="onion-location" content="{{ urls.JoinPath .Site.Params.OnionLocation .RelPermalink }}">
|
||||
{{- end }}
|
||||
<title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title>
|
||||
<link rel="stylesheet" href="{{ "css/styles.css" | relURL }}">
|
||||
<link id="theme_css" rel="stylesheet" href="{{ "css/themes" | relURL }}/{{ .Site.Params.ThemeStyle | default $themeStyleDefault }}">
|
||||
{{- if .Site.Params.ThemeStyleSwitcher }}
|
||||
<script src="{{ "js/theme-switcher.js" | relURL }}"></script>
|
||||
{{- end }}
|
||||
{{- if .Site.Params.ThemeStyleSwitcher }}
|
||||
{{ with resources.Get "js/theme-switcher.js" | resources.Minify | resources.Fingerprint }}
|
||||
<script src="{{ .RelPermalink }}"></script>
|
||||
{{ end }}
|
||||
{{- end }}
|
||||
</head>
|
||||
<body>
|
||||
<input class="show-hide-menu-input" style="display:none;" autocomplete="off" type="checkbox" id="toggle-1">
|
||||
|
Reference in New Issue
Block a user