Skip to content

Commit

Permalink
Link logo and title to home page (#129)
Browse files Browse the repository at this point in the history
Link logo and title to home page
  • Loading branch information
laozhu authored May 28, 2019
2 parents 9221101 + 4ef633e commit 6d6934b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions layouts/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
{{- $avatar := resources.Get (.Site.Params.avatar | default "images/avatar.png") -}}

<header class="site-header">
<img class="avatar" src="{{ $avatar.RelPermalink }}" alt="Avatar">
<a href="{{ .Site.BaseURL }}"><img class="avatar" src="{{ $avatar.RelPermalink }}" alt="Avatar"></a>
{{ if eq .Kind "home" }}
<h1 class="title">{{ .Site.Title }}</h1>
<h1 class="title"><a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a></h1>
{{ else }}
<h2 class="title">{{ .Site.Title }}</h2>
<h2 class="title"><a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a></h2>
{{ end }}
<p class="subtitle">{{ .Site.Params.subtitle }}</p>
<button class="menu-toggle" type="button" aria-label="Main Menu" aria-expanded="false" tab-index="0">
Expand Down

0 comments on commit 6d6934b

Please sign in to comment.