* Using .Site.BaseURL as prefix for css and js

This commit is contained in:
shockrah 2022-03-20 16:27:08 -07:00
parent 1f3bc5e74d
commit 20873abef8
2 changed files with 2 additions and 2 deletions

View File

@ -1,2 +1,2 @@
<script src="/js/sidemenu.js" defer></script>
<script src="{{ .Site.BaseURL }}/js/sidemenu.js" defer></script>

View File

@ -1,7 +1,7 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="/css/style.css">
<link rel="stylesheet" type="text/css" href="{{ .Site.BaseURL }}/css/style.css">
<link rel="stylesheet" href="https://unpkg.com/purecss@1.0.0/build/pure-min.css" integrity="sha384-nn4HPE8lTHyVtfCBi5yW9d20FjT8BJwUXyWZT9InLYax14RDjBj46LmSztkmNP9w" crossorigin="anonymous">
<link rel="shortcut icon" type="image/png" href="/favicon.png"/>
{{ $title := print .Title }}