mess a bit with the CSS

This commit is contained in:
Yann Esposito (Yogsototh) 2020-02-22 17:11:49 +00:00
parent fa7911f91f
commit 06be22d92c
Signed by untrusted user who does not match committer: yogsototh
GPG Key ID: 7B19A4C650D59646
5 changed files with 53 additions and 20 deletions

4
.gitignore vendored
View File

@ -1,4 +1,2 @@
_cache _*
_site
_optim
src/archive.org src/archive.org

View File

@ -4,8 +4,10 @@
(defvar root-dir (projectile-project-root)) (defvar root-dir (projectile-project-root))
(defvar base-dir (concat root-dir "src")) (defvar base-dir (concat root-dir "src"))
(defvar publish-dir (concat root-dir "_site")) (defvar publish-dir (concat root-dir "_site"))
(defvar draft-publish-dir (concat root-dir "_full"))
(defvar assets-dir (concat base-dir "/")) (defvar assets-dir (concat base-dir "/"))
(defvar publish-assets-dir (concat publish-dir "/")) (defvar publish-assets-dir (concat publish-dir "/"))
(defvar draft-publish-assets-dir (concat publish-drafts-dir "/"))
(defvar posts-dir (concat base-dir "/posts")) (defvar posts-dir (concat base-dir "/posts"))
(defvar rss-title "Subscribe to articles") (defvar rss-title "Subscribe to articles")
(defvar posts-descr "Articles") (defvar posts-descr "Articles")
@ -264,6 +266,7 @@ Return output file name."
:sitemap-format-entry date-format-entry :sitemap-format-entry date-format-entry
:sitemap-function org-blog-posts-sitemap-fn) :sitemap-function org-blog-posts-sitemap-fn)
("assets" ("assets"
:base-directory ,assets-dir :base-directory ,assets-dir
:base-extension ".*" :base-extension ".*"
@ -272,7 +275,38 @@ Return output file name."
:publishing-function org-blog-publish-attachment :publishing-function org-blog-publish-attachment
:recursive t) :recursive t)
("blog" :components ("orgfiles" "assets"))))
("draft-org-files"
:base-directory ,base-dir
:base-extension "org"
:publishing-directory ,draft-publish-dir
:recursive t
:preparation-function org-blog-prepare
:publishing-function org-blog-publish-to-html
:with-toc nil
:with-title nil
:with-date t
:section-numbers nil
:html-doctype "html5"
:html-html5-fancy t
:html-head-include-default-style nil
:html-head-include-scripts nil
:htmlized-source t
:html-head-extra ,org-blog-head
:html-preamble org-blog-preamble
:html-postamble org-blog-postamble
)
("draft-assets"
:base-directory ,assets-dir
:base-extension ".*"
:exclude ".*\.org$"
:publishing-directory ,draft-publish-assets-dir
:publishing-function org-blog-publish-attachment
:recursive t)
("blog" :components ("orgfiles" "assets"))
("draft" :components ("draft-org-files" "draft-assets"))))
;; add target=_blank and rel="noopener noreferrer" to all links by default ;; add target=_blank and rel="noopener noreferrer" to all links by default
(defun my-org-export-add-target-blank-to-http-links (text backend info) (defun my-org-export-add-target-blank-to-http-links (text backend info)

Binary file not shown.

View File

@ -3,17 +3,17 @@
*/ */
/* Fonts */ /* Fonts */
:root { :root {
--lh: 26px; --lh: 17px;
} }
body { body {
font-size: 18px; font-size: 15px;
font-family: Palatino, Georgia, serif; font-family: "PT Sans","Trebuchet MS", Verdana, sans-serif;
line-height: var(--lh); line-height: var(--lh);
} }
code, pre, pre code { code, pre, pre code {
line-height: 1em; line-height: 1em;
font-size: 14px; font-size: 14px;
font-family: Menlo, monospace; font-family: "PT Mono", Menlo, monospace;
} }
blockquote pre { blockquote pre {
line-height: var(--lh); line-height: var(--lh);
@ -71,16 +71,14 @@ table {
max-width: 100%; max-width: 100%;
border-collapse: collapse; border-collapse: collapse;
overflow: scroll; overflow: scroll;
border-top: dashed 2px; border-top: solid 2px;
border-bottom: dashed 2px; border-bottom: solid 2px;
} }
td, th { td, th {
height: 1em; height: 1em;
padding: 0 10px; padding: 0 10px;
text-align: left; text-align: left;
vertical-align: middle; vertical-align: middle;
border-left: dashed 2px;
border-right: dashed 2px;
} }
sup { sup {
vertical-align: top; vertical-align: top;
@ -188,7 +186,7 @@ figure, .figure {
margin: 1em 0; margin: 1em 0;
} }
#content,.content { #content,.content {
max-width: 48em; max-width: 35em;
margin: 0 auto; margin: 0 auto;
padding: 0 1em; padding: 0 1em;
} }
@ -370,7 +368,8 @@ li .keywords {
.main ol > li:before, ol > li:before, .main ol > li:before, ol > li:before,
pre::after,pre::before,hr:after, pre::after,pre::before,hr:after,
.main pre::after,.main pre::before,.main hr:after .main pre::after,.main pre::before,.main hr:after,
blockquote:after, .main blockquote:after
{ {
color: var(--fg0); color: var(--fg0);
} }
@ -415,9 +414,6 @@ table, td, th,
code, .main code { code, .main code {
background: var(--rbg); background: var(--rbg);
} }
blockquote:after, .main blockquote:after {
color: var(--fg2);
}
#preamble,#postamble,.main #preamble, .main #postamble { #preamble,#postamble,.main #preamble, .main #postamble {
border-color: transparent; border-color: transparent;
} }

View File

@ -21,10 +21,15 @@ I took the time to read it again.
In 2012, I really believed that every developer should learn Haskell. In 2012, I really believed that every developer should learn Haskell.
This is why I wrote my old article. This is why I wrote my old article.
This is the end of 2019 and I still strongly believe that, yes, you must at This is the end of 2019 and I still strongly believe that.
least be able to understand enough Haskell to write a simple tool. I think you should at least be able to understand enough Haskell to write a
simple tool.
There are a few feature in Haskell that I really miss in most programming
languages and that would not appear to be difficult to provide.
Typically sum types.
A concept so simple yet so helpful.
But a few things have changed in the Haskell world. Since I wrote my article a few things have changed in the Haskell world.
1. Project building has a few working solution. When I wrote this article I 1. Project building has a few working solution. When I wrote this article I
had a few web application that I can no longer build today. had a few web application that I can no longer build today.