summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormms <michal@sapka.me>2024-06-10 23:54:00 +0200
committermms <michal@sapka.me>2024-06-10 23:54:00 +0200
commit0283631c43c46db04e21d5009552d4a9148938e3 (patch)
treecfbb2eefbc61b65c652b7f59eb92d673f167e80a
parent316cbea18afd0b630c0b8ab7b6c7820a6b41afd0 (diff)
feat: web button
-rw-r--r--assets/unix-history/webbutton.pngbin0 -> 12485 bytes
-rw-r--r--content-org/unix-history.org10
-rw-r--r--content/unix-history/_index.md9
-rw-r--r--layouts/shortcodes/image.html5
-rw-r--r--layouts/unix-history/baseof.html9
5 files changed, 31 insertions, 2 deletions
diff --git a/assets/unix-history/webbutton.png b/assets/unix-history/webbutton.png
new file mode 100644
index 0000000..8b79322
--- /dev/null
+++ b/assets/unix-history/webbutton.png
Binary files differ
diff --git a/content-org/unix-history.org b/content-org/unix-history.org
index 146af5a..8a934d8 100644
--- a/content-org/unix-history.org
+++ b/content-org/unix-history.org
@@ -52,6 +52,16 @@ Dune
- [[https://static-dust.klpn.se/][Karl Pettersson]], for pointing date errors about IX/386 and Xenix in Part III
- [[https://github.com/davemq][Dave Marquardt]], for pointing grammar errors in Part III and informing me about existence of Piramid Technologies
+*** Link
+
+If you want to link this site, you can use this button:
+
+#+attr_shortcode: :file webbutton.png
+#+attr_shortcode: :alt A webbutton
+#+attr_shortcode: :class button
+#+begin_image
+noop
+#+end_image
*** Changes
diff --git a/content/unix-history/_index.md b/content/unix-history/_index.md
index 1974316..b8b918f 100644
--- a/content/unix-history/_index.md
+++ b/content/unix-history/_index.md
@@ -42,6 +42,15 @@ Dune
- [Dave Marquardt](https://github.com/davemq), for pointing grammar errors in Part III and informing me about existence of Piramid Technologies
+## Link {#link}
+
+If you want to link this site, you can use this button:
+
+{{< image class="button" alt="A webbutton" file="webbutton.png" >}}
+noop
+{{< /image >}}
+
+
## Changes {#changes}
- _2024-06-10_: Added artwork; fixes in Part 3
diff --git a/layouts/shortcodes/image.html b/layouts/shortcodes/image.html
index d538fde..a03ded6 100644
--- a/layouts/shortcodes/image.html
+++ b/layouts/shortcodes/image.html
@@ -28,10 +28,11 @@
{{- $img_raw := $img.Resize $imgproc }}
<!-- Resulting HTML -->
-<figure>
+<figure
+ class="{{ $class }}"
+>
<a href="{{ $img_raw.Permalink }}">
<img
- class="{{ $class }}"
alt="{{ $alt }}"
src="{{ $img1x.Permalink }}"
srcset="
diff --git a/layouts/unix-history/baseof.html b/layouts/unix-history/baseof.html
index b5390b9..0ad985c 100644
--- a/layouts/unix-history/baseof.html
+++ b/layouts/unix-history/baseof.html
@@ -141,6 +141,15 @@
margin: 0;
padding: 0;
}
+
+ .button {
+ text-align: left;
+ }
+ .button img {
+ width: 88px;
+ padding-left: 44px;
+ }
+
</style>
</head>