diff options
author | Derek Severin <severinderek@gmail.com> | 2019-07-02 11:39:11 +0300 |
---|---|---|
committer | Derek Severin <severinderek@gmail.com> | 2019-07-02 11:39:11 +0300 |
commit | 8abb9c9e388ee164c80118388c1dfa9fb9e96cfe (patch) | |
tree | d7a38c5c9d211cf95e3db8a8385142adf5ae08f1 | |
parent | e0744466dc452da740f27189b0cfa9386e2a9b95 (diff) |
Minor fix after update to Hugo 0.55
-rw-r--r-- | layouts/_default/limage.html | 2 | ||||
-rw-r--r-- | layouts/partials/sections/projects.html | 4 |
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"> |