summaryrefslogtreecommitdiff
path: root/layouts/partials/homepage
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/homepage')
-rw-r--r--layouts/partials/homepage/bsd.html25
-rw-r--r--layouts/partials/homepage/emacs.html30
2 files changed, 41 insertions, 14 deletions
diff --git a/layouts/partials/homepage/bsd.html b/layouts/partials/homepage/bsd.html
index 358218bc..5882379e 100644
--- a/layouts/partials/homepage/bsd.html
+++ b/layouts/partials/homepage/bsd.html
@@ -4,24 +4,21 @@
{{- $img1x := $img.Resize "150x webp" }}
{{- $img2x := $img.Resize "300x webp" }}
-
-
<section class="bsd" style="display: flow-root">
<h2 id="bsd">Berkeley Software Distribution</h2>
- <img
- style="float: right; max-width: 20%;"
- src="{{ $img1x.Permalink }}"
- srcset="
- {{ $img1x.Permalink }} 1x,
- {{ $img2x.Permalink }} 2x
- "
- width="{{ $img1x.Width }}"
- height="{{ $img1x.Height }}"
->
+ <img
+ style="float: right; max-width: 20%;"
+ src="{{ $img1x.Permalink }}"
+ srcset="
+ {{ $img1x.Permalink }} 1x,
+ {{ $img2x.Permalink }} 2x
+ "
+ width="{{ $img1x.Width }}"
+ height="{{ $img1x.Height }}"
+ >
- Some articles on the BSD family of Operating Systems I use
- {{ partial "menu.html" (dict "menuID" "bsd" "page" .) }}
+ Some articles on the BSD family of Operating Systems I use: {{ partial "menu.html" (dict "menuID" "bsd" "page" .) }}
</section>
diff --git a/layouts/partials/homepage/emacs.html b/layouts/partials/homepage/emacs.html
new file mode 100644
index 00000000..52c9ea27
--- /dev/null
+++ b/layouts/partials/homepage/emacs.html
@@ -0,0 +1,30 @@
+{{- $file := "emacs-logo.png" }}
+{{- $path := printf "content_images/%s" $file}}
+{{- $img := resources.Get $path }}
+{{- $img1x := $img.Resize "50x webp" }}
+{{- $img2x := $img.Resize "100x webp" }}
+
+<section class="emacs">
+ <h2>Emacs</h2>
+ <div style="display: flow-root; vertical-align: middle;">
+ <img
+ style="float: left; max-width: 20%; margin-right: 10px;"
+ src="{{ $img1x.Permalink }}"
+ srcset="
+ {{ $img1x.Permalink }} 1x,
+ {{ $img2x.Permalink }} 2x
+ "
+ 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>
+ Here you can find some articles I've written about it:
+ </p>
+ </div>
+ {{ partial "menu.html" (dict "menuID" "emacs" "page" .) }}
+
+ </section>