worknig on redoing CSS/etc, just saving this to work on another PC
This commit is contained in:
parent
99836fcab9
commit
3994295dae
@ -1,23 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# based on https://discourse.gohugo.io/t/using-dart-sass-hugo-and-netlify/37099/7
|
|
||||||
# and this blog post by Bryce Wry https://www.brycewray.com/posts/2022/03/using-dart-sass-hugo-sequel/
|
|
||||||
|
|
||||||
echo "Install Dart Sass Embedded..."
|
|
||||||
|
|
||||||
# This should be in the PATH.
|
|
||||||
BIN_DIR=/bin
|
|
||||||
|
|
||||||
DARTSASS_VERSION=1.49.9
|
|
||||||
|
|
||||||
mkdir -p $BIN_DIR
|
|
||||||
|
|
||||||
curl -LJO https://github.com/sass/dart-sass-embedded/releases/download/${DARTSASS_VERSION}/sass_embedded-${DARTSASS_VERSION}-linux-x64.tar.gz;
|
|
||||||
|
|
||||||
tar -xvf sass_embedded-${DARTSASS_VERSION}-linux-x64.tar.gz;
|
|
||||||
|
|
||||||
mv sass_embedded/dart-sass-embedded $BIN_DIR
|
|
||||||
|
|
||||||
rm -rf sass_embedded*;
|
|
||||||
|
|
||||||
dart-sass-embedded --version
|
|
||||||
@ -10,10 +10,7 @@
|
|||||||
<meta name="description" content="{{ . }}">{{ end }}
|
<meta name="description" content="{{ . }}">{{ end }}
|
||||||
{{ with .Site.Params.author }}
|
{{ with .Site.Params.author }}
|
||||||
<meta name="author" content="{{ . }}">{{ end }}
|
<meta name="author" content="{{ . }}">{{ end }}
|
||||||
{{ $sass := resources.Get "style.scss" }}
|
<link rel="stylesheet" href="assets/style.css">
|
||||||
{{ $options := (dict "targetPath" "style.css" "outputStyle" "compressed" "includePaths" (slice "assets/") "transpiler" "dartsass") }}
|
|
||||||
{{ $style := $sass | resources.ToCSS $options }}
|
|
||||||
<link rel="stylesheet" href="{{ $style.Permalink }}" integrity="{{ $style.Data.Integrity }}">
|
|
||||||
{{ with .OutputFormats.Get "RSS" -}}
|
{{ with .OutputFormats.Get "RSS" -}}
|
||||||
{{ printf `
|
{{ printf `
|
||||||
<link rel="%s" type="%s" href="%s" title="%s">` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML }}
|
<link rel="%s" type="%s" href="%s" title="%s">` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML }}
|
||||||
|
|||||||
@ -14,7 +14,7 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ with .Site.DisqusShortname }}
|
{{ with .Site.Config.Services.Disqus.Shortname }}
|
||||||
<div>
|
<div>
|
||||||
{{ template "_internal/disqus.html" . }}
|
{{ template "_internal/disqus.html" . }}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user