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:
authorDerek Severin <severinderek@gmail.com>2019-07-02 11:39:11 +0300
committerDerek Severin <severinderek@gmail.com>2019-07-02 11:39:11 +0300
commit8abb9c9e388ee164c80118388c1dfa9fb9e96cfe (patch)
treed7a38c5c9d211cf95e3db8a8385142adf5ae08f1
parente0744466dc452da740f27189b0cfa9386e2a9b95 (diff)
Minor fix after update to Hugo 0.55
-rw-r--r--layouts/_default/limage.html2
-rw-r--r--layouts/partials/sections/projects.html4
2 files changed, 3 insertions, 3 deletions
diff --git a/layouts/_default/limage.html b/layouts/_default/limage.html
index 4cfb51b..f165f4c 100644
--- a/layouts/_default/limage.html
+++ b/layouts/_default/limage.html
@@ -19,7 +19,7 @@
{{ $class := print $col_lg " " $col_sm }}
<div class="{{ $class }}">
- {{ $path := replace .Dir "\\" "/" }}
+ {{ $path := replace .File.Dir "\\" "/" }}
<a href="/{{ $path }}" class="project-box project-link">
{{ $image_file := or .Params.cover_image .Params.small_image }}
{{ if $image_file }}
diff --git a/layouts/partials/sections/projects.html b/layouts/partials/sections/projects.html
index a6850af..8dea28b 100644
--- a/layouts/partials/sections/projects.html
+++ b/layouts/partials/sections/projects.html
@@ -1,6 +1,6 @@
{{ "<!-- PROJECTS -->" | safeHTML }}
-<section class="section projects" id="projects_{{ trim .Dir "/\\" }}">
- {{ $path := replace .Dir "\\" "/" }}
+<section class="section projects" id="projects_{{ trim .File.Dir "/\\" }}">
+ {{ $path := replace .File.Dir "\\" "/" }}
{{ with .Title }}
<a href="/{{ $path }}" class="container-fluid padding-title">
<div class="row">