.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 {
;; -*- 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))
,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 "<blockquote class=\"one-blockquote %s\">%s</blockquote>" 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.
: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
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