From 8abb9c9e388ee164c80118388c1dfa9fb9e96cfe Mon Sep 17 00:00:00 2001 From: Derek Severin Date: Tue, 2 Jul 2019 15:39:11 +0700 Subject: Minor fix after update to Hugo 0.55 --- layouts/_default/limage.html | 2 +- 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 }}
- {{ $path := replace .Dir "\\" "/" }} + {{ $path := replace .File.Dir "\\" "/" }} {{ $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 @@ {{ "" | safeHTML }} -
- {{ $path := replace .Dir "\\" "/" }} +
+ {{ $path := replace .File.Dir "\\" "/" }} {{ with .Title }}
-- cgit v1.2.3