diff --git a/src/assets/css/minimalist.css b/src/assets/css/minimalist.css index 35cf864..1cdd2c3 100644 --- a/src/assets/css/minimalist.css +++ b/src/assets/css/minimalist.css @@ -3,7 +3,7 @@ */ body { font-family: menlo, monospace; - font-size: 15px; + font-size: 13px; line-height: 20px; margin: 0; padding: 0; @@ -16,14 +16,19 @@ body { #preamble { border-bottom: solid 1px; } +#preamble h1 { + margin-bottom: 0; +} #postamble { border-top: solid 1px; } #preamble,#postamble { padding: 10px 0; +} +.menu { opacity: 0.5; } -#preamble:focus,#postamble:focus, #preamble:hover,#postamble:hover { +.menu:hover, .menu:focus { opacity:1; } #content,.content { @@ -31,6 +36,9 @@ body { margin: 0 auto; padding: 10px; } +#content *:first-child { + margin-top: 0; +} h1, h2, h3, h4, h5, h6, pre, code, blockquote, ol, ul, ol ol, ul ul, ul ol, ol ul, li, p, section, header, footer { @@ -276,8 +284,16 @@ body { background: var(--main-background); color: var(--main-foreground); } +::selection { + color: var(--todo-txt); + background-color: var(--yellow); +} +::-moz-selection { + color: var(--todo-txt); + background-color: var(--yellow); +} a, a:visited { - color: var(--base1); + color: var(--second-foreground); } a:hover, a:active, a:focus { color: var(--yellow); diff --git a/src/index.org b/src/index.org index a9c9b67..63e781c 100644 --- a/src/index.org +++ b/src/index.org @@ -38,8 +38,8 @@ I write all the content with [[http://orgmode.org][org-mode]]. (defun org-blog-prepare (project-plist) "With help from `https://github.com/howardabrams/dot-files'. - Touch `index.org' to rebuilt it. - Argument `PROJECT-PLIST' contains information about the current project." + Touch `index.org' to rebuilt it. + Argument `PROJECT-PLIST' contains information about the current project." (let* ((base-directory (plist-get project-plist :base-directory)) (buffer (find-file-noselect (expand-file-name "index.org" base-directory) t))) (with-current-buffer buffer @@ -53,14 +53,15 @@ I write all the content with [[http://orgmode.org][org-mode]]. "" "")) - (defun menu () + (defun menu (lst) "Blog menu" (concat - "" + "" (mapconcat 'identity - '("Home" - "Posts" - "↑ Top ↑") + (append + '("Home" + "Posts") + lst) " | ") "")) @@ -84,10 +85,12 @@ I write all the content with [[http://orgmode.org][org-mode]]. "Pre-amble for whole blog." (concat "
" - "Her.esy.fun" + (menu '("↓ bottom ↓")) + "

" + (format "%s" (plist-get info :title)) (when-let ((date (get-from-info info :date))) (format " - %s" date)) - " - ↓ menu ↓" + "

" "
")) (defun get-from-info (info k) @@ -100,6 +103,7 @@ I write all the content with [[http://orgmode.org][org-mode]]. (cond ((eq 0 r) (format "%c" c)) ((< 0 r 10) (format "&#%d;" c)) (t (format "&#x%X;" c))))) + (defun obfuscate-html (txt) (apply 'concat (mapcar 'rand-obfs txt))) @@ -111,7 +115,8 @@ I write all the content with [[http://orgmode.org][org-mode]]. "" - (menu) + (menu '("↑ Top ↑")) "")) (defun org-blog-sitemap-format-entry (entry _style project) @@ -172,7 +177,7 @@ I write all the content with [[http://orgmode.org][org-mode]]. :publishing-function org-html-publish-to-html :with-toc nil - :with-title t + :with-title nil :with-date t :section-numbers nil :html-doctype "html5" @@ -230,8 +235,8 @@ I write all the content with [[http://orgmode.org][org-mode]]. #+end_src #+begin_src elisp :results verbatim - (obfuscate-html "yann.esposito@gmail.com") + (append nil '("foo")) #+end_src #+RESULTS: -: "yann.esposito@gmail.com" +: ("foo")