aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuchen Pei <me@ypei.me>2021-06-18 18:10:00 +1000
committerYuchen Pei <me@ypei.me>2021-06-18 18:10:00 +1000
commitf1e60d7a09d1c2b77869435e99603f1c8b41fe71 (patch)
tree05b52254ed9b52f56667fef7520a37d965be56b5
parente9795c6b134eed858ddb73c036ff5c941d7e9838 (diff)
Updated.
-rw-r--r--assets/js/analytics.js13
-rw-r--r--css/default.css2
-rw-r--r--publish.el17
3 files changed, 17 insertions, 15 deletions
diff --git a/assets/js/analytics.js b/assets/js/analytics.js
deleted file mode 100644
index 58f1074..0000000
--- a/assets/js/analytics.js
+++ /dev/null
@@ -1,13 +0,0 @@
-<!-- Matomo -->
- var _paq = _paq || [];
- /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
- _paq.push(['trackPageView']);
- _paq.push(['enableLinkTracking']);
- (function() {
- var u="//analytics.ypei.me/";
- _paq.push(['setTrackerUrl', u+'piwik.php']);
- _paq.push(['setSiteId', '1']);
- var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
- g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
- })();
-<!-- End Matomo Code -->
diff --git a/css/default.css b/css/default.css
index a48c7ba..3195780 100644
--- a/css/default.css
+++ b/css/default.css
@@ -38,7 +38,7 @@ header {
div#content {
width: 39rem;
margin: auto;
- margin-bottom: 3rem;
+ margin-bottom: 2rem;
line-height: 1.6;
}
diff --git a/publish.el b/publish.el
index 664be9a..b1f6659 100644
--- a/publish.el
+++ b/publish.el
@@ -78,6 +78,11 @@ PUB-DIR is when the output will be placed."
(if (equal "../pages/microblog.org" (file-name-nondirectory filename))
(org-html-publish-to-html plist filename pub-dir)))
+(defun my-blog-local-mathjax ()
+ '((path "/js/MathJax.js?config=TeX-AMS-MML_HTMLorMML")
+ (scale "100") (align "center") (indent "2em") (tagside "right")
+ (mathml nil)))
+
(setq org-publish-project-alist
'(("posts"
:base-directory "posts/"
@@ -96,6 +101,7 @@ PUB-DIR is when the output will be placed."
:html-self-link-headlines t
:author ("Yuchen Pei")
:html-postamble me/html-postamble
+ :html-mathjax-options ((path "/js/MathJax.js?config=TeX-AMS-MML_HTMLorMML"))
)
("microposts"
:base-directory "microposts/"
@@ -113,6 +119,7 @@ PUB-DIR is when the output will be placed."
:html-preamble me/html-preamble
:author ("Yuchen Pei")
:html-postamble me/html-postamble
+ :html-mathjax-options ((path "/js/MathJax.js?config=TeX-AMS-MML_HTMLorMML"))
)
("pages"
:base-directory "pages/"
@@ -126,6 +133,7 @@ PUB-DIR is when the output will be placed."
:author ("Yuchen Pei")
:html-postamble me/html-postamble
:html-prefer-user-labels t
+ :html-mathjax-options ((path "/js/MathJax.js?config=TeX-AMS-MML_HTMLorMML"))
)
("css"
:base-directory "css/"
@@ -134,4 +142,11 @@ PUB-DIR is when the output will be placed."
:publishing-function org-publish-attachment
:recursive t
)
- ("all" :components ("posts" "microposts" "pages" "css"))))
+ ("js"
+ :base-directory "js/"
+ :base-extension "js"
+ :publishing-directory "site/js"
+ :publishing-function org-publish-attachment
+ :recursive t
+ )
+ ("all" :components ("posts" "microposts" "pages" "css" "js"))))