From 332d3b3395b960afb4008ce03a81ca4c7860cf6f Mon Sep 17 00:00:00 2001 From: Jacob Janzen Date: Mon, 15 Apr 2024 11:41:19 -0500 Subject: wrap src lines in dotfiles --- css/stylesheet.css | 27 --------------------------- publish.el | 5 +++-- 2 files changed, 3 insertions(+), 29 deletions(-) diff --git a/css/stylesheet.css b/css/stylesheet.css index 2393f8f..3bc204e 100644 --- a/css/stylesheet.css +++ b/css/stylesheet.css @@ -55,30 +55,3 @@ a:hover { text-align: left; } } - -pre { - border: 1px solid #e6e6e6; - border-radius: 3px; - background-color: #f2f2f2; - padding: 8pt; - font-family: monospace; - font-size: 10px; - overflow-x: scroll; - overflow-y: visible; - margin: 1.2em; -} - -pre.src { - position: relative; - overflow: auto; -} - -pre.src:before { - display: none; - position: absolute; - bottom: -16px; - right: 12px; - padding: 3px; - color: #555; - background-color: #f2f2f2; -} diff --git a/publish.el b/publish.el index 6e2e9c8..3b24602 100644 --- a/publish.el +++ b/publish.el @@ -10,10 +10,10 @@ (setq use-package-always-ensure t use-package-expand-minimally t)) -(use-package org - :ensure org-plus-contrib) (use-package ox-rss :after org) +(use-package htmlize + :after org) (require 'org) (require 'ox-html) @@ -115,6 +115,7 @@ :base-extension "org" :html-head "" :html-preamble "
HomeProjectsBlogDotfilesAbout MeRSS
" + :html-wrap-src-lines t :html-postamble nil :publishing-directory "~/public_html" :publishing-function org-html-publish-to-html -- cgit v1.2.3