summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYann Herklotz <git@yannherklotz.com>2022-03-21 16:13:58 +0000
committerYann Herklotz <git@yannherklotz.com>2022-03-21 16:13:58 +0000
commitb0abe49db739a0a8977e8bd7f2f00a269c5707ff (patch)
tree0703e6a7c20962b42c12679484cf6359d085d89d
parent6a1fc15e06500add5a560832559df991eda77be5 (diff)
downloadymhg-notes-b0abe49db739a0a8977e8bd7f2f00a269c5707ff.tar.gz
ymhg-notes-b0abe49db739a0a8977e8bd7f2f00a269c5707ff.zip
Update main file and publishing file
-rw-r--r--.gitignore2
-rw-r--r--notes/5c6faa9f-2ae4-4dda-83a6-00f283ce2ea3.org2
-rw-r--r--publish.el57
3 files changed, 43 insertions, 18 deletions
diff --git a/.gitignore b/.gitignore
index 5ff3957..ba492db 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,4 @@
notes/index.org
public/
+
+*.html
diff --git a/notes/5c6faa9f-2ae4-4dda-83a6-00f283ce2ea3.org b/notes/5c6faa9f-2ae4-4dda-83a6-00f283ce2ea3.org
index 3c38be3..3f63518 100644
--- a/notes/5c6faa9f-2ae4-4dda-83a6-00f283ce2ea3.org
+++ b/notes/5c6faa9f-2ae4-4dda-83a6-00f283ce2ea3.org
@@ -1,5 +1,5 @@
#+title: Vericert Scheduling Results
-#+html_head_extra: <style>body{max-width:90rem}.title{text-align:center;font-size:2.5em}.outline-text-2{display:flex;flex-direction: row;flex-wrap:wrap}table{margin-top:2rem;margin-right:2rem}img{max-width:100%}</style>
+#+html_head_extra: <style>.outline-text-2{display:flex;flex-direction: row;flex-wrap:wrap}</style>
* Plots
:PROPERTIES:
diff --git a/publish.el b/publish.el
index 734c41b..edc53da 100644
--- a/publish.el
+++ b/publish.el
@@ -9,15 +9,7 @@
(require 'oc-basic)
(require 'cl-lib)
-(setq org-html-divs '((preamble "header" "header")
- (content "article" "content")
- (postamble "footer" "postamble"))
- org-html-container-element "section"
- org-html-metadata-timestamp-format "%Y-%m-%d"
- org-html-checkbox-type 'html
- org-html-html5-fancy t
- org-html-doctype "html5"
- org-html-coding-system 'utf-8-unix)
+(setq org-html-coding-system 'utf-8-unix)
(defconst ymhg-notes-dir (file-name-directory (or load-file-name buffer-file-name)))
@@ -35,15 +27,46 @@
:exclude (regexp-opt '("README" "draft"))
:auto-sitemap t
:sitemap-filename (concat ymhg-notes-dir "notes/index.org")
-;; :sitemap-file-entry-format "%d *%t*"
+ :sitemap-file-entry-format "%d *%t*"
:sitemap-title "Yann's Notes"
-;; :html-head-extra "<link rel=\"icon\" type=\"image/png\" href=\"/favicon.png\"/>
-;;<link rel=\"stylesheet\" type=\"text/css\" href=\"/css/org.css\"/>"
- :html-postamble " <ul>
- <li>© 2019-2022 <a href=\"https://yannherklotz.com\">Yann Herklotz</a></li>
- <li><a href=\"https://creativecommons.org/licenses/by-sa/4.0/\">CC BY-SA 4.0</a></li>
- <li><a href=\"https://sr.ht/~ymherklotz/emacs-zettelkasten\">org-zettelkasten</a></li>
- </ul>")
+ :html-html5-fancy t
+ :html-divs '((preamble "header" "header")
+ (content "article" "content")
+ (postamble "footer" "postamble"))
+ :html-container "section"
+ :html-metadata-timestamp-format "%Y-%m-%d"
+ :html-checkbox-type 'html
+ :html-doctype "html5"
+ :html-head-include-default-style nil
+ :html-table-caption-above t
+ :html-postamble "<ul>
+<li>© 2022 <a href=\"https://yannherklotz.com\">Yann Herklotz</a></li>
+<li><a href=\"https://creativecommons.org/licenses/by-sa/4.0/\">CC BY-SA 4.0</a></li></ul>"
+ :html-head "<style>
+body { max-width:90rem; }
+.title {
+ text-align:center;
+ font-size:2.5em;
+}
+table { border-collapse: collapse; }
+img { max-width:100%; }
+table {
+ margin-top:2rem;
+ margin-right:2rem;
+}
+table > :is(thead, tbody) > tr > :is(th, td) {
+ padding: 3px;
+ text-align: left;
+}
+table > thead > tr > :is(th, td) {
+ border-top: 2px solid;
+ border-bottom: 1px solid;
+}
+table > tbody > tr:last-child > :is(th, td) { border-bottom: 2px solid; }
+#postamble { padding: 1.5rem 0; text-align: center; }
+#postamble ul li { display: inline-block; }
+#postamble ul { padding: 0; }
+#postamble li { margin-right: 2em; }</style>")
(list "ymhg-notes-static"
:base-directory (concat ymhg-notes-dir "notes/static")
:include '()