Browse Source

Add link page

Signed-off-by: Magic_RB <magic_rb@redalder.org>
multisite
Magic_RB 1 year ago
parent
commit
7751dd3ccd
Signed by untrusted user: Magic_RB GPG Key ID: 08D5287CC5DDCA0E
  1. 14
      assets/css/style.css
  2. 9
      home/links.org
  3. 13
      make.el
  4. 2
      templates/blog-index.html
  5. 2
      templates/blog.html
  6. 2
      templates/empty.html
  7. 7
      templates/navbar.html

14
assets/css/style.css

@ -32,6 +32,10 @@ code {
padding: 0rem 0.1rem 0rem 0.1rem;
}
blockquote {
font-style: italic;
}
.TINY {
font-size: 0.75rem;
@ -68,6 +72,15 @@ pre {
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 {
display: flex;
flex-direction: column;
@ -186,6 +199,7 @@ pre {
.navbar-text {
padding: 0rem 0rem 1rem 0rem;
font-size: 1.5rem;
color: black;
}

9
home/links.org

@ -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

@ -95,6 +95,17 @@
:html-template ,(templated-html-load-template "./templates/empty.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
("assets"
@ -106,7 +117,7 @@
;; top-level trigger
("publish"
:components ("blog" "assets" "homepage" "contact"))))
:components ("blog" "assets" "homepage" "contact" "links"))))
(org-publish "publish" t)

2
templates/blog-index.html

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

2
templates/blog.html

@ -5,7 +5,7 @@
{{:include "navbar.html"}}
<div id="organizer">
<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 date}}<div class="post-meta">Published on {{format-time-string "%b %d, %Y" date}}</div>{{:endif}}
{{contents}}

2
templates/empty.html

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

7
templates/navbar.html

@ -31,6 +31,13 @@
<div class="navbar-underline"></div>
</a>
</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 id="navbar-spacer"></div>
</div>

Loading…
Cancel
Save