'((link . shtarkov.net-link)))
(defun shtarkov.net-head (title)
- `(:head
- (:meta (@ :charset "UTF-8"))
- (:meta (@ :name "viewport" :content "width=device-width,initial-scale=1"))
- (:link (@ :rel "stylesheet" :type "text/css" :href "/main.css"))
- (:title ,title)))
+ (let ((x 1))
+ `(:head
+ (:meta (@ :charset "UTF-8"))
+ (:meta (@ :name "viewport" :content "width=device-width,initial-scale=1"))
+ (:link (@ :rel "stylesheet" :type "text/css" :href "/main.css"))
+ (:title ,title))))
(setq shtarkov.net-footer
'(:div/footer
,(format "goto-char: %s" beg)))))
((string= type "file")
(or
- ;; ./assets/images/image-1.png --> /images/image-1.png
- ;; ./public/blog/page-1.md --> /blog/page-1.md
- (and (string-match "\\`\\./\\(assets\\|public\\)" path)
+ ;; [./]assets/images/image-1.png --> /images/image-1.png
+ ;; [./]public/blog/page-1.md --> /blog/page-1.md
+ (and (string-match "\\`\\(\\./\\)?\\(assets\\|public\\)" path)
(replace-match "" nil nil path))
(let ((beg (org-element-property :begin link)))
(signal 'one-link-broken
:custom_id: /
:end:
-[[file:./assets/cat.png][Cat]]
+[[file:assets/cat.png][Cat]]
* Emacs
:properties:
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]]
+[[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: