Ver código fonte

Add CSS file from generated file

Replaces hardcoded path

Signed-off-by: budparr <budparr@gmail.com>
hashassets
budparr 6 anos atrás
pai
commit
9e8b8822a5
Nenhuma conta vinculada ao e-mail do autor do commit
1 arquivos alterados com 4 adições e 5 exclusões
  1. 4
    5
      layouts/_default/baseof.html

+ 4
- 5
layouts/_default/baseof.html Ver arquivo

@@ -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 }}

Carregando…
Cancelar
Salvar