Move bookmarks to separate directory to include stylesheet

Add extra HTML export preamble to bookmarks org file

git ignore html files so I don't commit generated files during testing
This commit is contained in:
Evie Litherland-Smith 2024-04-08 17:34:58 +01:00
parent 5750a31713
commit 29056aa92e
4 changed files with 34 additions and 1 deletions

1
.gitignore vendored
View file

@ -6,3 +6,4 @@
.DS_Store .DS_Store
__pycache__ __pycache__
.direnv .direnv
*.html

View file

@ -2,21 +2,43 @@
#+author: Evie Litherland-Smith #+author: Evie Litherland-Smith
#+email: evie@xenia.me.uk #+email: evie@xenia.me.uk
#+language: en #+language: en
#+options: html-link-use-abs-url:nil html-postamble:auto
#+options: html-preamble:t html-scripts:nil html-style:t
#+options: html5-fancy:nil tex:t
#+html_doctype: xhtml-strict
#+html_container: div
#+html_content_class: content
#+description:
#+keywords:
#+html_link_home:
#+html_link_up:
#+html_mathjax:
#+html_equation_reference_format: \eqref{%s}
#+html_head: <link rel="stylesheet" type="text/css" href="stylesheet.css">
#+html_head_extra:
#+subtitle:
#+infojs_opt:
#+creator: <a href="https://www.gnu.org/software/emacs/">Emacs</a> 29.3 (<a href="https://orgmode.org">Org</a> mode 9.6.23)
#+latex_header:
* Messaging :messaging: * Messaging :messaging:
- [[https://web.whatsapp.com/][WhatsApp Web]] - [[https://web.whatsapp.com/][WhatsApp Web]]
- [[https://discord.com/app][Discord]] - [[https://discord.com/app][Discord]]
-----
* Server :server: * Server :server:
- [[https://xenia.me.uk][Home Page]] - [[https://xenia.me.uk][Home Page]]
- [[https://git.xenia.me.uk][Forgejo]] - [[https://git.xenia.me.uk][Forgejo]]
-----
* Documentation :documentation: * Documentation :documentation:
- [[https://nixos-and-flakes.thiscute.world/][NixOS and Flakes]] - [[https://nixos-and-flakes.thiscute.world/][NixOS and Flakes]]
- [[https://nix-community.github.io/home-manager/options.xhtml][Home Manager Configuration Options]] - [[https://nix-community.github.io/home-manager/options.xhtml][Home Manager Configuration Options]]
- [[https://mipmip.github.io/home-manager-option-search/][Home Manager Option Search]] - [[https://mipmip.github.io/home-manager-option-search/][Home Manager Option Search]]
- [[https://mozilla.github.io/policy-templates/][Mozilla Policy Templates]] - [[https://mozilla.github.io/policy-templates/][Mozilla Policy Templates]]
- [[https://chromeenterprise.google/policies/][Chrome Enterprise Policy List]] - [[https://chromeenterprise.google/policies/][Chrome Enterprise Policy List]]
-----
* Awesome Repos :awesome:git: * Awesome Repos :awesome:git:
- [[https://github.com/emacs-tw/awesome-emacs][Awesome Emacs]] - [[https://github.com/emacs-tw/awesome-emacs][Awesome Emacs]]
- [[https://github.com/hyprland-community/awesome-hyprland][Awesome Hyprland]] - [[https://github.com/hyprland-community/awesome-hyprland][Awesome Hyprland]]
-----
* Work :work: * Work :work:
- [[https://nucleus.ukaea.uk/][Nucleus]] - [[https://nucleus.ukaea.uk/][Nucleus]]
- [[https://marval.service.ukaea.uk/MSMSelfService/Index.aspx][Marval Helpdesk]] - [[https://marval.service.ukaea.uk/MSMSelfService/Index.aspx][Marval Helpdesk]]

View file

@ -0,0 +1,10 @@
div.outline-text-2,
div.outline-text-3,
div.outline-text-4 {
column-count: 1;
}
div.outline-3,
div.outline-4 {
column-count: 1;
}

View file

@ -83,7 +83,7 @@
StartPage = "homepage-locked"; StartPage = "homepage-locked";
URL = "file://${pkgs.runCommand "bookmarks" {} '' URL = "file://${pkgs.runCommand "bookmarks" {} ''
mkdir $out mkdir $out
cp ${./bookmarks.org} $out/bookmarks.org cp ${./bookmarks/default.org} $out/bookmarks.org
${pkgs.emacs}/bin/emacs -Q $out/bookmarks.org --batch --eval="(cd \"$out\")" -f pwd -f org-html-export-to-html --kill ${pkgs.emacs}/bin/emacs -Q $out/bookmarks.org --batch --eval="(cd \"$out\")" -f pwd -f org-html-export-to-html --kill
''}/bookmarks.html"; ''}/bookmarks.html";
}; };