2018-09-13 15:16:53 +02:00
|
|
|
#+TITLE: Some Technicalities about Building My Work Page
|
|
|
|
|
2018-11-19 12:34:20 +01:00
|
|
|
* Workflow
|
2019-01-21 17:13:06 +01:00
|
|
|
1. Load [[file:work.el][=work.el=]].
|
2018-11-19 12:34:20 +01:00
|
|
|
#+BEGIN_SRC elisp
|
|
|
|
(load-file "~/Candies/Sites/work/work.el")
|
|
|
|
#+END_SRC
|
|
|
|
|
|
|
|
2. Open [[file:index.org][=index.org=]] and publish the current project.
|
|
|
|
|
2019-01-21 17:13:06 +01:00
|
|
|
3. Remove all timestamps.
|
|
|
|
#+BEGIN_SRC elisp
|
|
|
|
(org-publish-remove-all-timestamps)
|
|
|
|
#+END_SRC
|
|
|
|
|
|
|
|
4. Reopen [[file:index.org][=index.org=]] and republish the current project to get the
|
|
|
|
updated timestamp.
|
|
|
|
|
|
|
|
5. Run [[file:deploy-seafile][=deploy-seafile=]].
|
|
|
|
|
2019-08-07 11:59:35 +02:00
|
|
|
6. Run =nix-shell [[file:shell-seafile.nix][shell-seafile.nix]]= and, within it,
|
2019-01-21 17:13:06 +01:00
|
|
|
=seafile-applet= to sync the changes to the server.
|
2018-11-19 12:34:20 +01:00
|
|
|
|
2018-09-13 15:16:53 +02:00
|
|
|
* Removing the publish cache
|
|
|
|
Org-publish will not detect files being deleted from the output. To
|
|
|
|
force it to clear its caches, do the following:
|
|
|
|
#+BEGIN_SRC elisp
|
|
|
|
(org-publish-remove-all-timestamps)
|
|
|
|
#+END_SRC
|
|
|
|
|
|
|
|
* Possible colors for the banner
|
|
|
|
#+BEGIN_SRC css
|
|
|
|
background-color: azure;
|
|
|
|
background-color: lightcyan;
|
|
|
|
background-color: paleturquoise;
|
|
|
|
#+END_SRC
|
|
|
|
|
|
|
|
* References
|
|
|
|
** Org-mode
|
|
|
|
- https://orgmode.org/worg/org-tutorials/org-publish-html-tutorial.html
|
|
|
|
- https://orgmode.org/manual/Configuration.html#Configuration
|
|
|
|
- https://orgmode.org/manual/CSS-support.html#CSS-support
|
|
|
|
** Examples
|
|
|
|
- https://justin.abrah.ms/emacs/orgmode_static_site_generator.html
|
|
|
|
- https://bastibe.de/2013-11-13-blogging-with-emacs.html
|
|
|
|
- https://ogbe.net/blog/blogging_with_org.html
|