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

github.com/2-REC/hugo-myportfolio-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default/limage.html')
-rw-r--r--layouts/_default/limage.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/layouts/_default/limage.html b/layouts/_default/limage.html
index 49d31cf..4cfb51b 100644
--- a/layouts/_default/limage.html
+++ b/layouts/_default/limage.html
@@ -6,6 +6,7 @@
{{ $.Scratch.Set "col_lg" (print "col-lg-" $nb_cols) }}
{{ end }}
{{ $col_lg := $.Scratch.Get "col_lg" }}
+{{ $.Scratch.Delete "col_lg" }}
{{ $.Scratch.Set "col_sm" "col-sm-6" }}
{{ with $.Site.Params.projects.nb_columns_small }}
@@ -13,6 +14,8 @@
{{ $.Scratch.Set "col_sm" (print "col-sm-" $nb_cols) }}
{{ end }}
{{ $col_sm := $.Scratch.Get "col_sm" }}
+{{ $.Scratch.Delete "col_sm" }}
+
{{ $class := print $col_lg " " $col_sm }}
<div class="{{ $class }}">