fix the problem wrong url for secondary path location

This commit is contained in:
FarseaSH 2021-08-05 17:42:48 +08:00
parent af6cb2b23e
commit f49368aa50
3 changed files with 9 additions and 8 deletions

View file

@ -29,7 +29,7 @@
<meta name="theme-color" content="#ffffff">
<!-- the Moments style css file -->
<link rel="stylesheet" type="text/css" href="/css/style.css">
<link rel="stylesheet" type="text/css" href="{{.Site.BaseURL}}/css/style.css">
<!-- website title -->
<title>{{ .Site.Params.title }}</title>

View file

@ -13,7 +13,8 @@
{{ with .Params.avatar }}
<img src='{{ . }}' class="avatar">
{{ else }}
<img src='{{ .Site.Params.avatar}}' class="avatar">
<!-- fixme check whether the default avatar path is url or not-->
<img src='{{ $.Site.BaseURL }}/{{ .Site.Params.avatar }}' class="avatar">
{{ end }}
<div class="intro">
{{ with .Params.name }}