Very roughly implement a 3 column grid on the <main> element
This commit is contained in:
parent
0504ba54e3
commit
4a647e854f
5 changed files with 28 additions and 5 deletions
9
layouts/partials/resources/type_css.html
Normal file
9
layouts/partials/resources/type_css.html
Normal 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 }}
|
|
@ -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 }}">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue