hugo-theme-hello-amigo/layouts/partials/logo.html

12 lines
552 B
HTML
Raw Permalink Normal View History

2019-07-25 21:19:26 +00:00
<a href="{{ if .Site.Params.Logo.LogoHomeLink }}{{ .Site.Params.Logo.LogoHomeLink }}{{else}}{{ .Site.BaseURL }}{{ end }}"
style="text-decoration: none;">
2019-07-25 21:13:27 +00:00
<div class="logo">
{{ if .Site.Params.Logo.path }}
2019-07-25 21:19:26 +00:00
<img src="{{ .Site.Params.Logo.path }}" alt="{{ .Site.Params.Logo.alt }}" />
2019-07-25 21:13:27 +00:00
{{ else }}
2019-07-25 21:19:26 +00:00
<span class="logo__mark">$</span>
<span class="logo__text">{{ with .Site.Params.Logo.logoText }}{{ . }}{{ else }}hello{{ end }}</span>
<span class="logo__cursor"></span>
2019-07-25 21:13:27 +00:00
{{ end }}
</div>
2019-07-25 21:19:26 +00:00
</a>