dailies are cringe so yeet
Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
@@ -1,27 +0,0 @@
|
|||||||
---
|
|
||||||
title: "Daily #1"
|
|
||||||
author: natto
|
|
||||||
published: October 29, 2022
|
|
||||||
---
|
|
||||||
* Hm?
|
|
||||||
Doing chores sucks but errands suck more. Also self hosting shit sucks, but I do it anyway.
|
|
||||||
|
|
||||||
* Image of the Day
|
|
||||||
#+ATTR_HTML: :alt Bro thinks he GettyImages 💀
|
|
||||||
[[https://f.weirdnatto.in/sshb-modinazisalute.png]]
|
|
||||||
|
|
||||||
* Video of the Day
|
|
||||||
#+begin_export html
|
|
||||||
<video controls>
|
|
||||||
<source src="https://f.weirdnatto.in/ZOUJ-osakasohigh.mp4" type="""video/mp4">
|
|
||||||
</video>
|
|
||||||
#+end_export
|
|
||||||
|
|
||||||
* Song of the Day
|
|
||||||
Been loving this one since my early adolescence.
|
|
||||||
#+begin_export html
|
|
||||||
<iframe src="https://youtube.com/embed/mGnJm0qIpFw" width=800px height=450px />
|
|
||||||
#+end_export
|
|
||||||
|
|
||||||
* Thought of the Day
|
|
||||||
Big tech companies are dying, the American century is over. The Chinese century is upon us, long live the CCP.
|
|
||||||
@@ -1,26 +0,0 @@
|
|||||||
---
|
|
||||||
title: "Daily #2"
|
|
||||||
author: natto
|
|
||||||
published: October 30, 2022
|
|
||||||
---
|
|
||||||
* Hm?
|
|
||||||
I have really shitty internet bandwidth and I have a lot of work pending (that does not involve internet).
|
|
||||||
|
|
||||||
* Image of the Day
|
|
||||||
#+ATTR_HTML: :alt Your dreams and hopes are incompatible with reality.
|
|
||||||
[[http://f.weirdnatto.in/3eW6-dreams.png]]
|
|
||||||
|
|
||||||
* Video of the Day
|
|
||||||
#+begin_export html
|
|
||||||
MEGU MEGU FIRE ENDLESS NIGHT SOSHITE MOTTO MOTTO ATSUKU NARE FEVER
|
|
||||||
<iframe src="https://youtube.com/embed/N6FfOevhA10 " width=800px height=450px />
|
|
||||||
#+end_export
|
|
||||||
|
|
||||||
* Song of the Day
|
|
||||||
Sofia Vempo's version/cover of Misirlou
|
|
||||||
#+begin_export html
|
|
||||||
<iframe src="https://youtube.com/embed/8myXQRe-WcY" width=800px height=450px />
|
|
||||||
#+end_export
|
|
||||||
|
|
||||||
* Thought of the Day
|
|
||||||
Everyone on the internet is a loser (including me). Shit sucks.
|
|
||||||
30
src/site.hs
30
src/site.hs
@@ -80,31 +80,6 @@ main = hakyllWith config $ do
|
|||||||
>>= loadAndApplyTemplate "templates/default.html" archiveCtx
|
>>= loadAndApplyTemplate "templates/default.html" archiveCtx
|
||||||
>>= relativizeUrls
|
>>= relativizeUrls
|
||||||
|
|
||||||
match "dailies/*org" $ do
|
|
||||||
route $ setExtension "html"
|
|
||||||
compile $ do
|
|
||||||
pandocCompiler
|
|
||||||
>>= saveSnapshot "dailiescontent"
|
|
||||||
>>= loadAndApplyTemplate "templates/post.html" dailiesCtx
|
|
||||||
>>= loadAndApplyTemplate "templates/default.html" dailiesCtx
|
|
||||||
>>= relativizeUrls
|
|
||||||
|
|
||||||
create ["dailies.html"] $ do
|
|
||||||
route idRoute
|
|
||||||
compile $ do
|
|
||||||
dailyToday <- fmap (take 1) . recentFirst =<< loadAllSnapshots "dailies/*" "dailiescontent"
|
|
||||||
dailies <- recentFirst =<< loadAll "dailies/*"
|
|
||||||
let dailiesCtx' =
|
|
||||||
listField "today" dailiesCtx (return dailyToday)
|
|
||||||
<> listField "posts" dailiesCtx (return dailies)
|
|
||||||
<> constField "title" "Dailies"
|
|
||||||
<> defaultCtx
|
|
||||||
|
|
||||||
makeItem ""
|
|
||||||
>>= loadAndApplyTemplate "templates/dailies.html" dailiesCtx'
|
|
||||||
>>= loadAndApplyTemplate "templates/default.html" dailiesCtx'
|
|
||||||
>>= relativizeUrls
|
|
||||||
|
|
||||||
match "index.html" $ do
|
match "index.html" $ do
|
||||||
route idRoute
|
route idRoute
|
||||||
compile $ do
|
compile $ do
|
||||||
@@ -169,11 +144,6 @@ postCtx tags =
|
|||||||
<> teaserField "teaser" "content"
|
<> teaserField "teaser" "content"
|
||||||
<> defaultCtx
|
<> defaultCtx
|
||||||
|
|
||||||
dailiesCtx :: Context String
|
|
||||||
dailiesCtx =
|
|
||||||
dateField "date" "%B %e, %Y"
|
|
||||||
<> defaultCtx
|
|
||||||
|
|
||||||
defaultCtx :: Context String
|
defaultCtx :: Context String
|
||||||
defaultCtx =
|
defaultCtx =
|
||||||
listField "subdomains" subCtx (return subdomains)
|
listField "subdomains" subCtx (return subdomains)
|
||||||
|
|||||||
@@ -1,14 +0,0 @@
|
|||||||
$for(today)$
|
|
||||||
<article>
|
|
||||||
<h1 class="post-title">$title$</h1>
|
|
||||||
<div class="post-teaser">
|
|
||||||
$body$
|
|
||||||
</div>
|
|
||||||
<hr>
|
|
||||||
</article>
|
|
||||||
$endfor$
|
|
||||||
|
|
||||||
<p>
|
|
||||||
<h3> Previous Dailies: </h3>
|
|
||||||
</p>
|
|
||||||
$partial("templates/post-list.html")$
|
|
||||||
Reference in New Issue
Block a user