updated a bit to add description text.

This commit is contained in:
Yann Esposito (Yogsototh) 2020-05-02 13:37:25 +02:00
parent 0f054b8b8a
commit ae8c3a1954
Signed by untrusted user who does not match committer: yogsototh
GPG key ID: 7B19A4C650D59646
5 changed files with 30 additions and 16 deletions

View file

@ -107,6 +107,8 @@
" - "
(format " <a class=\"permalink\" href=\"%s\">§permalink</a>" permalink)))
"</div>"))
(when-let ((description (plist-get info :description)))
(format "<div class=\"notes\">%s</div>" description))
"</div>"))
(defun rand-obfs (c)
@ -259,13 +261,14 @@
(defun org-blog-publish-to-html (plist filename pub-dir)
"Same as `org-html-publish-to-html' but modifies html before finishing."
(let* ((file-path (org-html-publish-to-html plist filename pub-dir))
(mk-path (format "./%s.html" (replace-regexp-in-string ".*/\\([^/]*\\)\\.org$" "\\1" filename))))
(mk-path (format "./%s.html"
(replace-regexp-in-string ".*/\\([^/]*\\)\\.org$"
"\\1"
filename))))
(with-current-buffer (find-file-noselect file-path)
(goto-char (point-min))
(search-forward "<body>")
(insert (mapconcat 'identity
`("<div class=\"main\">")
"\n"))
(insert "<div class=\"main\">")
(goto-char (point-max))
(search-backward "</body>")
(insert "\n</div>\n")

Binary file not shown.

View file

@ -0,0 +1,9 @@
#+title: Solaryzed: A Generalisation of Solarized
#+date: [2020-03-01 Sun]
#+author: Yann Esposito
#+EMAIL: yann@esposito.host
#+KEYWORDS: colorscheme
#+DESCRIPTION: A generalization of solarized (https://solaryzed.esy.fun).
#+DESCRIPTION: I tried to make keep the same fundamentals and to free some variables.
#+OPTIONS: auto-id:t toc:t
#+STARTUP: overview

View file

@ -4,18 +4,14 @@
#+author: Yann Esposito
#+EMAIL: yann@esposito.host
#+keywords: Haskell, programming, functional, tutorial
#+DESCRIPTION: A dense introduction and Haskell tutorial. Brace yourself.
#+DESCRIPTION: A short and intense introduction to Haskell.<br/>
#+DESCRIPTION: <br/>
#+DESCRIPTION: This is an update of my old (2012) article.<br/>
#+DESCRIPTION: A lot of things have changed since then.<br/>
#+DESCRIPTION: I took the time to read it again.<br/>
#+OPTIONS: auto-id:t toc:t
#+STARTUP: overview
#+begin_notes
A short and intense introduction to Haskell.
This is an update of my old (2012) article.
A lot of things have changed since then.
I took the time to read it again.
#+end_notes
#+begin_quote
*Prelude*
@ -169,8 +165,13 @@ The article contains five parts:
#+CAPTION: Haskell logo
[[./Haskell-logo.png]]
1. Install [[https://nixos.org/nix][nix]] (The version I use is nix (Nix) 2.3.1, future 2.X.X versions
should work with the examples in this article)
If you are not using either Linux nor macOS, you should look here:
https://www.haskell.org/downloads/.
Otherwise, you can follow my advice to use nix:
1. Install [[https://nixos.org/nix][nix]] (The version I used while writting this article was
nix (Nix) 2.3.1, future 2.X.X versions should work with the
examples in this article)
3. create a new empty directory =hsenv= somewhere
4. Put the following =shell.nix= file inside it

View file

@ -3,7 +3,8 @@
#+author: Yann Esposito
#+EMAIL: yann@esposito.host
#+keywords: colorscheme
#+DESCRIPTION: A generalization of solarized (https://solaryzed.esy.fun)
#+DESCRIPTION: A generalization of solarized (https://solaryzed.esy.fun).
#+DESCRIPTION: I tried to make keep the same fundamentals and to free some variables.
#+OPTIONS: auto-id:t toc:t
#+STARTUP: overview