diff options
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/guest/single.html | 2 | ||||
-rw-r--r-- | layouts/partials/footer_scripts.html | 8 | ||||
-rw-r--r-- | layouts/partials/grid.html | 8 | ||||
-rw-r--r-- | layouts/partials/head_includes.html | 6 | ||||
-rw-r--r-- | layouts/partials/header.html | 6 | ||||
-rw-r--r-- | layouts/partials/jumbotron.html | 2 | ||||
-rw-r--r-- | layouts/partials/row.html | 10 | ||||
-rw-r--r-- | layouts/partials/sidebar.html | 2 |
8 files changed, 22 insertions, 22 deletions
diff --git a/layouts/guest/single.html b/layouts/guest/single.html index 3e2b403..488ec70 100644 --- a/layouts/guest/single.html +++ b/layouts/guest/single.html @@ -8,7 +8,7 @@ <div class="row"> <div class="col-md-3"> - <img src="{{ .Params.thumbnail }}" class="img-fluid episode_image"/> + <img src="{{ .Params.thumbnail | absURL }}" class="img-fluid episode_image"/> </div> <div class="col-md-8"> <div class = "row"> diff --git a/layouts/partials/footer_scripts.html b/layouts/partials/footer_scripts.html index 0a17f2e..b017c68 100644 --- a/layouts/partials/footer_scripts.html +++ b/layouts/partials/footer_scripts.html @@ -1,4 +1,4 @@ -<script src="/js/castanet-min.js"></script> +<script src={{ "/js/castanet-min.js" | relURL }}></script> <script> $("#share").jsSocials({ shares: ["facebook", "linkedin", "pinterest", @@ -16,9 +16,9 @@ <script> audiojs.events.ready(function() { var as = audiojs.createAll({ - imageLocation: '/img/player-graphics.gif', - retinaImageLocation: '/img/player-graphics@2x.gif', - swfLocation: '/swf/audiojs.swf' + imageLocation: '{{"/img/player-graphics.gif" | relURL}}', + retinaImageLocation: '{{"/img/player-graphics@2x.gif" | relURL}}', + swfLocation: '{{"/swf/audiojs.swf" | relURL}}' }); }); </script> diff --git a/layouts/partials/grid.html b/layouts/partials/grid.html index 6478ac9..25374ac 100644 --- a/layouts/partials/grid.html +++ b/layouts/partials/grid.html @@ -13,7 +13,7 @@ <div class="col-md-4"> <div class="episode-image-homepage"> <a href="{{ .Permalink }}"> - <img src="{{ .Params.episode_image }}" class="img-fluid" alt="{{ .Title }}" /> + <img src="{{ .Params.episode_image | absURL }}" class="img-fluid" alt="{{ .Title }}" /> @@ -40,21 +40,21 @@ <ul class="pagination pagination-lg"> {{ with $paginator.First }} <li class="page-item"> - <a href="{{ .URL }}" aria-label="First" class="page-link"><span aria-hidden="true">««</span></a> + <a href="{{ .URL | absURL }}" aria-label="First" class="page-link"><span aria-hidden="true">««</span></a> </li> {{ end }} <li class="{{ if not $paginator.HasPrev }}disabled {{ end }}page-item"> <a href="{{ if $paginator.HasPrev }}{{ $paginator.Prev.URL }}{{ end }}" aria-label="Previous" class="page-link"><span aria-hidden="true">«</span></a> </li> {{ range $paginator.Pagers }} - <li class="{{ if eq . $paginator }}active {{ end }}page-item"><a href="{{ .URL }}" class="page-link hidden-md-down">{{ .PageNumber }}</a></li> + <li class="{{ if eq . $paginator }}active {{ end }}page-item"><a href="{{ .URL | absURL }}" class="page-link hidden-md-down">{{ .PageNumber }}</a></li> {{ end }} <li class="{{ if not $paginator.HasNext }}disabled {{ end }}page-item"> <a href="{{ if $paginator.HasNext }}{{ $paginator.Next.URL }}{{ end }}" aria-label="Next" class="page-link"><span aria-hidden="true">»</span></a> </li> {{ with $paginator.Last }} <li class="page-item"> - <a href="{{ .URL }}" aria-label="Last" class="page-link"><span aria-hidden="true">»»</span></a> + <a href="{{ .URL | absURL }}" aria-label="Last" class="page-link"><span aria-hidden="true">»»</span></a> </li> {{ end }} </ul> diff --git a/layouts/partials/head_includes.html b/layouts/partials/head_includes.html index 044228e..420d9ba 100644 --- a/layouts/partials/head_includes.html +++ b/layouts/partials/head_includes.html @@ -1,10 +1,10 @@ {{ if isset $.Site.Params "site_theme"}} -<link href="/css/{{ $.Site.Params.site_theme}}.css" rel="stylesheet"> +<link href="{{ printf "/css/%s.css" $.Site.Params.site_theme | relURL}}" rel="stylesheet"> {{ else }} -<link href="/css/orange.css" rel="stylesheet"> +<link href={{"/css/orange.css" | relURL }} rel="stylesheet"> {{ end }} <link href="https://fonts.googleapis.com/css?family=Lato|Raleway" rel="stylesheet"> <!-- Custom CSS --> {{ range .Site.Params.custom_css }} - <link rel="stylesheet" href="/{{ . }}"> + <link rel="stylesheet" href="/{{ . | relURL }}"> {{ end }} diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 2f68b3c..186f4c3 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -2,7 +2,7 @@ <button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"> <span class="navbar-toggler-icon"></span> </button> - <a class="navbar-brand" href="/">{{ .Site.Title }}</a> + <a class="navbar-brand" href="{{ "/" | absURL }}">{{ .Site.Title }}</a> <div class="collapse navbar-collapse" id="navbarSupportedContent"> <ul class="navbar-nav mr-auto"> @@ -13,13 +13,13 @@ <a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">{{ .Name }}</a> <div class="dropdown-menu"> {{ range .Children }} - <a class="dropdown-item{{ if $currentNode.IsMenuCurrent "Main" . }} active {{ end }}" href="{{ .URL }}">{{ .Name }}</a> + <a class="dropdown-item{{ if $currentNode.IsMenuCurrent "Main" . }} active {{ end }}" href="{{ .URL | absURL }}">{{ .Name }}</a> {{ end }} </div> </li> {{ else }} <li class= "nav-item {{ if or ($currentNode.IsMenuCurrent "Main" .) ($currentNode.HasMenuCurrent "Main" .) }} active {{ end }}"> - <a href="{{ .URL }}" class="nav-link"> + <a href="{{ .URL | absURL }}" class="nav-link"> {{ .Pre }} <span>{{ .Name }}</span> </a> diff --git a/layouts/partials/jumbotron.html b/layouts/partials/jumbotron.html index 2a3e12a..f7a38f8 100644 --- a/layouts/partials/jumbotron.html +++ b/layouts/partials/jumbotron.html @@ -10,7 +10,7 @@ {{ range $p:= $.Site.Params.authors }} <div class="col-lg-2"> - <img alt="{{ $p.name }}" src="{{ $p.thumbnail }}" class="img-center rounded-circle img-fluid jumbotron-host"> + <img alt="{{ $p.name }}" src="{{ $p.thumbnail | absURL }}" class="img-center rounded-circle img-fluid jumbotron-host"> <p class="text-center text-capitalize">{{ $p.name }}</p> </div> {{ end }} diff --git a/layouts/partials/row.html b/layouts/partials/row.html index 9ce6323..ef7c8e6 100644 --- a/layouts/partials/row.html +++ b/layouts/partials/row.html @@ -13,7 +13,7 @@ </div> <div class = "row homepage_episode_row"> <div class = "col-md-4"> - <img class = "homepage_thumbnail img-rounded" src = "{{ .Params.episode_image }}" /> + <img class = "homepage_thumbnail img-rounded" src = "{{ .Params.episode_image | absURL }}" /> </div> <div class = "col-md-8"> <p class = "hompage_episode_description">{{ .Description | markdownify}}</p> @@ -44,7 +44,7 @@ </div> <div class = "row homepage_episode_row"> <div class = "col-md-4"> - <img class = "homepage_thumbnail img-rounded" src = "{{ .Params.episode_image }}" /> + <img class = "homepage_thumbnail img-rounded" src = "{{ .Params.episode_image | absURL }}" /> </div> <div class = "col-md-8"> <p class = "hompage_episode_description">{{ .Description | markdownify}}</p> @@ -75,21 +75,21 @@ <ul class="pagination pagination-lg"> {{ with $paginator.First }} <li class="page-item"> - <a href="{{ .URL }}" aria-label="First" class="page-link"><span aria-hidden="true">««</span></a> + <a href="{{ .URL | absURL }}" aria-label="First" class="page-link"><span aria-hidden="true">««</span></a> </li> {{ end }} <li class="{{ if not $paginator.HasPrev }}disabled {{ end }}page-item"> <a href="{{ if $paginator.HasPrev }}{{ $paginator.Prev.URL }}{{ end }}" aria-label="Previous" class="page-link"><span aria-hidden="true">«</span></a> </li> {{ range $paginator.Pagers }} - <li class="{{ if eq . $paginator }}active {{ end }}page-item"><a href="{{ .URL }}" class="page-link hidden-md-down">{{ .PageNumber }}</a></li> + <li class="{{ if eq . $paginator }}active {{ end }}page-item"><a href="{{ .URL | absURL }}" class="page-link hidden-md-down">{{ .PageNumber }}</a></li> {{ end }} <li class="{{ if not $paginator.HasNext }}disabled {{ end }}page-item"> <a href="{{ if $paginator.HasNext }}{{ $paginator.Next.URL }}{{ end }}" aria-label="Next" class="page-link"><span aria-hidden="true">»</span></a> </li> {{ with $paginator.Last }} <li class="page-item"> - <a href="{{ .URL }}" aria-label="Last" class="page-link"><span aria-hidden="true">»»</span></a> + <a href="{{ .URL | absURL }}" aria-label="Last" class="page-link"><span aria-hidden="true">»»</span></a> </li> {{ end }} </ul> diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index 794b752..342a2df 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -101,7 +101,7 @@ <div class = "col-md-12"> <div class="sidebar_content"> {{ range $p:= $.Site.Params.authors }} - <img alt = "{{ $p.name }}" src = "{{ $p.thumbnail }}" class="img-fluid"> + <img alt = "{{ $p.name }}" src = "{{ $p.thumbnail | absURL }}" class="img-fluid"> <br /> {{ $p.name }} {{ end }} |