Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions layouts/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head prefix="og: http://ogp.me/ns#">
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1" />
<meta property="og:title" content="{{ if ne .URL "/" }} {{ .Title }} &middot; {{ end }} {{ .Site.Title }}" />
<meta property="og:title" content="{{ if ne .Permalink "/" }} {{ .Title }} &middot; {{ end }} {{ .Site.Title }}" />
{{ with .Site.Params.themecolor }}
<meta name="theme-color" content="{{ . }}" />
{{ end }}
Expand All @@ -26,7 +26,7 @@
{{ end }}

<title>
{{ if ne .URL "/" }} {{ .Title }} &middot; {{ end }} {{ .Site.Title }}
{{ if ne .Permalink "/" }} {{ .Title }} &middot; {{ end }} {{ .Site.Title }}
</title>

<link rel="stylesheet" href="{{ .Site.BaseURL }}css/bootstrap.min.css" />
Expand All @@ -36,8 +36,8 @@
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Source+Sans+Pro:200,300,400" type="text/css">
<link rel="shortcut icon" href="{{ .Site.BaseURL }}images/favicon.ico" />
<link rel="apple-touch-icon" href="{{ .Site.BaseURL }}images/apple-touch-icon.png" />
{{ if eq .URL "/" }}
<link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
{{ if eq .RelPermalink "/" }}
<link href="{{ with .OutputFormats.Get "RSS" }} {{ .RelPermalink }} {{end}}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
{{ end }}
</head>
<body>
Expand All @@ -50,14 +50,14 @@ <h1><a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a></h1>
</div>
{{ end }}
{{ partial "link.html" . }}
{{ if ne .URL "/" }}
{{ if ne .Permalink "/" }}
<a href="{{ .Site.BaseURL }}" class="btn-header btn-back hidden-xs">
<i class="fa fa-angle-left" aria-hidden="true"></i>
&nbsp;Home
</a>
{{ end }}
{{ with .RSSLink }}
<a href="{{ . }}" class="btn-header btn-subscribe hidden-xs">
{{ if .RelPermalink }}
<a href="{{ with .OutputFormats.Get "RSS" }}{{ .RelPermalink }} {{end}} " class="btn-header btn-subscribe hidden-xs">
<i class="fa fa-rss" aria-hidden="true"></i>
&nbsp;Subscribe
</a>
Expand Down
4 changes: 2 additions & 2 deletions layouts/partials/pagination.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
<hr />
{{ end }}
{{if .HasPrev}}
<a class="newer-posts" href="{{ .Prev.URL }}"><span aria-hidden="true">&laquo;</span> Newer Posts</a>
<a class="newer-posts" href="{{ .Prev.Permalink }}"><span aria-hidden="true">&laquo;</span> Newer Posts</a>
{{end}}
<span class="page-number">Page {{ .PageNumber }} of {{.TotalPages}}</span>
{{if .HasNext}}
<a class="older-posts" href="{{ .Next.URL }}">Older Posts <span aria-hidden="true">&raquo;</span></a>
<a class="older-posts" href="{{ .Next.Permalink }}">Older Posts <span aria-hidden="true">&raquo;</span></a>
{{end}}
</nav>