mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-12-03 04:18:57 -05:00
add a partial template that returns an asset's URL and hash from webpack's manifest
still a mess but slightly more modular. also added a real 404 page.
This commit is contained in:
@@ -1,10 +1,8 @@
|
||||
{{/* Pull in CSS processed by Webpack */}}
|
||||
|
||||
{{- define "__head_css" -}}
|
||||
{{ with .Site.Data.manifest }}
|
||||
{{ with index . "main.css" }}
|
||||
<link rel="stylesheet" href="{{ .src | absURL }}">
|
||||
{{ end }}
|
||||
{{ with partial "functions/webpack" (dict "context" . "src" "main.css") }}
|
||||
<link rel="stylesheet" href="{{ .src }}">
|
||||
{{ end }}
|
||||
|
||||
{{/* Page-specific styles set via front matter, piped through PostCSS and inlined */}}
|
||||
|
||||
Reference in New Issue
Block a user