mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2024-11-27 04:03:48 +01:00
Merge branch 'master' of https://github.com/CaiJimmy/hugo-theme-stack into master
This commit is contained in:
commit
62e8246357
1 changed files with 12 additions and 8 deletions
|
@ -6,13 +6,15 @@
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<header class="site-info">
|
<header class="site-info">
|
||||||
<figure class="site-avatar">
|
{{ if .Site.Params.avatar }}
|
||||||
{{ $avatar := resources.Get (.Site.Params.avatar) }}
|
<figure class="site-avatar">
|
||||||
{{ $avatarResized := $avatar.Resize "300x300" }}
|
{{ $avatar := resources.Get (.Site.Params.avatar) }}
|
||||||
<img src="{{ $avatarResized.RelPermalink }}" width="{{ $avatarResized.Width }}"
|
{{ $avatarResized := $avatar.Resize "300x300" }}
|
||||||
height="{{ $avatarResized.Height }}" class="site-logo" loading="lazy" alt="Avatar">
|
<img src="{{ $avatarResized.RelPermalink }}" width="{{ $avatarResized.Width }}"
|
||||||
<span class="emoji">{{ .Site.Params.emoji }}</span>
|
height="{{ $avatarResized.Height }}" class="site-logo" loading="lazy" alt="Avatar">
|
||||||
</figure>
|
<span class="emoji">{{ .Site.Params.emoji }}</span>
|
||||||
|
</figure>
|
||||||
|
{{ end }}
|
||||||
<h1 class="site-name"><a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a></h1>
|
<h1 class="site-name"><a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a></h1>
|
||||||
<h2 class="site-description">{{ .Site.Params.subtitle }}</h2>
|
<h2 class="site-description">{{ .Site.Params.subtitle }}</h2>
|
||||||
</header>
|
</header>
|
||||||
|
@ -24,7 +26,9 @@
|
||||||
|
|
||||||
<li {{ if $active }} class='current' {{ end }}>
|
<li {{ if $active }} class='current' {{ end }}>
|
||||||
<a href='{{ .URL }}'>
|
<a href='{{ .URL }}'>
|
||||||
{{ (resources.Get (delimit (slice "icons/" .Pre ".svg") "")).Content | safeHTML }}
|
{{ if .Pre }}
|
||||||
|
{{ (resources.Get (delimit (slice "icons/" .Pre ".svg") "")).Content | safeHTML }}
|
||||||
|
{{ end }}
|
||||||
<span>{{- .Name -}}</span>
|
<span>{{- .Name -}}</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
Loading…
Reference in a new issue