updated a bit to add description text.
This commit is contained in:
parent
0f054b8b8a
commit
ae8c3a1954
5 changed files with 30 additions and 16 deletions
11
project.el
11
project.el
|
@ -107,6 +107,8 @@
|
||||||
" - "
|
" - "
|
||||||
(format " <a class=\"permalink\" href=\"%s\">§permalink</a>" permalink)))
|
(format " <a class=\"permalink\" href=\"%s\">§permalink</a>" permalink)))
|
||||||
"</div>"))
|
"</div>"))
|
||||||
|
(when-let ((description (plist-get info :description)))
|
||||||
|
(format "<div class=\"notes\">%s</div>" description))
|
||||||
"</div>"))
|
"</div>"))
|
||||||
|
|
||||||
(defun rand-obfs (c)
|
(defun rand-obfs (c)
|
||||||
|
@ -259,13 +261,14 @@
|
||||||
(defun org-blog-publish-to-html (plist filename pub-dir)
|
(defun org-blog-publish-to-html (plist filename pub-dir)
|
||||||
"Same as `org-html-publish-to-html' but modifies html before finishing."
|
"Same as `org-html-publish-to-html' but modifies html before finishing."
|
||||||
(let* ((file-path (org-html-publish-to-html plist filename pub-dir))
|
(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)
|
(with-current-buffer (find-file-noselect file-path)
|
||||||
(goto-char (point-min))
|
(goto-char (point-min))
|
||||||
(search-forward "<body>")
|
(search-forward "<body>")
|
||||||
(insert (mapconcat 'identity
|
(insert "<div class=\"main\">")
|
||||||
`("<div class=\"main\">")
|
|
||||||
"\n"))
|
|
||||||
(goto-char (point-max))
|
(goto-char (point-max))
|
||||||
(search-backward "</body>")
|
(search-backward "</body>")
|
||||||
(insert "\n</div>\n")
|
(insert "\n</div>\n")
|
||||||
|
|
BIN
project.el.sig
BIN
project.el.sig
Binary file not shown.
9
src/drafts/XXXX-roe-colorschemes/index.org
Normal file
9
src/drafts/XXXX-roe-colorschemes/index.org
Normal 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
|
|
@ -4,18 +4,14 @@
|
||||||
#+author: Yann Esposito
|
#+author: Yann Esposito
|
||||||
#+EMAIL: yann@esposito.host
|
#+EMAIL: yann@esposito.host
|
||||||
#+keywords: Haskell, programming, functional, tutorial
|
#+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
|
#+OPTIONS: auto-id:t toc:t
|
||||||
#+STARTUP: overview
|
#+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
|
#+begin_quote
|
||||||
*Prelude*
|
*Prelude*
|
||||||
|
|
||||||
|
@ -169,8 +165,13 @@ The article contains five parts:
|
||||||
#+CAPTION: Haskell logo
|
#+CAPTION: Haskell logo
|
||||||
[[./Haskell-logo.png]]
|
[[./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
|
If you are not using either Linux nor macOS, you should look here:
|
||||||
should work with the examples in this article)
|
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
|
3. create a new empty directory =hsenv= somewhere
|
||||||
4. Put the following =shell.nix= file inside it
|
4. Put the following =shell.nix= file inside it
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,8 @@
|
||||||
#+author: Yann Esposito
|
#+author: Yann Esposito
|
||||||
#+EMAIL: yann@esposito.host
|
#+EMAIL: yann@esposito.host
|
||||||
#+keywords: colorscheme
|
#+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
|
#+OPTIONS: auto-id:t toc:t
|
||||||
#+STARTUP: overview
|
#+STARTUP: overview
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue