add BaseURL for js and css

This commit is contained in:
cfchou 2017-06-29 01:27:28 +08:00
parent cea8520237
commit 1beda3cea8
2 changed files with 2 additions and 2 deletions

View File

@ -1,2 +1,2 @@
<script src="js/theme.min.js" type="text/javascript"></script>
<script src="{{ .Site.BaseURL }}/js/theme.min.js" type="text/javascript"></script>
{{ template "_internal/google_analytics.html" . }}

View File

@ -11,4 +11,4 @@
{{ .Hugo.Generator }}
{{ partial "highlightjs.html" }}
<link href="https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700" rel="stylesheet" type="text/css">
<link href="{{ .Site.BaseURL }}css/theme.min.css" rel="stylesheet" type="text/css">
<link href="{{ .Site.BaseURL }}/css/theme.min.css" rel="stylesheet" type="text/css">