1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-19 15:25:31 -04:00

absolute URLs in CSS via hugo variable

This commit is contained in:
2020-04-01 17:59:40 -04:00
parent e35b7282fe
commit 72c8b3a99a
2 changed files with 3 additions and 2 deletions

View File

@@ -3,6 +3,7 @@
// all variables set by Hugo's config.toml must go here
// stylelint-disable
$max-width: {{ printf "%d%s" .Site.Params.pageMaxWidth "px" }};
$base-url: "{{ strings.TrimRight "/" .Site.BaseURL }}/"; // consistent trailing forward slash
// stylelint-enable
// Variables & Functions