diff options
author | kdevo <kdevo@users.noreply.github.com> | 2021-04-24 16:14:49 +0300 |
---|---|---|
committer | kdevo <kdevo@users.noreply.github.com> | 2021-04-24 16:14:49 +0300 |
commit | 894f73ae5171cfd153e4819b22d230b14de898bc (patch) | |
tree | b8023328f64740b901608c44a87cc4522bc28d35 | |
parent | 2af0c05039abefe5fc0a052e9435b4891f4dba51 (diff) |
:rewind: Backport previously deleted 'linkView' and 'linkCode'
-rw-r--r-- | layouts/partials/sections/gallery/modals.html | 14 |
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 }}> |