Very roughly implement a 3 column grid on the <main> element

This commit is contained in:
Eryn Wells 2023-04-02 10:05:29 -07:00
parent 0504ba54e3
commit 4a647e854f
5 changed files with 28 additions and 5 deletions

View file

@ -0,0 +1,9 @@
{{ $typeCSS := dict }}
{{ $stylesheet := "" }}
{{ if not .IsHome }}
{{ $stylesheet = printf "styles/%s.css" .Kind }}
{{ with resources.Get $stylesheet }}
{{ $typeCSS = . | fingerprint "md5" }}
{{ end }}
{{ end }}
{{ return $typeCSS }}

View file

@ -1,3 +1,6 @@
{{ with resources.Get "styles/page.css" | fingerprint "md5" }}
<link rel="stylesheet" href="{{ .RelPermalink }}">
{{ end }}
{{- range .Resources.Match "*.css" -}}
{{- $stylesheet := . | fingerprint "md5" }}
<link rel="stylesheet" href="{{ $stylesheet.RelPermalink }}">