Skip to content

Commit

Permalink
fix: use site.baseurl for assets url
Browse files Browse the repository at this point in the history
  • Loading branch information
vividvilla committed Sep 19, 2019
1 parent 3154483 commit 411c986
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions layouts/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
{{- template "_internal/twitter_cards.html" . -}}
<link href="https://fonts.googleapis.com/css?family=Ubuntu:300,400,300italic,400italic|Raleway:500,100,300" rel="stylesheet">

<link rel="stylesheet" type="text/css" media="screen" href="/css/normalize.css" />
<link rel="stylesheet" type="text/css" media="screen" href="/css/main.css" />
<link rel="stylesheet" type="text/css" media="screen" href="{{ .Site.BaseURL }}css/normalize.css" />
<link rel="stylesheet" type="text/css" media="screen" href="{{ .Site.BaseURL }}css/main.css" />

{{- if and (isset .Site.Params "social") (isset .Site.Params "feathericonscdn") (eq .Site.Params.featherIconsCDN true) -}}
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
{{- else if (isset .Site.Params "social") -}}
<script src="/js/feather.min.js"></script>
<script src="{{ .Site.BaseURL }}js/feather.min.js"></script>
{{- end -}}
<script src="/js/main.js"></script>
<script src="{{ .Site.BaseURL }}js/main.js"></script>
</head>

0 comments on commit 411c986

Please sign in to comment.