mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-06 08:13:41 +00:00
1 parent
25bac3db27
commit
e1bcd74ea2
2 files changed
+7
-1
No files matched your search
@@ -54,6 +54,11 @@ preserveTaxonomyNames = true
|
||||
latexDashes = true
|
||||
extensions = ["backslashLineBreak"]
|
||||
|
||||
[imaging]
|
||||
resampleFilter = "lanczos"
|
||||
quality = 90
|
||||
anchor = "smart" # Anchor for cropping. Options include Smart and Center.
|
||||
|
||||
# Taxonomies.
|
||||
[taxonomies]
|
||||
tag = "tags"
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
{{ $images := ($.Page.Resources.ByType "image").Match (printf "%s/*" $album) }}
|
||||
{{ with $images }}
|
||||
{{ range $images }}
|
||||
{{ $image := .Resize "x190" }}
|
||||
{{/* Check if the user set a caption for this image */}}
|
||||
{{ $filename := .Name }}
|
||||
{{ $caption := "" }}
|
||||
@@ -15,7 +16,7 @@
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
<a data-fancybox="gallery-{{$album}}" href="{{ .RelPermalink }}" {{ with $caption }}data-caption="{{.}}"{{ end }}>
|
||||
<img src="{{ .RelPermalink }}" alt="">
|
||||
<img src="{{ $image.RelPermalink }}" alt="">
|
||||
</a>
|
||||
{{end}}
|
||||
|
||||
|
||||
Reference in new issue
Block a user