This repository has been archived on 2024-07-07. You can view files and clone it, but cannot push or open issues or pull requests.
bird.tacowolf.net/themes/avian/layouts/partials/css.html

8 lines
389 B
HTML
Raw Permalink Normal View History

2023-06-20 20:49:21 -04:00
{{- $styles := resources.Get "css/styles.css" | postCSS (dict "config" "./assets/css/postcss.config.js") -}}
{{- if .Site.IsServer }}
{{ $styles = $styles | resources.ExecuteAsTemplate (printf "css/styles.dev.%v.css" now.UnixMilli) .}}
{{ else }}
{{- $styles := $styles| minify | fingerprint | resources.PostProcess -}}
{{ end -}}
<link rel="stylesheet" href="{{ $styles.RelPermalink }}">