-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsli-publish.el
59 lines (52 loc) · 2.68 KB
/
sli-publish.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
;; the variable org-html-metadata-timestamp-format
;; is not used for %d in org version 8.2.10
;; (setq org-export-date-timestamp-format "%Y-%m-%d")
;; <link rel=\"apple-touch-icon-precomposed\" href=\"static/favicon-152.png\">
;; <link rel=\"msapplication-TitleImage\" href=\"static/favicon-144.png\">
;; <link rel=\"msapplication-TitleColor\" href=\"#0141ff\">
;; <script src=\"static/katex.min.js\"></script>
;; <script src=\"static/auto-render.min.js\"></script>
;; <link rel=\"stylesheet\" href=\"static/katex.min.css\">
;; <script>document.addEventListener (\"DOMContentLoaded\", function() { renderMathInElement(document.body); });</script>
;; ((setq org-static-blog-page-header
;; "<meta name=\"author\" content=\"Stefan Litsche\">
;; <meta name=\"referrer\" content=\"no-referrer\">
;; <link href= \"css/style.css\" rel=\"stylesheet\" type=\"text/css\" />
;; <link rel=\"icon\" href=\"/img/favicon.ico\">
;; <meta name=\"msapplication-TileColor\" content=\"#ffffff\">
;; <meta name=\"msapplication-TileImage\" content=\"/img/ms-icon-144x144.png\">
;; <link rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/img/android-icon-192x192.png\">
;; <meta name=\"theme-color\" content=\"#ffffff\">
;; <meta http-equiv=\"content-type\" content=\"application/xhtml+xml; charset=UTF-8\">
;; <meta name=\"viewport\" content=\"initial-scale=1,width=device-width,minimum-scale=1\">")
(setq sli-biosoft-header
(concat "<div id=\"header\">"
"<h1>Stefan Litsche</h1>"
"<ul>"
"<li><a href=\"/\">Home</a></li>"
;; "<li><a href=\"/articles.html\">Blog</a></li>"
;; "<li><a href=\"/projects/\">Projects</a></li>"
"<li><a href=\"/impressum.html\">Impressum</a></li>"
"<li><a href=\"/rss.xml\">RSS</a></li>"
"</ul>"
"</div>"))
(setq sli-biosoft-footer
(concat "<p>"
"Created: %d "
"Last modified: %C "
"Handcrafted using Emacs and Orgmode"
"</p>"))
;;; org-static-blog
(use-package org-static-blog
:load-path "~/.emacs.d/org-static-blog/"
:init
(setq org-static-blog-publish-title "biosoft.de")
(setq org-static-blog-publish-url "https://biosoft.de/")
(setq org-static-blog-publish-directory "~/work/git/biosoft/html/")
(setq org-static-blog-posts-directory "~/work/git/biosoft/src/")
(setq org-static-blog-drafts-directory "~/work/git/biosoft/drafts/")
(setq org-static-blog-enable-tags t)
(setq org-export-with-toc nil)
(setq org-export-with-section-numbers nil)
;; (setq org-static-blog-page-preamble sli-biosoft-header)
(setq org-static-blog-page-postamble sli-biosoft-footer)))