aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--css/default.css4
-rw-r--r--html-templates/postamble.html3
-rw-r--r--pages/weblabels.html33
-rw-r--r--publish.el132
4 files changed, 117 insertions, 55 deletions
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 @@
<footer>
+ <div>
<a href="https://www.gnu.org/"><img src="/assets/gnu-linux-banner.png" title="Powered by GNU/Linux"/></a>
<a href="https://www.gnu.org/savannah-checkouts/gnu/emacs/emacs.html"><img src="/assets/Emacs-logo.svg" title="Edited with GNU Emacs"/></a>
<a href="https://orgmode.org/manual/Publishing.html"><img src="/assets/Org-mode-unicorn.svg" title="Made with Org Mode"/></a>
@@ -8,4 +9,6 @@
<a href="https://creativecommons.org/licenses/by-sa/4.0/"><img src="/assets/CC-BY-SA.svg" title="Licensed under CC BY-SA 4.0"/></a>
<a href="https://www.gnu.org/licenses/fdl-1.3.html"><img src="/assets/gfdl-logo-med.png" title="Licensed under GFDLv1.3+"/></a>
<a href="https://commons.wikimedia.org/wiki/File:Copying_is_not_theft.ogv"><img src="/assets/Anti_pirate_icon.png" title="Anti-piracy notice: please do not attack ships when browsing this website! (h/t: lxo)"/></a>
+ </div>
+ <div><a href="/weblabels.html" rel="jslicense">JavaScript license information</a></div>
</footer>
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 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
+<head>
+<title>ypei.org - JavaScript License Information</title>
+</head>
+
+<body>
+
+
+<p>This page tells browsers with <a href="https://www.gnu.org/software/librejs/">LibreJS</a> installed about the licenses of JavaScript files served by this site.</p>
+
+<div>
+<style type="text/css">#jslicense-labels1 td, #jslicense-labels1 th { padding: 5px; border-style: solid; border-width: 1px;}
+</style>
+<table id="jslicense-labels1">
+ <tbody>
+ <tr>
+ <td><a href="/comments/js/embed.min.js">embed.min.js</a></td>
+ <td><a href="http://www.jclark.com/xml/copying.txt">Expat</a></td>
+ <td><a href="/comments/js/embed.dev.js">embed.dev.js</a></td>
+ </tr>
+ <tr>
+ <td><a href="/comments/js/count.min.js">count.min.js</a></td>
+ <td><a href="http://www.jclark.com/xml/copying.txt">Expat</a></td>
+ <td><a href="/comments/js/count.dev.js">count.dev.js</a></td>
+ </tr>
+ </tbody>
+</table>
+</div>
+
+
+</body>
+</html>
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 "<link rel='stylesheet' href='../css/default.css' type='text/css'/>
-<link rel='alternate' title=\"Yuchen's blog\" href='/blog-feed.xml' type='application/rss+xml'>"
- :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 "<script type=\"text/javascript\" src=\"%PATH\"></script>"
- :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 "<link rel='stylesheet' href='../css/default.css' type='text/css'/>
+<link rel='alternate' title=\"Yuchen's blog\" href='/blog-feed.xml' type='application/rss+xml'>
+<script data-isso=\"/comments/\"
+ data-isso-css=\"true\"
+ data-isso-lang=\"en\"
+ data-isso-reply-to-self=\"false\"
+ data-isso-require-author=\"true\"
+ data-isso-require-email=\"true\"
+ data-isso-max-comments-top=\"10\"
+ data-isso-max-comments-nested=\"5\"
+ data-isso-reveal-on-click=\"5\"
+ data-isso-avatar=\"true\"
+ data-isso-avatar-bg=\"#f0f0f0\"
+ data-isso-avatar-fg=\"#9abf88 #5698c4 #e279a3 #9163b6 ...\"
+ data-isso-vote=\"true\"
+ data-vote-levels=\"\"
+ src=\"/comments/js/embed.min.js\"></script>"
+ :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 "<script type=\"text/javascript\" src=\"%PATH\"></script>"
+ :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 "<link rel='stylesheet' href='../css/default.css' type='text/css'/>"
- :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 "<script type=\"text/javascript\" src=\"%PATH\"></script>"
- :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 "<link rel='stylesheet' href='../css/default.css' type='text/css'/>"
+ :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 "<script type=\"text/javascript\" src=\"%PATH\"></script>"
+ :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 "<link rel='stylesheet' href='../css/default.css' type='text/css'/>
+ :html-doctype "html5"
+ :html-head "<link rel='stylesheet' href='../css/default.css' type='text/css'/>
<link rel='stylesheet' href='../css/page.css' type='text/css'/>
<link rel='alternate' title=\"Yuchen's blog\" href='/blog-feed.xml' type='application/rss+xml'>
<link rel='alternate' title=\"Yuchen's microblog\" href='/microblog-feed.xml' type='application/rss+xml'>"
- :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 "<script type=\"text/javascript\" src=\"%PATH\"></script>"
- :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 "<script type=\"text/javascript\" src=\"%PATH\"></script>"
+ :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"))))