allow for subdir in baseURL
This commit is contained in:
parent
3048ba2968
commit
d336a31c1e
3 changed files with 5 additions and 5 deletions
|
|
@ -2,7 +2,7 @@
|
|||
<main class="content page-template page-{{ .Slug }}">
|
||||
<article class="post page">
|
||||
<header class="post-header">
|
||||
<a id="blog-logo" href="{{ "/" | relURL }}"><i class="fa fa-chevron-left" aria-hidden="true"></i> {{ .Site.Title }}</a>
|
||||
<a id="blog-logo" href="{{ "" | relLangURL }}"><i class="fa fa-chevron-left" aria-hidden="true"></i> {{ .Site.Title }}</a>
|
||||
</header>
|
||||
<h1 class="post-title">{{ .Title }}</h1>
|
||||
<section class="post-content">
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
<!-- Welcome screen that scrolls out of view -->
|
||||
{{ if not .Params.header_use_video }}
|
||||
<header id="site-head" class="withCenteredImage" {{ with .Params.header_image }}style="background-image: url({{ . }})"{{ end }}>
|
||||
<header id="site-head" class="withCenteredImage" {{ with .Params.header_image }}style="background-image: url({{ . | relURL}})"{{ end }}>
|
||||
{{ else }}
|
||||
<header id="site-head">
|
||||
{{ end }}
|
||||
|
|
@ -33,9 +33,9 @@
|
|||
{{ with .Params.header_menu_title }}{{ $button_title = . }}{{ end }}
|
||||
|
||||
{{ if isset .Params "external" }}
|
||||
<a class='btn site-menu' href='{{ .Params.external }}'>{{ $button_title }} <icon class="fa fa-external-link"></icon></a>
|
||||
<a class='btn site-menu' href='{{ .Params.external | absURL }}'>{{ $button_title }} <icon class="fa fa-external-link"></icon></a>
|
||||
{{ else if isset .Params "detailed_page_path" }}
|
||||
<a class='btn site-menu' href='{{ .Params.detailed_page_path }}'>{{ $button_title }}</a>
|
||||
<a class='btn site-menu' href='{{ .Params.detailed_page_path | relURL }}'>{{ $button_title }}</a>
|
||||
{{ else }}
|
||||
{{ $fnav_title := .Title }}{{ with .Params.navigation_menu_title }}{{ $fnav_title = . }}{{ end }}
|
||||
<a class='btn site-menu' data-title-anchor='{{ anchorize $fnav_title }}' href='#{{ anchorize $fnav_title }}'>{{ $button_title }}</a>
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
<ol>
|
||||
{{ range where $sections ".Params.footer_menu" "eq" true }}
|
||||
<li>
|
||||
<a href="{{ .Params.detailed_page_path }}">{{ .Params.footer_menu_title }}</a>
|
||||
<a href="{{ relLangURL .Params.detailed_page_path }}">{{ .Params.footer_menu_title }}</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ol>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue