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

github.com/kdevo/osprey-delight.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkdevo <kdevo@users.noreply.github.com>2021-04-24 16:14:49 +0300
committerkdevo <kdevo@users.noreply.github.com>2021-04-24 16:14:49 +0300
commit894f73ae5171cfd153e4819b22d230b14de898bc (patch)
treeb8023328f64740b901608c44a87cc4522bc28d35
parent2af0c05039abefe5fc0a052e9435b4891f4dba51 (diff)
:rewind: Backport previously deleted 'linkView' and 'linkCode'
-rw-r--r--layouts/partials/sections/gallery/modals.html14
1 files changed, 13 insertions, 1 deletions
diff --git a/layouts/partials/sections/gallery/modals.html b/layouts/partials/sections/gallery/modals.html
index 5a9494d..5152fae 100644
--- a/layouts/partials/sections/gallery/modals.html
+++ b/layouts/partials/sections/gallery/modals.html
@@ -34,8 +34,20 @@
{{- end }}
{{- end }}
</article>
- <!-- Links -->
+
+ <!-- Buttons -->
<div class="row center-xs">
+ <!-- The following two params are left for backward-compatibility -->
+ {{ with .Params.linkView }}
+ <div class="col-xs">
+ <a href="{{ . }}"><button type="submit"><span class="icon icon-angle-circled-right"></span> {{ i18n "view" }}</button></a>
+ </div>
+ {{ end }}
+ {{ with .Params.linkCode }}
+ <div class="col-xs">
+ <a href="{{ . }}"><button type="submit"><span class="icon icon-terminal"></span> {{ i18n "code" }}</button></a>
+ </div>
+ {{ end }}
{{ range .Params.buttons -}}
<div class="col-xs">
<a href="{{ .url }}" {{ if default false .newTab -}}target="_blank" rel="noopener"{{- end }}>