Skip to content

Commit

Permalink
adjusting images to work the same in github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanjbartley committed Oct 8, 2020
1 parent 5a1c9fd commit f994519
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion layouts/partials/article/hero.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ <h1 class="article-hero-heading">{{ .Page.Params.Title }}</h1>
</header>
{{ with .Page.Params.hero }}
<div class="article-hero-image" id="ArticleImage__Hero">
<img src="{{ . }}">
<img src="{{ $.Site.BaseURL }}{{ . }}">
</div>
{{ end }}
</div>
Expand Down
1 change: 1 addition & 0 deletions layouts/partials/head/head.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<head>
<base href="{{ .Site.BaseURL }}">
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/header.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Section class="section">
<div class="nav-container">
<a class="logo-link" href="/">
<a class="logo-link" href="{{ .Site.BaseURL }}">
{{ partial "icons/ui/logo.html" . }}
<span class="header-hidden">Navigate back to the homepage</span>
</a>
Expand Down

0 comments on commit f994519

Please sign in to comment.