From 29056aa92efa5e1688605a2701b82a6e569e3841 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Mon, 8 Apr 2024 17:34:58 +0100 Subject: [PATCH] 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 --- .gitignore | 1 + .../{bookmarks.org => bookmarks/default.org} | 22 +++++++++++++++++++ system/bookmarks/stylesheet.css | 10 +++++++++ system/firefox.nix | 2 +- 4 files changed, 34 insertions(+), 1 deletion(-) rename system/{bookmarks.org => bookmarks/default.org} (79%) create mode 100644 system/bookmarks/stylesheet.css diff --git a/.gitignore b/.gitignore index d82f117d..9eb700d7 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ .DS_Store __pycache__ .direnv +*.html diff --git a/system/bookmarks.org b/system/bookmarks/default.org similarity index 79% rename from system/bookmarks.org rename to system/bookmarks/default.org index 107c37ca..0f07b5d9 100644 --- a/system/bookmarks.org +++ b/system/bookmarks/default.org @@ -2,21 +2,43 @@ #+author: Evie Litherland-Smith #+email: evie@xenia.me.uk #+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: +#+html_head_extra: +#+subtitle: +#+infojs_opt: +#+creator: Emacs 29.3 (Org mode 9.6.23) +#+latex_header: * Messaging :messaging: - [[https://web.whatsapp.com/][WhatsApp Web]] - [[https://discord.com/app][Discord]] +----- * Server :server: - [[https://xenia.me.uk][Home Page]] - [[https://git.xenia.me.uk][Forgejo]] +----- * Documentation :documentation: - [[https://nixos-and-flakes.thiscute.world/][NixOS and Flakes]] - [[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://mozilla.github.io/policy-templates/][Mozilla Policy Templates]] - [[https://chromeenterprise.google/policies/][Chrome Enterprise Policy List]] +----- * Awesome Repos :awesome:git: - [[https://github.com/emacs-tw/awesome-emacs][Awesome Emacs]] - [[https://github.com/hyprland-community/awesome-hyprland][Awesome Hyprland]] +----- * Work :work: - [[https://nucleus.ukaea.uk/][Nucleus]] - [[https://marval.service.ukaea.uk/MSMSelfService/Index.aspx][Marval Helpdesk]] diff --git a/system/bookmarks/stylesheet.css b/system/bookmarks/stylesheet.css new file mode 100644 index 00000000..a4f089c8 --- /dev/null +++ b/system/bookmarks/stylesheet.css @@ -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; +} diff --git a/system/firefox.nix b/system/firefox.nix index 4a28adbb..372800b0 100644 --- a/system/firefox.nix +++ b/system/firefox.nix @@ -83,7 +83,7 @@ StartPage = "homepage-locked"; URL = "file://${pkgs.runCommand "bookmarks" {} '' 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 ''}/bookmarks.html"; };