mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-01-30 16:31:52 +01:00
pretty run
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
{{ $id := delimit (slice "gallery" (partial "functions/uid.html" .)) "-" -}}
|
||||
|
||||
|
||||
<div id="{{- $id -}}" class="gallery">
|
||||
{{ $page := .Page -}}
|
||||
|
||||
|
||||
<!-- find all img tags -->
|
||||
{{ $imgTagRegex := `<img\s+[^>]*>` -}}
|
||||
{{ $imgTags := findRE $imgTagRegex .Inner -}}
|
||||
@@ -24,7 +26,8 @@
|
||||
{{ if $isExternalURL -}}
|
||||
{{ with resources.GetRemote $src -}}{{ $finalSrc = .RelPermalink -}}{{ end -}}
|
||||
{{ else -}}
|
||||
{{ with $page.Resources.GetMatch $src -}}{{ $finalSrc = .RelPermalink -}}
|
||||
{{ with $page.Resources.GetMatch $src -}}
|
||||
{{ $finalSrc = .RelPermalink -}}
|
||||
{{ else -}}
|
||||
{{ with resources.GetMatch $src -}}{{ $finalSrc = .RelPermalink }}{{ end -}}
|
||||
{{ end -}}
|
||||
|
||||
Reference in New Issue
Block a user