Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/2-REC/hugo-myportfolio-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex <onedrawingperday@gmail.com>2018-12-05 22:51:56 +0300
committerAlex <onedrawingperday@gmail.com>2018-12-05 22:51:56 +0300
commit9c290b5d33160a7e943b1433296724e52e839aac (patch)
treeeb62594e25f6e490c4da7c944b767241be420c07 /layouts
parent734645842d4850e0a1b67052ce0d983913a063cd (diff)
Permalink Fix Hugo Themes Demo
Diffstat (limited to 'layouts')
-rw-r--r--layouts/404.html2
-rw-r--r--layouts/_default/limage.html2
-rw-r--r--layouts/partials/head.html16
-rw-r--r--layouts/partials/pages/hero.html2
-rw-r--r--layouts/partials/pages/sidebar.html6
-rw-r--r--layouts/partials/sections/about.html2
-rw-r--r--layouts/partials/sections/contact.html4
-rw-r--r--layouts/partials/sections/home.html2
-rw-r--r--layouts/partials/sections/services.html2
-rw-r--r--layouts/partials/tail.html12
10 files changed, 25 insertions, 25 deletions
diff --git a/layouts/404.html b/layouts/404.html
index 842c9b6..360e535 100644
--- a/layouts/404.html
+++ b/layouts/404.html
@@ -15,7 +15,7 @@
<div class="col-xs-12 text-center">
{{ with .background_image }}
<div class="page404-image" title="image: {{ . }}"
- style="background-image: url('{{ (printf "images/%s" .) | relURL }}');"
+ style="background-image: url('{{ (printf "images/%s" .) | absURL }}');"
>
</div>
{{ end }}
diff --git a/layouts/_default/limage.html b/layouts/_default/limage.html
index 52c82b0..6208469 100644
--- a/layouts/_default/limage.html
+++ b/layouts/_default/limage.html
@@ -5,7 +5,7 @@
{{ if $image_file }}
{{ $image := .Resources.GetMatch $image_file }}
{{ with $image }}
- <img src="{{ .RelPermalink | relURL }}" class="img-responsive" alt="{{ .Name }}">
+ <img src="{{ .Permalink }}" class="img-responsive" alt="{{ .Name }}">
{{ end }}
{{ end }}
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 512966b..bbeaa35 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -18,26 +18,26 @@
{{ .Hugo.Generator }}
{{ "<!-- Favicon -->" | safeHTML }}
-<link rel="shortcut icon" href="{{ .Site.Params.meta.favicon | relURL }}" type="image/x-icon" />
-<link rel="icon" href="{{ .Site.Params.meta.favicon | relURL }}" type="image/x-icon" />
+<link rel="shortcut icon" href="{{ .Site.Params.meta.favicon | absURL }}" type="image/x-icon" />
+<link rel="icon" href="{{ .Site.Params.meta.favicon | absURL }}" type="image/x-icon" />
{{ "<!-- Bootstrap -->" | safeHTML }}
-<link rel="stylesheet" href="{{ "plugins/bootstrap/css/bootstrap.min.css" | relURL }}" type="text/css">
+<link rel="stylesheet" href="{{ "plugins/bootstrap/css/bootstrap.min.css" | absURL }}" type="text/css">
{{ "<!-- Custom Fonts -->" | safeHTML }}
<link rel='stylesheet' href='//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800' type='text/css'>
<link rel='stylesheet' href='//fonts.googleapis.com/css?family=Merriweather:400,300,300italic,400italic,700,700italic,900,900italic' type='text/css'>
-<link rel="stylesheet" href="{{ "plugins/font-awesome/css/all.css" | relURL }}" type="text/css">
+<link rel="stylesheet" href="{{ "plugins/font-awesome/css/all.css" | absURL }}" type="text/css">
{{ "<!-- CSS Plugins -->" | safeHTML }}
-<link rel="stylesheet" href="{{ "plugins/animate/animate.min.css" | relURL }}" type="text/css">
+<link rel="stylesheet" href="{{ "plugins/animate/animate.min.css" | absURL }}" type="text/css">
{{ "<!-- Custom CSS -->" | safeHTML }}
-<link rel="stylesheet" href="{{ "css/default.css" | relURL }}" type="text/css">
+<link rel="stylesheet" href="{{ "css/default.css" | absURL }}" type="text/css">
{{ range .Site.Params.custom_css }}
- <link rel="stylesheet" href="{{ (printf "%s%s" "css/" .) | relURL }}" type="text/css">
+ <link rel="stylesheet" href="{{ (printf "%s%s" "css/" .) | absURL }}" type="text/css">
{{ end }}
-<link rel="stylesheet" href="{{ "css/theme.css" | relURL }}" type="text/css">
+<link rel="stylesheet" href="{{ "css/theme.css" | absURL }}" type="text/css">
{{ "<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->" | safeHTML }}
{{ "<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->" | safeHTML }}
diff --git a/layouts/partials/pages/hero.html b/layouts/partials/pages/hero.html
index bf77872..b29ca38 100644
--- a/layouts/partials/pages/hero.html
+++ b/layouts/partials/pages/hero.html
@@ -3,7 +3,7 @@
{{ $image := .Resources.GetMatch .Params.image }}
{{ if $image }}
<div class="header-image"
- style="background-image: url('{{ $image.RelPermalink | relURL }}');"
+ style="background-image: url('{{ $image.Permalink }}');"
>
{{ with .Params.image_copyright }}
<p class="copyright">{{ . | markdownify }}</p>
diff --git a/layouts/partials/pages/sidebar.html b/layouts/partials/pages/sidebar.html
index 98d4955..4a2e96c 100644
--- a/layouts/partials/pages/sidebar.html
+++ b/layouts/partials/pages/sidebar.html
@@ -6,10 +6,10 @@
{{ with $image }}
<div class="sidebar-image">
{{ if $.Params.small_url }}
- <a href="{{ $.Params.small_url | relURL }}" target="_blank" rel="noopener noreferrer">
+ <a href="{{ $.Params.small_url | absURL }}" target="_blank" rel="noopener noreferrer">
{{ end }}
{{ $alt := or $.Params.small_url "" }}
- <img src="{{ .RelPermalink | relURL }}" alt="{{ $alt }}">
+ <img src="{{ .Permalink }}" alt="{{ $alt }}">
{{ if $.Params.small_url }}
</a>
{{ end }}
@@ -22,7 +22,7 @@
{{ "<!-- Navigation Tree -->" | safeHTML }}
<div class="sidebar-tree">
{{ with .Parent }}
- <a class="parent-link" href="{{ .Permalink | relURL }}">
+ <a class="parent-link" href="{{ .Permalink }}">
{{ if not .IsHome }}
<i class="fas fa-chevron-circle-left"></i>
{{ .Title }}
diff --git a/layouts/partials/sections/about.html b/layouts/partials/sections/about.html
index 97a4056..02e1b6c 100644
--- a/layouts/partials/sections/about.html
+++ b/layouts/partials/sections/about.html
@@ -16,7 +16,7 @@
<div class="col-xs-12 col-md-4">
<div class="profile">
{{ with .avatar }}
- <div class="portrait" title="avatar: {{ . }}" style="background-image: url('{{ (printf "images/%s" .) | relURL }}');"></div>
+ <div class="portrait" title="avatar: {{ . }}" style="background-image: url('{{ (printf "images/%s" .) | absURL }}');"></div>
{{ end }}
{{ with .short_text }}
<div class="text-primary">
diff --git a/layouts/partials/sections/contact.html b/layouts/partials/sections/contact.html
index 8eaf3e2..4f4da1b 100644
--- a/layouts/partials/sections/contact.html
+++ b/layouts/partials/sections/contact.html
@@ -2,7 +2,7 @@
{{ with .Site.Data.contact }}
<section class="section" id="contact"
{{ with .background_image }}
- style="background-image: url('{{ (printf "images/%s" .) | relURL }}');"
+ style="background-image: url('{{ (printf "images/%s" .) | absURL }}');"
{{ end }}
>
<div class="container-fluid">
@@ -19,7 +19,7 @@
<div class="col-md-4 col-md-offset-1 text-center">
<div class="profile bg-secondary">
{{ with .photo }}
- <div class="portrait" title="photo: {{ . }}" style="background-image: url('{{ (printf "images/%s" .) | relURL }}');"></div>
+ <div class="portrait" title="photo: {{ . }}" style="background-image: url('{{ (printf "images/%s" .) | absURL }}');"></div>
{{ end }}
{{ with .description }}
diff --git a/layouts/partials/sections/home.html b/layouts/partials/sections/home.html
index 7d1a9f3..364635a 100644
--- a/layouts/partials/sections/home.html
+++ b/layouts/partials/sections/home.html
@@ -2,7 +2,7 @@
{{ with .Site.Data.home }}
<section id="home"
{{ with .background }}
- style="background-image: url('{{ (printf "images/%s" .) | relURL }}');"
+ style="background-image: url('{{ (printf "images/%s" .) | absURL }}');"
{{ end }}
>
<div class="header-content">
diff --git a/layouts/partials/sections/services.html b/layouts/partials/sections/services.html
index 923766c..fcbc90e 100644
--- a/layouts/partials/sections/services.html
+++ b/layouts/partials/sections/services.html
@@ -2,7 +2,7 @@
{{ with .Site.Data.services }}
<section class="section" id="services"
{{ with .background_image }}
- style="background-image: url('{{ (printf "images/%s" .) | relURL }}');"
+ style="background-image: url('{{ (printf "images/%s" .) | absURL }}');"
{{ end }}
>
{{ with .title }}
diff --git a/layouts/partials/tail.html b/layouts/partials/tail.html
index fa19c8f..ac0526b 100644
--- a/layouts/partials/tail.html
+++ b/layouts/partials/tail.html
@@ -1,7 +1,7 @@
{{ "<!-- TAIL.HTML -->" | safeHTML }}
-<script src="{{ "plugins/jquery/jquery.js" | relURL }}"></script>
-<script src="{{ "plugins/bootstrap/js/bootstrap.min.js" | relURL }}"></script>
-<script src="{{ "plugins/jquery/jquery.easing.min.js" | relURL }}"></script>
-<script src="{{ "plugins/jquery/jquery.fittext.js" | relURL }}"></script>
-<script src="{{ "plugins/jquery/wow.min.js" | relURL }}"></script>
-<script src="{{ "js/theme.js" | relURL }}"></script>
+<script src="{{ "plugins/jquery/jquery.js" | absURL }}"></script>
+<script src="{{ "plugins/bootstrap/js/bootstrap.min.js" | absURL }}"></script>
+<script src="{{ "plugins/jquery/jquery.easing.min.js" | absURL }}"></script>
+<script src="{{ "plugins/jquery/jquery.fittext.js" | absURL }}"></script>
+<script src="{{ "plugins/jquery/wow.min.js" | absURL }}"></script>
+<script src="{{ "js/theme.js" | absURL }}"></script>