diff options
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/index.html | 22 | ||||
-rw-r--r-- | layouts/partials/homepage/nav.html | 28 | ||||
-rw-r--r-- | layouts/shortcodes/rating.html | 4 |
3 files changed, 31 insertions, 23 deletions
diff --git a/layouts/_default/index.html b/layouts/_default/index.html index 8dba7d3..f192411 100644 --- a/layouts/_default/index.html +++ b/layouts/_default/index.html @@ -1,17 +1,6 @@ {{ define "main" }} -<h2>About</h2> -Hey! I'm Michał Sapka, a computer programmer living in Kraków, Poland. This website is not dedicated to any particular one thing. Instead, I write whatever interests me most at the moment. No content here is auto-generated, so any bugs, problems, or controversies are entirely on me! -<br><br> -<nav class="personal"> - <a href="/me/contact/">Contact</a> // - <a href="/me/uses/">Uses</a> // - <a href="/about/">About</a> // - <a href="/links/">Links</a> // - <a href="/me/now/">Now</a> -</nav> - -<BR> +{{ partial "partials/homepage/nav" . }} <h2>Recent updates and publications </h2> @@ -28,15 +17,6 @@ Hey! I'm Michał Sapka, a computer programmer living in Kraków, Poland. This we {{ partial "partials/homepage/bsd.html" . }} {{ partial "partials/homepage/emacs.html" . }} {{ partial "partials/homepage/startrek.html" . }} -<h2>Sections</h2> - -<nav> - <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="/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> -</nav> - {{ partial "partials/homepage/buttons.html" . }} {{ partial "partials/homepage/nameplate.html" . }} diff --git a/layouts/partials/homepage/nav.html b/layouts/partials/homepage/nav.html new file mode 100644 index 0000000..272488a --- /dev/null +++ b/layouts/partials/homepage/nav.html @@ -0,0 +1,28 @@ +{{- $file := "me.png" }} +{{- $path := printf "content_images/%s" $file}} +{{- $img := resources.Get $path }} +{{- $img1x := $img.Resize "150x webp" }} +{{- $img2x := $img.Resize "300x webp" }} <!-- --> + +<section style="display: flow-root"> + <h2>About</h2> + + Hey! I'm Michał Sapka, a computer programmer living in Kraków, Poland. + This website is not dedicated to any particular one thing. + Instead, I write whatever interests me most at the moment. + <img + alt="Mihal" + style="float: right; max-width: 20%;" + src="{{ $img1x.Permalink }}" + srcset=" + {{ $img1x.Permalink }} 1x, + {{ $img2x.Permalink }} 2x + " + width="{{ $img1x.Width }}" + height="{{ $img1x.Height }}" + > + No content here is auto-generated, so any bugs, problems, or controversies are entirely on me! + + {{ partial "menu.html" (dict "menuID" "main-nav" "page" .) }} +</section> + diff --git a/layouts/shortcodes/rating.html b/layouts/shortcodes/rating.html index e6159ae..78a57fd 100644 --- a/layouts/shortcodes/rating.html +++ b/layouts/shortcodes/rating.html @@ -2,7 +2,7 @@ {{- $file := .Get 1 }} {{- $caption := .Inner }} -<aside class="rating-box float-right"> +<aside class="rating-box"> <div class="poster"> {{- $path := printf "content_images/%s" $file}} @@ -20,8 +20,8 @@ width="{{ $img1x.Width }}" height="{{ $img1x.Height }}" > - </div> + <div class="rating"> My rating:<br> |