work-site/work-notes.org
2019-08-07 12:59:35 +03:00

46 lines
1.5 KiB
Org Mode

#+TITLE: Some Technicalities about Building My Work Page
* Workflow
1. Load [[file:work.el][=work.el=]].
#+BEGIN_SRC elisp
(load-file "~/Candies/Sites/work/work.el")
#+END_SRC
2. Open [[file:index.org][=index.org=]] and publish the current project.
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=]].
6. Run =nix-shell [[file:shell-seafile.nix][shell-seafile.nix]]= and, within it,
=seafile-applet= to sync the changes to the server.
* 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