Sfoglia il codice sorgente

Add CSS file from generated file

Replaces hardcoded path

Signed-off-by: budparr <budparr@gmail.com>
hashassets
budparr 6 anni fa
parent
commit
9e8b8822a5
Nessun account collegato all'indirizzo email del committer
1 ha cambiato i file con 4 aggiunte e 5 eliminazioni
  1. 4
    5
      layouts/_default/baseof.html

+ 4
- 5
layouts/_default/baseof.html Vedi File

@@ -17,13 +17,12 @@
<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
{{ end }}

{{ $css_path := $.Param "dev.css_path" | default "themes/gohugo-theme-ananke/static/dist/css" }}
{{ with $css_path }}
{{ range readDir . }}
<link href='/dist/css/{{ .Name }}' rel='stylesheet' type="text/css" data-turbolinks-track="reload" />
{{ end }}
{{ $stylesheet := .Site.Data.webpack_assets.app }}
{{ with $stylesheet.css }}
<link href="{{ printf "%s%s" "/dist/" . }}" rel="stylesheet">
{{ end }}


{{ block "favicon" . }}
{{ partial "site-favicon.html" . }}
{{ end }}

Loading…
Annulla
Salva