diff options
author | JSDurand <mmemmew@gmail.com> | 2021-08-28 19:22:12 +0800 |
---|---|---|
committer | JSDurand <mmemmew@gmail.com> | 2021-08-28 19:22:12 +0800 |
commit | 3cb027c93ac91b24d6f5c819950d069ad6b4affc (patch) | |
tree | 0500feb08ea60067153bd41db2ec05ec3d97487a /.gitignore | |
parent | 3ec6e167fb302aac3b61529be49aaf479b41dd3f (diff) |
Refinements to publish the blog
* org-conf.el (durand-org-publish-sidebar)
(durand-org-publish-insert-sidebar): Use a sidebar for the navigation:
Instead of the built-in UP/HOME buttons, I want to go to sitemap files
for different types of blog posts quickly. This is more convenient
for the readers I think. This is inspired by the design of
Protesilaos' website.
(durand-org-publish-css-file): Add my own CSS file in the header.
(durand-org-publish-favicon): Add the favicon I produced by a simple C
program.
(org-publish-project-alist): Add a Math type of blog posts.
(durand-sitemap-custom-string-alist): Add a custom string to each
type's sitemap file.
(durand-org-publish-sitemap, durand-org-publish-sitemap-format): Use a
table instead of a list in the sitemap. This is also inspired by the
design of Protesilaos' website.
(durand-org-publish-plist-get): The built-in `plist-get'
mal-functions, and this is a replacement. After I update my Emacs,
this problem might be fixed, and this replcement might not be needed
anymore.
(durand-org-publish-convert-time): Convert the result of
`parse-time-string' to a time value. The result may lack some
information, as the parsed string does not provide them. So this
function supplies 0 for the missing values. Note that it assumes the
year, month, and day cannot be missing, though.
(durand-org-index-entries-max-num): Show at most a fixed number of
entries on the index page. This maximum is set to 10 now.
(durand-org-post-process): Shorten the date strings in the sitemap
files: I need the exact date for sorting, but I don't want to show
those information in the sitemap files. So I convert the long form of
dates to comments, and use the shortened form for display. Also this
generates a proper index page from the various sitemap files. Right
now it will insert the entries to the index file each time this is
called, which is kind of inefficient. I might adapt a more efficient
method later on. I also want to generate Atom feeds in this function,
but right now I don't have such a need, and this is not fulfilled
yet. This kind of imitates the behaviour of Protesilaos' website.
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions