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

github.com/hivickylai/hugo-theme-sam.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictoria <hello@victoria.dev>2019-03-19 19:18:35 +0300
committerVictoria <hello@victoria.dev>2019-03-19 19:18:35 +0300
commitd5ca02fc2b48f05b58897c91d27fb6ffced3e814 (patch)
treec2986f0b7b33a1c8040a97dba7a91cd4978ab876 /layouts
parentbff4cceeb39a8cee5448c5ef0dd31608ffad470f (diff)
Replace second instance of hardcoded path
Diffstat (limited to 'layouts')
-rwxr-xr-xlayouts/gallery/list.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/gallery/list.html b/layouts/gallery/list.html
index da45383..0057423 100755
--- a/layouts/gallery/list.html
+++ b/layouts/gallery/list.html
@@ -37,7 +37,7 @@
{{ else }}
<div class="grid">
{{ $name := .Site.Params.galleryFolder | default "images/"}}
- {{ $path := "gallery/" }}
+ {{ $path := .File.Dir }}
{{ $content := "/content/" }}
{{ $src := (print $path $name) }}