summaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/index.html3
-rw-r--r--layouts/partials/homepage/bsd.html25
-rw-r--r--layouts/partials/homepage/emacs.html30
3 files changed, 43 insertions, 15 deletions
diff --git a/layouts/_default/index.html b/layouts/_default/index.html
index 9dc6df3c..fcdcb251 100644
--- a/layouts/_default/index.html
+++ b/layouts/_default/index.html
@@ -29,6 +29,7 @@ Hey! I'm Michał Sapka, a computer programmer living in Kraków, Poland. This we
<a href="/blog/">&raquo; Go to blog</a></p>
{{ partial "partials/homepage/bsd.html" . }}
+ {{ partial "partials/homepage/emacs.html" . }}
<h2>Sections</h2>
@@ -36,7 +37,7 @@ Hey! I'm Michał Sapka, a computer programmer living in Kraków, Poland. This we
<P><a class="sec-link" href="/blog/"><b>Blog</b>: my shorter publications withount any theme. You can treat it as E/N site.</a> </p>
<P><a class="sec-link" href="/articles/"><b>Articles</b>: longer publications that don't fit blog or any other category.</a> </p>
- <P><a class="sec-link" href="/emacs/"><b>C-X Emacs</b>: this is my Emacs. There are many like it, but this one is mine. My Emacs is my best friend. It is my life.</a> </p>
+
<P><a class="sec-link" href="/star-trek/"><b>Star Trek fan site</b>: my little shrine to the greatest american Sci-Fi that has ever graced our screens.</a> </p>
<P><a class="sec-link" href="/funnies/"><b>Funnies</b>: A small, curated collection of things I found funny or ammusing.</a> </p>
<p><a class="sec-link" href="/git/"><b>Version control system</b> : My little code repository. I don't expect to cooporate on any of those, so it's just stagit.</a></p>
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>