Skip to content

Commit

Permalink
update footer and header
Browse files Browse the repository at this point in the history
  • Loading branch information
zzsqwq committed Apr 26, 2022
1 parent 2b5b9f2 commit 45f7acc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions layouts/partials/footer.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
<div class="footer_wrap">
{{with .Site.Params.since}}
<div class="copyright">
©
{{ if (and $.Site.Params.since (lt $.Site.Params.since now.Year)) }}
{{ $.Site.Params.since }} -
{{ end }}
{{ now.Year }}
by {{ $.Site.Params.author }}
</div>
{{end}}
<div class="theme-info">
Expand Down
5 changes: 3 additions & 2 deletions layouts/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@
{{range sort .Site.Params.menu "weight" }}
<li class="menus_item">
{{if in .url "#"}}
<a class="site-page" href="{{lower .url | safeURL}}">{{ title .name}}</a>
{{ $new_url := replace .url " " "-"}}
<a class="site-page" href="{{lower $new_url | safeURL}}">{{ title .name}}</a>
{{else}}
<a class="site-page" href="{{.url | safeURL}}">{{ title .name}}</a>
<a class="site-page" href="{{lower .url | safeURL}}">{{ title .name}}</a>
{{end}}
</li>
{{end}}
Expand Down

0 comments on commit 45f7acc

Please sign in to comment.