|
|
|
@ -24,14 +24,14 @@
|
|
|
|
|
<link rel="manifest" href="/site.webmanifest">
|
|
|
|
|
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#996561">
|
|
|
|
|
|
|
|
|
|
{{ if (or (eq hugo.Environment "gitea") (eq hugo.Environment "preview") ) }}
|
|
|
|
|
{{ $sitemin := resources.Get "css/site.min.css" }}
|
|
|
|
|
<link rel="stylesheet" href="{{ $sitemin.RelPermalink }}" />
|
|
|
|
|
{{ $player := resources.Get "css/player.min.css" }}
|
|
|
|
|
<link rel="stylesheet" href="{{ $player.RelPermalink }}" />
|
|
|
|
|
{{ else }}
|
|
|
|
|
{{ if eq hugo.Environment "dev" }}
|
|
|
|
|
{{ $style := resources.Get "css/site.css" | postCSS (dict "config" "assets/css/postcss.config.js") | minify }}
|
|
|
|
|
<link rel="stylesheet" href="{{ $style.RelPermalink }}" />
|
|
|
|
|
{{ $style := resources.Get "css/player.css" | postCSS (dict "config" "assets/css/postcss.config.js") | minify }}
|
|
|
|
|
<link rel="stylesheet" href="{{ $style.RelPermalink }}" />
|
|
|
|
|
{{ else }}
|
|
|
|
|
{{ $sitemin := resources.Get "css/site.min.css" }}
|
|
|
|
|
<link rel="stylesheet" href="{{ $sitemin.RelPermalink }}" />
|
|
|
|
|
{{ $player := resources.Get "css/player.min.css" }}
|
|
|
|
|
<link rel="stylesheet" href="{{ $player.RelPermalink }}" />
|
|
|
|
|
{{ end }}
|
|
|
|
|