Add link page

Signed-off-by: Magic_RB <magic_rb@redalder.org>
This commit is contained in:
Magic_RB 2021-04-20 00:02:40 +02:00
parent 25aa12d60d
commit 7751dd3ccd
No known key found for this signature in database
GPG key ID: 08D5287CC5DDCA0E
7 changed files with 45 additions and 4 deletions

View file

@ -32,6 +32,10 @@ code {
padding: 0rem 0.1rem 0rem 0.1rem; padding: 0rem 0.1rem 0rem 0.1rem;
} }
blockquote {
font-style: italic;
}
.TINY { .TINY {
font-size: 0.75rem; font-size: 0.75rem;
@ -68,6 +72,15 @@ pre {
line-height: 1.75em; line-height: 1.75em;
} }
#content :is(h1, h2, h3, h4, h5, h6) a {
text-decoration: none;
color: black;
}
#content.textual {
margin: 0.5rem 0 0 0;
}
#organizer { #organizer {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@ -186,6 +199,7 @@ pre {
.navbar-text { .navbar-text {
padding: 0rem 0rem 1rem 0rem; padding: 0rem 0rem 1rem 0rem;
font-size: 1.5rem;
color: black; color: black;
} }

9
home/links.org Normal file
View file

@ -0,0 +1,9 @@
* [[https://www.c0t0d0s0.de/otdl/otdl.html][~org-habit~ Habit Visualisation]]
Allows for creating nice, yearly SVGs showing how bad you are at following habits
* Haskell
** Aeson
- [[https://guide.aelve.com/haskell/aeson-cookbook-amra6lk6#item-tdlbc06e][Aelve Guide | Haskell - Aeson cookbook]]
- [[https://www.schoolofhaskell.com/school/starting-with-haskell/libraries-and-frameworks/text-manipulation/json][Parsing JSON with Aeson]]
- [[https://www.schoolofhaskell.com/user/Geraldus/algebraic-data-types-adts-with-aeson][Algebraic Data Types (ADTs) with Aeson]]
- [[https://artyom.me/aeson][Aeson: the tutorial]]

13
make.el
View file

@ -95,6 +95,17 @@
:html-template ,(templated-html-load-template "./templates/empty.html") :html-template ,(templated-html-load-template "./templates/empty.html")
:publishing-function org-html-publish-to-templated-html) :publishing-function org-html-publish-to-templated-html)
;; Links
("links"
:base-directory ,(expand-file-name "./home")
:recursive nil
:base-extension "org"
:exclude "^.*$"
:include ("links.org")
:with-toc nil
:publishing-directory ,(expand-file-name "./public_html/")
:html-template ,(templated-html-load-template "./templates/empty.html")
:publishing-function org-html-publish-to-templated-html)
;; Static images and css and js ;; Static images and css and js
("assets" ("assets"
@ -106,7 +117,7 @@
;; top-level trigger ;; top-level trigger
("publish" ("publish"
:components ("blog" "assets" "homepage" "contact")))) :components ("blog" "assets" "homepage" "contact" "links"))))
(org-publish "publish" t) (org-publish "publish" t)

View file

@ -5,7 +5,7 @@
{{:include "navbar.html"}} {{:include "navbar.html"}}
<div id="organizer"> <div id="organizer">
<div class="sidebar">{{org-html-toc 2 info}}</div> <div class="sidebar">{{org-html-toc 2 info}}</div>
<div id="content"> <div id="content" class="textual">
{{contents}} {{contents}}
</div> </div>
<div class="sidebar"></div> <div class="sidebar"></div>

View file

@ -5,7 +5,7 @@
{{:include "navbar.html"}} {{:include "navbar.html"}}
<div id="organizer"> <div id="organizer">
<div class="sidebar">{{org-html-toc 2 info}}</div> <div class="sidebar">{{org-html-toc 2 info}}</div>
<div id="content"> <div id="content" class="textual">
{{:if with-title}}<h1>{{title}}</h1>{{:endif}} {{:if with-title}}<h1>{{title}}</h1>{{:endif}}
{{:if date}}<div class="post-meta">Published on {{format-time-string "%b %d, %Y" date}}</div>{{:endif}} {{:if date}}<div class="post-meta">Published on {{format-time-string "%b %d, %Y" date}}</div>{{:endif}}
{{contents}} {{contents}}

View file

@ -5,7 +5,7 @@
{{:include "navbar.html"}} {{:include "navbar.html"}}
<div id="organizer"> <div id="organizer">
<div class="sidebar"></div> <div class="sidebar"></div>
<div id="content"> <div id="content" class="textual">
{{contents}} {{contents}}
</div> </div>
<div class="sidebar"></div> <div class="sidebar"></div>

View file

@ -31,6 +31,13 @@
<div class="navbar-underline"></div> <div class="navbar-underline"></div>
</a> </a>
</div> </div>
<div class="navbar-item">
<a class="navbar-click" href="/links.html">
<div class="navbar-text">Links</div>
<div class="navbar-underline"></div>
</a>
</div>
</div> </div>
<div id="navbar-spacer"></div> <div id="navbar-spacer"></div>
</div> </div>