diff options
-rw-r--r-- | content-org/brain-rot.org | 8 | ||||
-rw-r--r-- | content-org/bsd.org | 2 | ||||
-rw-r--r-- | content/brain-rot/discworld/interesting-times.md | 4 | ||||
-rw-r--r-- | content/bsd/why-not-bsd.md | 2 | ||||
-rw-r--r-- | layouts/shortcodes/rating.html | 34 | ||||
-rw-r--r-- | resources/_gen/images/content_images/pratchett-interesting-times_huf4e811d97787b779f2fb6c039310b6af_317164_160x0_resize_q75_h2_box.webp | bin | 0 -> 19742 bytes | |||
-rw-r--r-- | resources/_gen/images/content_images/pratchett-interesting-times_huf4e811d97787b779f2fb6c039310b6af_317164_170x0_resize_q75_h2_box.webp | bin | 0 -> 22810 bytes | |||
-rw-r--r-- | resources/_gen/images/content_images/pratchett-interesting-times_huf4e811d97787b779f2fb6c039310b6af_317164_340x0_resize_q75_h2_box.webp | bin | 0 -> 83586 bytes |
8 files changed, 42 insertions, 8 deletions
diff --git a/content-org/brain-rot.org b/content-org/brain-rot.org index 9aef76c..dd2e8ea 100644 --- a/content-org/brain-rot.org +++ b/content-org/brain-rot.org @@ -790,7 +790,7 @@ CLOSED: [2024-02-13 Tue 21:06] :PROPERTIES: :EXPORT_FILE_NAME: interesting-times :EXPORT_HUGO_CUSTOM_FRONT_MATTER: :abstract A very short review -:EXPORT_HUGO_PAIRED_SHORTCODES: img-r +:EXPORT_HUGO_PAIRED_SHORTCODES: img-r rating :EXPORT_HUGO_MENU: :menu "brain-rot" :EXPORT_HUGO_CUSTOM_FRONT_MATTER+: :aliases '(/blog/2024/interesting-times/) :END: @@ -810,10 +810,10 @@ Cohen the barbarian hero, five foot tall in his surgical sandals, who has had a ...and a very special butterfly. #+end_quote -#+attr_shortcode: "pratchett-interesting-times.jpg" -#+begin_img-r +#+attr_shortcode: 3.75 "pratchett-interesting-times.jpg" +#+begin_rating Cover -#+end_img-r +#+end_rating I am, what one could call, an old school /nerd/. All I care about are old operating systems, ancient editors and old SCIFI[fn:manga] Ah, and some text based game where you are a cute "@". diff --git a/content-org/bsd.org b/content-org/bsd.org index d402e88..542a8dc 100644 --- a/content-org/bsd.org +++ b/content-org/bsd.org @@ -30,7 +30,7 @@ Changing GNU/Linux distribution can be done on a whim, as underneath all of that With BSDs it's not the same. One should try to understand the downsides, as not to waste the next 20 years exploring an OS that simply is not a good fit. -All BSD are much less popular than BSD/Linux[fn:otheros], and with this comes the most pressing downsides. +All BSD are much less popular than GNU/Linux[fn:otheros], and with this comes the most pressing downsides. The support from hardware vendors is, at the very least, problematic. You will have problems with recently released components; most likely your WiFi card will not work. Your graphic card may have drivers, but they may work much slower. diff --git a/content/brain-rot/discworld/interesting-times.md b/content/brain-rot/discworld/interesting-times.md index 0247dcd..c812943 100644 --- a/content/brain-rot/discworld/interesting-times.md +++ b/content/brain-rot/discworld/interesting-times.md @@ -27,9 +27,9 @@ Cover blurp: > > ...and a very special butterfly. -{{< img-r "pratchett-interesting-times.jpg" >}} +{{< rating 3.75 "pratchett-interesting-times.jpg" >}} Cover -{{< /img-r >}} +{{< /rating >}} I am, what one could call, an old school _nerd_. All I care about are old operating systems, ancient editors and old SCIFI[^fn:1] diff --git a/content/bsd/why-not-bsd.md b/content/bsd/why-not-bsd.md index d27cbfe..874bff9 100644 --- a/content/bsd/why-not-bsd.md +++ b/content/bsd/why-not-bsd.md @@ -16,7 +16,7 @@ Changing GNU/Linux distribution can be done on a whim, as underneath all of that With BSDs it's not the same. One should try to understand the downsides, as not to waste the next 20 years exploring an OS that simply is not a good fit. -All BSD are much less popular than BSD/Linux[^fn:1], and with this comes the most pressing downsides. +All BSD are much less popular than GNU/Linux[^fn:1], and with this comes the most pressing downsides. The support from hardware vendors is, at the very least, problematic. You will have problems with recently released components; most likely your WiFi card will not work. Your graphic card may have drivers, but they may work much slower. diff --git a/layouts/shortcodes/rating.html b/layouts/shortcodes/rating.html new file mode 100644 index 0000000..e6159ae --- /dev/null +++ b/layouts/shortcodes/rating.html @@ -0,0 +1,34 @@ +{{- $rating := .Get 0 }} +{{- $file := .Get 1 }} +{{- $caption := .Inner }} + +<aside class="rating-box float-right"> + <div class="poster"> + + {{- $path := printf "content_images/%s" $file}} + {{- $img := resources.Get $path }} + {{- $img1x := $img.Resize "170x webp" }} + {{- $img2x := $img.Resize "340x webp" }} + + <img + alt="{{ $caption }}" + src="{{ $img1x.Permalink }}" + srcset=" + {{ $img1x.Permalink }} 1x, + {{ $img2x.Permalink }} 2x + " + width="{{ $img1x.Width }}" + height="{{ $img1x.Height }}" + > + + </div> + <div class="rating"> + My rating:<br> + + {{- range $i, $sequence := (seq 20) }} + {{- if le (mul $sequence 25) (mul $rating 100)}}◾{{- else}}◽{{- end }} + {{- end }} + <br> + <b>{{ $rating }}/5</b> + </div> +</aside> diff --git a/resources/_gen/images/content_images/pratchett-interesting-times_huf4e811d97787b779f2fb6c039310b6af_317164_160x0_resize_q75_h2_box.webp b/resources/_gen/images/content_images/pratchett-interesting-times_huf4e811d97787b779f2fb6c039310b6af_317164_160x0_resize_q75_h2_box.webp Binary files differnew file mode 100644 index 0000000..69aff91 --- /dev/null +++ b/resources/_gen/images/content_images/pratchett-interesting-times_huf4e811d97787b779f2fb6c039310b6af_317164_160x0_resize_q75_h2_box.webp diff --git a/resources/_gen/images/content_images/pratchett-interesting-times_huf4e811d97787b779f2fb6c039310b6af_317164_170x0_resize_q75_h2_box.webp b/resources/_gen/images/content_images/pratchett-interesting-times_huf4e811d97787b779f2fb6c039310b6af_317164_170x0_resize_q75_h2_box.webp Binary files differnew file mode 100644 index 0000000..0a8d40f --- /dev/null +++ b/resources/_gen/images/content_images/pratchett-interesting-times_huf4e811d97787b779f2fb6c039310b6af_317164_170x0_resize_q75_h2_box.webp diff --git a/resources/_gen/images/content_images/pratchett-interesting-times_huf4e811d97787b779f2fb6c039310b6af_317164_340x0_resize_q75_h2_box.webp b/resources/_gen/images/content_images/pratchett-interesting-times_huf4e811d97787b779f2fb6c039310b6af_317164_340x0_resize_q75_h2_box.webp Binary files differnew file mode 100644 index 0000000..c6724f1 --- /dev/null +++ b/resources/_gen/images/content_images/pratchett-interesting-times_huf4e811d97787b779f2fb6c039310b6af_317164_340x0_resize_q75_h2_box.webp |