Skip to content

Commit

Permalink
调整模板
Browse files Browse the repository at this point in the history
  • Loading branch information
fenghui2.xu committed Jul 17, 2024
1 parent 2c7551a commit b67a65e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions themes/hyde/layouts/partials/sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,19 @@
<h1>{{ .Site.Title }}</h1>
</a>
<p class="lead">
{{ with .Site.Params.description }} {{.}} {{ else }}An elegant open source and mobile first theme for <a
href="http://hugo.spf13.com">hugo</a> made by <a href="http://twitter.com/mdo">@mdo</a>. Originally made for
Jekyll.{{end}}
{{ .Site.Params.description }}
</p>
</div>

<nav>
<ul class="sidebar-nav">
<li><a href="{{ .Site.BaseURL }}">首页</a> </li>
{{ range .Site.Menus.main -}}
<li><a href="{{.URL}}"> {{ .Name }} </a></li>
<li><a href="{{.URL}}" target="_blank"> {{ .Name }} </a></li>
{{- end }}
</ul>
</nav>

<p>{{ with .Site.Params.copyright }}{{.}}{{ else }}&copy; {{ now.Format "2006"}}. All rights reserved. {{end}}</p>
<p>{{ with .Site.Params.copyright }}{{.}}{{ else }}&copy; {{ now.Format "2024"}}. All rights reserved. {{end}}</p>
</div>
</aside>

0 comments on commit b67a65e

Please sign in to comment.