From 92d1664eb9d320706c4283bb4856ddfc4696b5d5 Mon Sep 17 00:00:00 2001 From: Yuchen Pei Date: Fri, 15 Apr 2022 16:01:42 +1000 Subject: adding weblabels for js used for comments. --- css/default.css | 4 ++ html-templates/postamble.html | 3 + pages/weblabels.html | 33 +++++++++++ publish.el | 132 ++++++++++++++++++++++++------------------ 4 files changed, 117 insertions(+), 55 deletions(-) create mode 100644 pages/weblabels.html diff --git a/css/default.css b/css/default.css index 96c6a5e..8b8fb1d 100644 --- a/css/default.css +++ b/css/default.css @@ -46,6 +46,10 @@ footer { padding-top: .5rem; border-top-color: grey; border-top-style: solid; +} + +footer > div { + margin: auto; display: flex; justify-content: center; } diff --git a/html-templates/postamble.html b/html-templates/postamble.html index 044cf22..f5f8f7d 100644 --- a/html-templates/postamble.html +++ b/html-templates/postamble.html @@ -1,4 +1,5 @@ diff --git a/pages/weblabels.html b/pages/weblabels.html new file mode 100644 index 0000000..b615578 --- /dev/null +++ b/pages/weblabels.html @@ -0,0 +1,33 @@ + + + +ypei.org - JavaScript License Information + + + + + +

This page tells browsers with LibreJS installed about the licenses of JavaScript files served by this site.

+ +
+ + + + + + + + + + + + + + +
embed.min.jsExpatembed.dev.js
count.min.jsExpatcount.dev.js
+
+ + + + diff --git a/publish.el b/publish.el index 8f101c6..b0fc94a 100644 --- a/publish.el +++ b/publish.el @@ -107,82 +107,104 @@ PUB-DIR is when the output will be placed." :recursive nil :publishing-function org-html-publish-to-html :auto-sitemap t - :section-numbers nil - :sitemap-format-entry me/org-posts-sitemap-format-entry - :sitemap-title "Yuchen's Blog" - :sitemap-sort-files anti-chronologically - :sitemap-filename "../pages/blog.org" - :html-doctype "html5" - :html-head " -" - :html-preamble me/html-preamble - :html-self-link-headlines t - :author ("Yuchen Pei") - :html-postamble me/html-postamble - :html-mathjax-options ((path "/js/mathjax/MathJax.js?config=TeX-AMS_CHTML")) - :html-mathjax-template "" - :htmlized-source t - ) - ("microposts" + :section-numbers nil + :sitemap-format-entry me/org-posts-sitemap-format-entry + :sitemap-title "Yuchen's Blog" + :sitemap-sort-files anti-chronologically + :sitemap-filename "../pages/blog.org" + :html-doctype "html5" + :html-head " + +" + :html-preamble me/html-preamble + :html-self-link-headlines t + :author ("Yuchen Pei") + :html-postamble me/html-postamble-post + :html-mathjax-options ((path "/js/mathjax/MathJax.js?config=TeX-AMS_CHTML")) + :html-mathjax-template "" + :htmlized-source t + ) + ("microposts" :base-directory "microposts" :base-extension "org" :publishing-directory "site/microposts" :recursive t :publishing-function me/org-publish-microblog :auto-sitemap t - :sitemap-format-entry me/org-microposts-sitemap-format-entry - :sitemap-title "Yuchen's Microblog" - :sitemap-sort-files anti-chronologically - :sitemap-filename "../pages/microblog.org" - :html-doctype "html5" - :html-head "" - :html-preamble me/html-preamble - :author ("Yuchen Pei") - :html-postamble me/html-postamble - :html-mathjax-options ((path "/js/mathjax/MathJax.js?config=TeX-AMS_CHTML")) - :html-mathjax-template "" - :htmlized-source t - ) - ("pages" + :sitemap-format-entry me/org-microposts-sitemap-format-entry + :sitemap-title "Yuchen's Microblog" + :sitemap-sort-files anti-chronologically + :sitemap-filename "../pages/microblog.org" + :html-doctype "html5" + :html-head "" + :html-preamble me/html-preamble + :author ("Yuchen Pei") + :html-postamble me/html-postamble + :html-mathjax-options ((path "/js/mathjax/MathJax.js?config=TeX-AMS_CHTML")) + :html-mathjax-template "" + :htmlized-source t + ) + ("pages" :base-directory "pages" :base-extension "org" :publishing-directory "site" :recursive t :publishing-function org-html-publish-to-html - :html-doctype "html5" - :html-head " + :html-doctype "html5" + :html-head " " - :html-preamble me/html-preamble - :author ("Yuchen Pei") - :section-numbers nil - :with-toc nil - :html-postamble me/html-postamble - :html-prefer-user-labels t - :html-mathjax-options ((path "/js/mathjax/MathJax.js?config=TeX-AMS_CHTML")) - :html-mathjax-template "" - :htmlized-source t - ) - ("css" + :html-preamble me/html-preamble + :author ("Yuchen Pei") + :section-numbers nil + :with-toc nil + :html-postamble me/html-postamble + :html-prefer-user-labels t + :html-mathjax-options ((path "/js/mathjax/MathJax.js?config=TeX-AMS_CHTML")) + :html-mathjax-template "" + :htmlized-source t + ) + ("html-pages" + :base-directory "pages" + :base-extension "html" + :publishing-directory "site" + :recursive t + :publishing-function org-publish-attachment + ) + ("css" :base-directory "css" :base-extension "css" :publishing-directory "site/css" :publishing-function org-publish-attachment :recursive t - ) - ("js" + ) + ("js" :base-directory "js" :base-extension "js" :publishing-directory "site/js" :publishing-function org-publish-attachment :recursive t - ) - ("assets" - :base-directory "assets" - :base-extension any - :publishing-directory "site/assets" - :publishing-function org-publish-attachment - :recursive t - ) - ("all" :components ("posts" "microposts" "pages" "css" "js" "assets")))) + ) + ("assets" + :base-directory "assets" + :base-extension any + :publishing-directory "site/assets" + :publishing-function org-publish-attachment + :recursive t + ) + ("all" :components ("posts" "microposts" "pages" "html-pages" "css" "js" "assets")))) -- cgit v1.2.3