summaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authormms <michal@sapka.me>2024-07-29 01:21:06 +0200
committermms <michal@sapka.me>2024-07-29 01:21:06 +0200
commit59c1bd35f72287109fe2dac254f193b0ce0b7edb (patch)
tree915155413e06700da1ab369db730f673056f0330 /layouts
parentf864511fe699fec99da4c45b37f17600f3516e71 (diff)
feat(index): emacs content
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/homepage/emacs.html24
1 files changed, 13 insertions, 11 deletions
diff --git a/layouts/partials/homepage/emacs.html b/layouts/partials/homepage/emacs.html
index 4724e6d..0211e31 100644
--- a/layouts/partials/homepage/emacs.html
+++ b/layouts/partials/homepage/emacs.html
@@ -1,15 +1,15 @@
{{- $file := "emacs-logo.png" }}
{{- $path := printf "content_images/%s" $file}}
{{- $img := resources.Get $path }}
-{{- $img1x := $img.Resize "50x webp" }}
-{{- $img2x := $img.Resize "100x webp" }}
+{{- $img1x := $img.Resize "100x webp" }}
+{{- $img2x := $img.Resize "200x webp" }}
<section class="emacs">
<h2 id="emacs"><a href="#emacs">Emacs</a></h2>
- <div style="display: flow-root; vertical-align: middle;">
+ <div style="display: flow-root; vertical-align: top;">
<img
alt="Emacs logo"
- style="float: left; max-width: 20%; margin-right: 10px;"
+ style="float: right; max-width: 20%; margin-right: 20px;"
src="{{ $img1x.Permalink }}"
srcset="
{{ $img1x.Permalink }} 1x,
@@ -18,12 +18,14 @@
width="{{ $img1x.Width }}"
height="{{ $img1x.Height }}"
>
-
- After years of using (neo)vim, I've migrated fully to Emacs.
- Funny thing about this editor is that it's not only an editor but a style of life.
-
- </p>
- </div>
- {{ partial "menu.html" (dict "menuID" "emacs" "page" .) }}
+<ul style="margin-top: 0">
+ <li>Cool ways to use Emacs
+ {{ partial "menu.html" (dict "menuID" "cool-emacs-ways" "page" .) }}
+ </li>
+ <li>Appendix
+ {{ partial "menu.html" (dict "menuID" "cool-emacs-appendix" "page" .) }}
+ </li>
+</ul>
+</div>
</section>