Skip to content
Permalink
Browse files

Link logo and title to home page (#129)

Link logo and title to home page
  • Loading branch information
laozhu committed May 28, 2019
2 parents 9221101 + 4ef633e commit 6d6934bc6ac0cf2b6eb7774a8c6c1cf9c515a384
Showing with 3 additions and 3 deletions.
  1. +3 −3 layouts/partials/header.html
@@ -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">

0 comments on commit 6d6934b

Please sign in to comment.
You can’t perform that action at this time.