From: Christian Shtarkov Date: Mon, 16 Dec 2024 23:25:52 +0000 (+0000) Subject: Add more cat pictures, add poem X-Git-Url: https://shtarkov.net/gitweb/?a=commitdiff_plain;h=17bd26fbc5621f04641eb37470d4446436734471;p=shtarkov.net.git Add more cat pictures, add poem --- diff --git a/assets/cat/cat6.jpg b/assets/cat/cat6.jpg new file mode 100644 index 0000000..fd4076e Binary files /dev/null and b/assets/cat/cat6.jpg differ diff --git a/assets/cat/cat7.jpg b/assets/cat/cat7.jpg new file mode 100644 index 0000000..5a08758 Binary files /dev/null and b/assets/cat/cat7.jpg differ diff --git a/assets/main.css b/assets/main.css index 5edc5c8..aa3158a 100644 --- a/assets/main.css +++ b/assets/main.css @@ -146,6 +146,20 @@ video { .one-blockquote > p:last-child { text-align: right; margin-bottom: 0; + font-style: italic; +} + +.poem1 > p:nth-child(1) { + margin-left: 10em; +} + +.poem1 > p:nth-child(2) { + text-align: center; +} + +.poem1 > p:nth-child(3) { + text-align: right; + margin-right: 10em; } .one-hl-results { diff --git a/onerc.el b/onerc.el index cf1dd00..614848d 100644 --- a/onerc.el +++ b/onerc.el @@ -1,7 +1,8 @@ ;; -*- lexical-binding: t; -*- (org-export-define-derived-backend 'shtarkov.net-ox 'one-ox :translate-alist - '((link . shtarkov.net-link))) + '((quote-block . shtarkov.net-quote-block) + (link . shtarkov.net-link))) (defun shtarkov.net-head (title) (let ((x 1)) @@ -111,6 +112,14 @@ ,content)) ,shtarkov.net-footer)))) +(defun shtarkov.net-quote-block (quote-block contents _info) + "Transcode a QUOTE-BLOCK element from Org to HTML. + +CONTENTS holds the contents of the block." + (let ((style-class + (org-export-read-attribute :attr_html quote-block :poem-style))) + (format "
%s
" style-class contents))) + (defun shtarkov.net-link (link desc info) "Transcode a LINK object from Org to HTML. DESC is the description part of the link, or the empty string. diff --git a/shtarkov.net.org b/shtarkov.net.org index e01fb7e..acc1513 100644 --- a/shtarkov.net.org +++ b/shtarkov.net.org @@ -18,6 +18,25 @@ :custom_id: /cat/ :end: +#+attr_html: :poem-style poem1 +#+begin_quote +I'm a cat. + +What a wonderful existence! + +Meow, meow. + +Nezumi +#+end_quote + +[[file:assets/cat/cat7.jpg]] +[[file:assets/cat/cat1.jpg]] +[[file:assets/cat/cat2.jpg]] +[[file:assets/cat/cat4.jpg]] +[[file:assets/cat/cat3.jpg]] +[[file:assets/cat/cat6.jpg]] +[[file:assets/cat/cat5.jpg]] + #+begin_quote A good movie is precisely the one in which the camera disappears, when we are no longer aware of watching a movie, while an avant-garde film @@ -32,12 +51,6 @@ sense, the cat is avant-garde, it is more interested in the medium Julio Cabrera #+end_quote -[[file:assets/cat/cat1.jpg]] -[[file:assets/cat/cat2.jpg]] -[[file:assets/cat/cat3.jpg]] -[[file:assets/cat/cat4.jpg]] -[[file:assets/cat/cat5.jpg]] - * Transpose regions :properties: :one: shtarkov.net-article