Fix bad URL forming

This commit is contained in:
Tony Blyler 2016-11-03 09:11:22 -04:00
parent 113550eb8a
commit decd168757
2 changed files with 7 additions and 7 deletions

View file

@ -1,7 +1,7 @@
<div class="links">
<a href="{{ .Site.BaseURL }}">Home</a>
{{ range first 1 (where .Site.Pages "Type" "post") }}
<a href="{{ .Site.BaseURL }}post/">Archive</a>
<a href="{{ .Site.BaseURL }}/post/">Archive</a>
{{ end }}
{{ range where .Site.Pages "Type" "!=" "post" }}
<a href="{{ .Permalink }}">{{ .Title }}</a>

View file

@ -9,7 +9,7 @@
{{ if .RSSlink }}
<link href="{{ .RSSlink }}" rel="alternative" type="application/rss+xml" title="{{ .Title }}" />
{{ end }}
<link rel="stylesheet" type="text/css" href="{{ .Site.BaseURL }}css/main.css" />
<link rel="stylesheet" type="text/css" href="{{ .Site.BaseURL }}/css/main.css" />
</head>
<body>
<a id="title" href="{{ .Site.BaseURL }}" title="{{ .Site.Title }}">
@ -23,27 +23,27 @@
<div id="social">
{{ if .Site.Params.email }}
<a href="mailto:{{ .Site.Params.email }}" title="Email {{ .Site.Params.email }}">
<img alt="Email" src="{{ .Site.BaseURL }}images/email.svg" />
<img alt="Email" src="{{ .Site.BaseURL }}/images/email.svg" />
</a>
{{ end }}
{{ if .Site.Params.github }}
<a href="https://github.com/{{ .Site.Params.github }}" title="Github">
<img alt="GitHub" src="{{ .Site.BaseURL }}images/github.svg" />
<img alt="GitHub" src="{{ .Site.BaseURL }}/images/github.svg" />
</a>
{{ end }}
{{ if .Site.Params.facebook }}
<a href="https://facebook.com/{{ .Site.Params.facebook }}" title="Facebook">
<img alt="Facebook" src="{{ .Site.BaseURL }}images/facebook.svg" />
<img alt="Facebook" src="{{ .Site.BaseURL }}/images/facebook.svg" />
</a>
{{ end }}
{{ if .Site.Params.twitter }}
<a href="https://twitter.com/{{ .Site.Params.twitter }}" title="Twitter">
<img alt="Twitter" src="{{ .Site.BaseURL }}images/twitter.svg" />
<img alt="Twitter" src="{{ .Site.BaseURL }}/images/twitter.svg" />
</a>
{{ end }}
{{ if .Site.Params.linkedin }}
<a href="https://linkedin.com/in/{{ .Site.Params.linkedin }}" title="LinkedIn">
<img alt="LinkedIn" src="{{ .Site.BaseURL }}images/linkedin.svg" />
<img alt="LinkedIn" src="{{ .Site.BaseURL }}/images/linkedin.svg" />
</a>
{{ end }}
</div>