aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuchen Pei <me@ypei.me>2021-06-24 19:14:35 +1000
committerYuchen Pei <me@ypei.me>2021-06-24 19:14:35 +1000
commitcac1ef2a1adaa42eca9d9138a8cf4e1bcaa0b5e3 (patch)
treea331feffe461a6b74ffc60264524326d18e954eb
parente9383423398b1dda9a3d5be45c7a029d200f1d87 (diff)
got some banners etc.
-rw-r--r--assets/CC-BY-SA.svg22
-rw-r--r--assets/feed-icon.svg18
-rw-r--r--assets/git_icon.svg15
-rw-r--r--assets/gnubanner-2.pngbin0 -> 2907 bytes
-rw-r--r--html-templates/postamble.html8
-rw-r--r--publish.el2
6 files changed, 60 insertions, 5 deletions
diff --git a/assets/CC-BY-SA.svg b/assets/CC-BY-SA.svg
new file mode 100644
index 0000000..2e27cbf
--- /dev/null
+++ b/assets/CC-BY-SA.svg
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'>
+<svg enable-background="new 0 0 570 200" version="1.1" viewBox="0 0 570 200" xmlns="http://www.w3.org/2000/svg">
+ <style type="text/css">.st0{fill:#ABB1AA;} .st1{fill:#FFFFFF;} .st2{fill:#FFFFFF;stroke:#000000;stroke-width:14;stroke-miterlimit:10;}</style>
+ <path class="st0" d="m560 197.5h-550c-4.2 0-7.5-3.4-7.5-7.5v-180c0-4.2 3.4-7.5 7.5-7.5h550c4.2 0 7.5 3.4 7.5 7.5v180c0 4.1-3.4 7.5-7.5 7.5z"/>
+ <path d="M560,0H10C4.5,0,0,4.5,0,10v180c0,5.5,4.5,10,10,10h550c5.5,0,10-4.5,10-10V10C570,4.5,565.5,0,560,0z M10,6h550 c2.2,0,4,1.8,4,4v130H6V10C6,7.8,7.8,6,10,6z"/>
+ <circle class="st0" cx="98" cy="93" r="86.5"/>
+ <path class="st1" d="m290.8 167.3c3.3-1.6 5-3.8 5-6.5 0-2.9-1.2-5.1-3.5-6.6s-5.5-2.3-9.6-2.3c-2.1 0-5.9 0.1-11.2 0.3v34.7h12.1c4.3 0 7.8-0.9 10.5-2.8s4.1-4.4 4.1-7.5c-0.1-4.7-2.5-7.8-7.4-9.3zm-12.3-10.2c1.6-0.1 2.9-0.1 4-0.1 4.1 0 6.2 1.3 6.2 4 0 3-2.3 4.5-6.8 4.5-1.2 0-2.3 0-3.4-0.1v-8.3zm10.2 23.4c-1.4 0.9-3.7 1.4-6.8 1.4-0.9 0-2-0.1-3.4-0.2v-11.5c1.7 0 2.8-0.1 3.5-0.1 3.3 0 5.6 0.4 6.9 1.4 1.3 0.9 2 2.3 2 4.3-0.1 2.2-0.8 3.8-2.2 4.7z"/>
+ <polygon class="st1" points="324.1 152.2 314.7 167 305.4 152.2 297.9 152.2 311.2 172.7 311.2 186.9 318.2 186.9 318.2 172.7 331.5 152.2"/>
+ <path class="st1" d="m427.3 170.1c-1.2-1-3.1-2-5.7-3.1-5-2.2-7.5-4.2-7.5-6.2 0-1.2 0.4-2.2 1.3-2.9 0.9-0.8 2.1-1.1 3.8-1.1 2.7 0 5.3 0.8 7.8 2.3l2.1-5.3c-2.1-1.5-5.5-2.3-10.1-2.3-3.5 0-6.4 0.9-8.6 2.7s-3.4 4-3.4 6.7c0 1.4 0.3 2.8 0.8 3.9 0.6 1.2 1.4 2.2 2.4 3.1 1.1 0.9 3.1 2 6.1 3.3s5 2.5 6 3.6 1.5 2.2 1.5 3.4c0 2.5-2.1 3.8-6.2 3.8-2.7 0-5.4-0.9-8.2-2.6l-2.6 5.5c3 1.7 6.3 2.5 10 2.5 4.2 0 7.6-0.9 10.2-2.7 2.5-1.8 3.8-4.1 3.8-7 0-1.6-0.3-3-0.9-4.3-0.5-1.3-1.4-2.4-2.6-3.3z"/>
+ <path class="st1" d="m451.1 151.5h-3.1l-15.8 35.3h7.8l2.8-7.1h13.5l2.9 7.1h7.7l-15.8-35.3zm-6.3 23.5 4.7-12.9 4.7 12.9h-9.4z"/>
+ <circle class="st1" cx="300" cy="70.6" r="50"/>
+ <path d="m300 25.6c24.8 0 45 20.2 45 45s-20.2 45-45 45-45-20.2-45-45 20.2-45 45-45m0-10c-30.4 0-55 24.6-55 55s24.6 55 55 55 55-24.6 55-55-24.6-55-55-55z"/>
+ <circle cx="300" cy="43" r="7.9"/>
+ <path d="m313.2 57.9c0-0.8 0.1-2.3-1.1-3.5-1.1-1.1-2.7-1.1-3.5-1.1h-17.3c-0.8 0-2.3-0.1-3.5 1.1-1.1 1.1-1.1 2.7-1.1 3.5v21.9h5v26.4h16.4v-26.4h5c0.1 0 0.1-18.9 0.1-21.9z"/>
+ <circle class="st2" cx="98" cy="93" r="68.5"/>
+ <path d="m78.8 106.3c-6.9 0-10.1-5.7-10.1-13.3s2.7-13.3 10.1-13.3c2 0 6 1.1 8.3 6.1l10-5.2c-4.2-7.7-11.5-10.8-19.9-10.8-12.2 0-22 8.6-22 23.3 0 14.9 9.2 23.3 22.4 23.3 8.5 0 15.7-4.7 19.7-11.7l-9.3-4.7c-2 4.8-5.2 6.3-9.2 6.3z"/>
+ <path d="m131.4 99.8c-2.1 5-5.2 6.5-9.2 6.5-6.9 0-10.1-5.7-10.1-13.3s2.7-13.3 10.1-13.3c2 0 6 1.1 8.3 6.1l10-5.2c-4.2-7.7-11.5-10.8-19.9-10.8-12.2 0-22 8.6-22 23.3 0 14.9 9.2 23.3 22.4 23.3 8.5 0 15.7-4.7 19.7-11.7l-9.3-4.9z"/>
+ <circle class="st1" cx="437" cy="70.6" r="50"/>
+ <path d="m437 25.6c24.8 0 45 20.2 45 45s-20.2 45-45 45-45-20.2-45-45 20.2-45 45-45m0-10c-30.4 0-55 24.6-55 55s24.6 55 55 55 55-24.6 55-55-24.6-55-55-55z"/>
+ <path d="m438.2 41h-1.7c-9.9 0.2-23.4 7.1-23.4 20.6h-4.7l10.7 12 10.7-12h-3.9c0.8-5.8 6-9.6 11.9-9.1h0.7c9.7 0 13.5 7.3 13.8 18.1 0.3 11.3-6.2 18.3-13.8 18.1-8-0.2-11.1-4-12.2-9.8h-14.3c2.4 13.4 12.2 21.3 26.3 21.3 15.9 0 27.3-13.2 27.3-29.6 0-17.4-11.5-29.6-27.4-29.6z"/>
+</svg>
diff --git a/assets/feed-icon.svg b/assets/feed-icon.svg
new file mode 100644
index 0000000..b325149
--- /dev/null
+++ b/assets/feed-icon.svg
@@ -0,0 +1,18 @@
+<?xml version="1.0"?>
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
+<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="128px" height="128px" id="RSSicon" viewBox="0 0 256 256">
+<defs>
+<linearGradient x1="0.085" y1="0.085" x2="0.915" y2="0.915" id="RSSg">
+<stop offset="0.0" stop-color="#E3702D"/><stop offset="0.1071" stop-color="#EA7D31"/>
+<stop offset="0.3503" stop-color="#F69537"/><stop offset="0.5" stop-color="#FB9E3A"/>
+<stop offset="0.7016" stop-color="#EA7C31"/><stop offset="0.8866" stop-color="#DE642B"/>
+<stop offset="1.0" stop-color="#D95B29"/>
+</linearGradient>
+</defs>
+<rect width="256" height="256" rx="55" ry="55" x="0" y="0" fill="#CC5D15"/>
+<rect width="246" height="246" rx="50" ry="50" x="5" y="5" fill="#F49C52"/>
+<rect width="236" height="236" rx="47" ry="47" x="10" y="10" fill="url(#RSSg)"/>
+<circle cx="68" cy="189" r="24" fill="#FFF"/>
+<path d="M160 213h-34a82 82 0 0 0 -82 -82v-34a116 116 0 0 1 116 116z" fill="#FFF"/>
+<path d="M184 213A140 140 0 0 0 44 73 V 38a175 175 0 0 1 175 175z" fill="#FFF"/>
+</svg>
diff --git a/assets/git_icon.svg b/assets/git_icon.svg
new file mode 100644
index 0000000..2e42bc7
--- /dev/null
+++ b/assets/git_icon.svg
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
+<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
+ width="97px" height="97px" viewBox="0 0 97 97" enable-background="new 0 0 97 97" xml:space="preserve">
+<g>
+ <path fill="#F05133" d="M92.71,44.408L52.591,4.291c-2.31-2.311-6.057-2.311-8.369,0l-8.33,8.332L46.459,23.19
+ c2.456-0.83,5.272-0.273,7.229,1.685c1.969,1.97,2.521,4.81,1.67,7.275l10.186,10.185c2.465-0.85,5.307-0.3,7.275,1.671
+ c2.75,2.75,2.75,7.206,0,9.958c-2.752,2.751-7.208,2.751-9.961,0c-2.068-2.07-2.58-5.11-1.531-7.658l-9.5-9.499v24.997
+ c0.67,0.332,1.303,0.774,1.861,1.332c2.75,2.75,2.75,7.206,0,9.959c-2.75,2.749-7.209,2.749-9.957,0c-2.75-2.754-2.75-7.21,0-9.959
+ c0.68-0.679,1.467-1.193,2.307-1.537V36.369c-0.84-0.344-1.625-0.853-2.307-1.537c-2.083-2.082-2.584-5.14-1.516-7.698
+ L31.798,16.715L4.288,44.222c-2.311,2.313-2.311,6.06,0,8.371l40.121,40.118c2.31,2.311,6.056,2.311,8.369,0L92.71,52.779
+ C95.021,50.468,95.021,46.719,92.71,44.408z"/>
+</g>
+</svg>
diff --git a/assets/gnubanner-2.png b/assets/gnubanner-2.png
new file mode 100644
index 0000000..3563129
--- /dev/null
+++ b/assets/gnubanner-2.png
Binary files differ
diff --git a/html-templates/postamble.html b/html-templates/postamble.html
index 7942761..221c206 100644
--- a/html-templates/postamble.html
+++ b/html-templates/postamble.html
@@ -1,8 +1,10 @@
<footer>
<center>
Copyright 2013-2021 by Yuchen Pei, licensed under <a href=https://creativecommons.org/licenses/by-sa/4.0/>CC BY-SA 4.0</a>.
-</center>
-<center>
- This website was assembled using <a href=https://orgmode.org/manual/Publishing.html>org mode</a> and <a href=https://www.gnu.org/software/librejs/free-your-javascript.html>respects your freedom (LibreJS-compliant)</a>.
+<br/>
+This website was assembled using <a href=https://orgmode.org/manual/Publishing.html>org mode</a> and <a href=https://www.gnu.org/software/librejs/free-your-javascript.html>respects your freedom (LibreJS-compliant)</a>.
+<br/>
+<a href="/blog-feed.xml"><img src="/assets/feed-icon.svg" style="height: 1rem" title="blog feed"/></a>
+<a href="/microblog-feed.xml"><img src="/assets/feed-icon.svg" style="height: 1rem" title="microblog feed"/></a>
</center>
</footer>
diff --git a/publish.el b/publish.el
index 4426a57..a09494b 100644
--- a/publish.el
+++ b/publish.el
@@ -44,8 +44,6 @@ representation for the files to include, as returned by
(org-list-to-org list)))
-(defun me/org-publish-do-nothing (plist filename pub-dir) "")
-
(defun org-publish-find-content (file project)
(let ((file (org-publish--expand-file-name file project)))
(when (and (file-readable-p file) (not (directory-name-p file)))