summaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
Diffstat (limited to 'layouts')
-rw-r--r--layouts/cool-emacs/baseof.html10
-rw-r--r--layouts/shortcodes/image.html6
2 files changed, 15 insertions, 1 deletions
diff --git a/layouts/cool-emacs/baseof.html b/layouts/cool-emacs/baseof.html
index 7f2e20b..fecc1c6 100644
--- a/layouts/cool-emacs/baseof.html
+++ b/layouts/cool-emacs/baseof.html
@@ -7,7 +7,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
- {{- $header_rect := resources.Get "unix-history/header-rect.png" }}
+ {{- $header_rect := resources.Get "cool-emacs/header-rect.png" }}
{{- $header_rect_180 := $header_rect.Resize "180x webp q90"}}
<link rel="apple-touch-icon" sizes="180x180" href="{{ $header_rect_180.Permalink }}">
@@ -85,6 +85,7 @@
border-color: var(--heading-color);
}
+
p, ul {
line-height: 1.4em;
text-align: justify;
@@ -115,6 +116,13 @@
font-family: monospace;
color: var(--heading-color);
}
+ .no-border img {
+ border: 0;
+ }
+ .right {
+ float: right;
+ max-width: 40%;
+ }
</style>
diff --git a/layouts/shortcodes/image.html b/layouts/shortcodes/image.html
index a03ded6..1bc0619 100644
--- a/layouts/shortcodes/image.html
+++ b/layouts/shortcodes/image.html
@@ -15,6 +15,12 @@
<!-- Decide on the desired 1x and 2x width -->
{{- $raw_width := $img.Width}}
{{- $final1x_width := (cond (gt $max_width $raw_width) $raw_width $max_width) }}
+
+<!-- forced width -->
+{{ if .Params.forced_width }}
+ {{ $final1x_width = cast.ToInt .Params.forced_width }}
+{{ end }}
+
{{- $final2x_width := math.Mul $final1x_width 2}}
<!-- Generate 1x and 2x images -->