Remove old site files
authorLucian Mogosanu <lucian.mogosanu@gmail.com>
Sat, 5 Nov 2016 14:37:05 +0000 (16:37 +0200)
committerLucian Mogosanu <lucian.mogosanu@gmail.com>
Sat, 28 Jan 2017 13:29:27 +0000 (15:29 +0200)
Setup.hs [deleted file]
about-2.markdown [deleted file]
contact.markdown [deleted file]
index.html [deleted file]
site.hs [deleted file]
templates/archive.html [deleted file]
templates/default.html [deleted file]
templates/post-list.html [deleted file]
templates/post.html [deleted file]
templates/teaser.html [deleted file]
thetarpit.cabal [deleted file]

diff --git a/Setup.hs b/Setup.hs
deleted file mode 100644 (file)
index 9a994af..0000000
--- a/Setup.hs
+++ /dev/null
@@ -1,2 +0,0 @@
-import Distribution.Simple
-main = defaultMain
diff --git a/about-2.markdown b/about-2.markdown
deleted file mode 100644 (file)
index a3d1abf..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
----
-title: On tar pits (or, the second about)
-author: Lucian Mogoșanu
-date: April 29, 2016
----
-
-Humans' understanding of the universe is terrifyingly limited. Yet from
-thermodynamics we know (or we think we know) that by the arrow of
-entropy nature tends to fall into a general state of disorder. This is
-the zeroth tar pit.
-
-The first, second, third and so on up to the nth are most of the things,
-beasts, people and phenomena surrounding us, from the actual sticky
-thing to more metaphorical notions such as Kafka's perfect bureaucracy,
-or just the fat lady standing in front of you at the queue in the post
-office.
-
-In the same category lies a tar pit uniquely attributable to man, that
-creature more widely (although more and more narrowly) known as Zōon
-Politikon. It, like the Boltzmann constant itself, is also difficult to
-grasp, but you might know it as that feeling which (naturally!) keeps
-you from aspiring to become *more* human. It is laziness; it is
-stagnation; it is tiredness, and it is ultimately death.
-
-This blog, my, Lucian Mogoșanu's blog, describes its author's struggle
-through his own personal tar pit, as well as accounts and critiques of
-some of his times'. I hope I will have at least captured some of the
-more interesting ones, much to the amusement of future alien
-anthropologists.
-
-The Tar Pit is an ever incomplete and thus necessarily flawed
-publication. After all, tar pits might not even be enumerable.
-
-(Note: the previous [about page][about] was left online for historical
-reasons.)
-
-[about]: /about.html
diff --git a/contact.markdown b/contact.markdown
deleted file mode 100644 (file)
index 96417c7..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
----
-title: Contact
-author: Lucian Mogoșanu
-date: July 24, 2013
----
-
-* [E-mail][1]
-* IRC/Freenode: spyked
-
-I'm also on:
-
-* [GitHub][2]
-* [Facebook][3]
-* [Twitter][4]
-* [Reddit][5]
-
-
-[1]: /images/email.png
-[2]: https://github.com/spyked
-[3]: https://www.facebook.com/lucian.mogosanu
-[4]: https://twitter.com/spyked
-[5]: http://www.reddit.com/user/spyked
diff --git a/index.html b/index.html
deleted file mode 100644 (file)
index c2f281f..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
----
-title: Home
----
-
-"Tiger got to hunt, bird got to fly;<br />
-Man got to sit and wonder 'why, why, why?'<br />
-Tiger got to sleep, bird got to land;<br />
-Man got to tell himself he understand." <br />
--- Bokonon
-
-
-<h2>Recent posts</h2>
-
-$partial("templates/post-list.html")$
-
-See the <a href="/archive.html">archive</a> for more.
-
-<h2>Contact</h2>
-
-<ul class="inline-list">
-       <li><a href="https://github.com/spyked">GitHub</a></li>
-       <li><a href="https://www.facebook.com/lucian.mogosanu">Facebook</a></li>
-       <li><a href="/uploads/email.png">Mail</a></li>
-</ul>
-
diff --git a/site.hs b/site.hs
deleted file mode 100644 (file)
index 1a32a4f..0000000
--- a/site.hs
+++ /dev/null
@@ -1,162 +0,0 @@
-{-# LANGUAGE OverloadedStrings #-}
-import Data.Monoid (mappend)
-import Text.Pandoc
-import Hakyll
-import Hakyll.Core.Configuration
-
--- wrapping it up
-main :: IO ()
-main = hakyllWith tarpitConfiguration $ do
-  let pages = ["about.markdown", "about-2.markdown",
-               "contact.markdown", "404.markdown",
-               "403.markdown"]
-  -- tags
-  tags <- buildTags "posts/**" $ fromCapture "tags/*.html"
-
-  -- content
-  match "index.html" $ compileIndex tags
-  match "css/*" compileCss
-  match "posts/**" $ compilePosts tags
-  match "uploads/**" $ compileUploads
-  match "css/fonts/*" $ compileFonts
-  match (fromList pages) compilePages
-  create ["archive.html"] $ compileArchive tags
-
-  -- tags rules
-  tagsRules tags $ compileTags tags
-
-  -- rss feed
-  create ["rss.xml"] compileRss
-
-  -- compile templates
-  match "templates/*" $ compile templateCompiler
-
--- compilers go here
-compileIndex :: Tags -> Rules ()
-compileIndex tags = do
-    route idRoute -- TODO: make a "copy to root" route?
-    compile $ do
-      posts <- loadAll "posts/**" >>= fmap (take 5) . recentFirst
-      let indexCtx =
-            listField "posts" postCtx (return posts)    `mappend`
-            defaultContext
-
-      getResourceBody
-        >>= applyAsTemplate indexCtx
-        >>= loadAndApplyTemplate "templates/default.html" indexCtx
-        >>= relativizeUrls
-
-compileCss :: Rules ()
-compileCss = do
-  route idRoute
-  compile compressCssCompiler
-
-compilePosts :: Tags -> Rules ()
-compilePosts tags = do
-  route $ setExtension "html"
-  let ctx = tagsCtx tags
-  compile $ tarpitCompiler
-    >>= saveSnapshot "content"
-    >>= loadAndApplyTemplate "templates/post.html" ctx
-    >>= loadAndApplyTemplate "templates/default.html" ctx
-    >>= relativizeUrls
-
-compileUploads :: Rules ()
-compileUploads = do
-  route idRoute
-  compile copyFileCompiler
-
-compileFonts :: Rules ()
-compileFonts = compileUploads
-
-compilePages :: Rules ()
-compilePages = do
-  route $ setExtension "html"
-  compile $ tarpitCompiler
-    >>= loadAndApplyTemplate "templates/default.html" defaultContext
-    -- relative URLs break 404 pages, so don't do it here
-    -- >>= relativizeUrls
-
-compileArchive :: Tags -> Rules ()
-compileArchive tags = do
-  route idRoute
-  compile $ do
-    posts <- loadAll "posts/**" >>= recentFirst
-    let archiveCtx =
-          listField "posts" postCtx (return posts)      `mappend`
-          field "taglist" (const $ renderTagList tags)  `mappend`
-          constField "title" "Archive"                  `mappend`
-          defaultContext
-    makeItem ""
-      >>= loadAndApplyTemplate "templates/archive.html" archiveCtx
-      >>= loadAndApplyTemplate "templates/default.html" archiveCtx
-      >>= relativizeUrls
-
-compileTags :: Tags -> String -> Pattern -> Rules ()
-compileTags tags tag pattern = do
-  let title = "Posts tagged '" ++ tag ++ "'"
-  route idRoute
-  compile $ do
-    posts <- loadAll pattern >>= recentFirst
-    let tagCtx =
-          constField "title" title                 `mappend`
-          listField "posts" postCtx (return posts) `mappend`
-          tagsCtx tags
-    makeItem ""
-      >>= loadAndApplyTemplate "templates/post-list.html" tagCtx
-      >>= loadAndApplyTemplate "templates/default.html" tagCtx
-      >>= relativizeUrls
-
-
-compileRss :: Rules ()
-compileRss = do
-  -- shamelessly stolen from
-  -- http://jaspervdj.be/hakyll/tutorials/05-snapshots-feeds.html
-  route idRoute
-  compile $ do
-    let feedCtx =
-          postCtx                         `mappend`
-          teaserField "teaser" "content"  `mappend`
-          bodyField "description"
-        applyTeaser = loadAndApplyTemplate "templates/teaser.html" feedCtx
-    posts <- loadAllSnapshots "posts/**" "content"
-      >>= mapM applyTeaser
-      >>= fmap (take 7) . recentFirst
-    renderRss tarpitFeed feedCtx posts
-
--- post context
-postCtx :: Context String
-postCtx = dateField "date" "%B %e, %Y" `mappend` defaultContext
-
-tagsCtx :: Tags -> Context String
-tagsCtx tags = tagsField "tags" tags `mappend` postCtx
-
--- hakyll configuration
-tarpitConfiguration :: Configuration
-tarpitConfiguration = defaultConfiguration
-  { deployCommand = commStr }
-  where
-  commStr = "rsync -avz -e 'ssh -p 2200' "
-         ++ "_site/* mogosanu.ro:/virtual/sites/thetarpit.org"
-
--- pandoc reader and writer options
-tarpitReaderOptions :: ReaderOptions
-tarpitReaderOptions = defaultHakyllReaderOptions
-
-tarpitWriterOptions :: WriterOptions
-tarpitWriterOptions = defaultHakyllWriterOptions
-  { writerHTMLMathMethod = MathJax "" }
-
--- tarpit compiler
-tarpitCompiler :: Compiler (Item String)
-tarpitCompiler = pandocCompilerWith tarpitReaderOptions tarpitWriterOptions
-
--- support for RSS feeds
-tarpitFeed :: FeedConfiguration
-tarpitFeed = FeedConfiguration
-  { feedTitle       = "The Tar Pit"
-  , feedDescription = "tarpit :: IO ()"
-  , feedAuthorName  = "Lucian Mogoșanu"
-  , feedAuthorEmail = ""
-  , feedRoot        = "http://thetarpit.org"
-  }
diff --git a/templates/archive.html b/templates/archive.html
deleted file mode 100644 (file)
index e7a1c1b..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-<h2>Labels</h2>
-
-<p>$taglist$</p>
-
-<h2>Posts from The Tar Pit</h2>
-
-$partial("templates/post-list.html")$
diff --git a/templates/default.html b/templates/default.html
deleted file mode 100644 (file)
index 1ab9859..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
-"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-<head>
-       <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
-       <title>The Tar Pit - $title$</title>
-       <link rel="alternate" type="application/rss+xml" title="RSS" href="/rss.xml" />
-       <link href='/css/fonts.css' rel='stylesheet' type='text/css' />
-       <link rel="stylesheet" type="text/css" href="/css/default.css" />
-       <link rel="stylesheet" type="text/css" href="/css/syntax.css" />
-       <script type="text/javascript"
-       src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
-       </script>
-</head>
-
-<body>
-       <ul id="header">
-               <li><a href="/">The Tar Pit</a></li>
-       </ul>
-       <ul id="navigation">
-               <a href="/about-2.html">about</a>
-               <a href="/archive.html">archive</a>
-               <a href="/rss.xml">rss</a>
-       </ul>
-
-       <div id="content">
-               <h1>$title$</h1>
-               $body$
-       </div>
-
-       <div id="footer">
-               Tarpit proudly generated by
-               <a href="http://jaspervdj.be/hakyll">Hakyll</a>;
-               <a href="http://creativecommons.org/licenses/by-nc-sa/3.0/">by-nc-sa</a>
-       </div>
-<!-- so far, so good -->
-</body>
-</html>
diff --git a/templates/post-list.html b/templates/post-list.html
deleted file mode 100644 (file)
index 0d1f43a..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-<ul class="postlist">
-$for(posts)$
-               <li class="plitem">$date$:
-               <a href="$url$">$title$</a>$if(excerpt)$:
-               <span class="plexcerpt">$excerpt$</span>
-               $endif$
-               </li>
-$endfor$
-</ul>
diff --git a/templates/post.html b/templates/post.html
deleted file mode 100644 (file)
index 54b9e84..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-<div class="info">
-       <sup>$postid$</sup>
-       $date$ --
-       <span class="tags">$tags$</span>
-</div>
-
-$body$
diff --git a/templates/teaser.html b/templates/teaser.html
deleted file mode 100644 (file)
index ad39f51..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-$if(teaser)$
-    $teaser$
-$else$
-    $body$
-$endif$
diff --git a/thetarpit.cabal b/thetarpit.cabal
deleted file mode 100644 (file)
index 7a215a7..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
--- Initial thetarpit.cabal generated by cabal init.  For further 
--- documentation, see http://haskell.org/cabal/users-guide/
-
-name:                thetarpit
-version:             0.3.1
-synopsis:            The Tar Pit Hakyll site
--- description:         
-homepage:            https://github.com/spyked/thetarpit.org
-license:             OtherLicense
-license-file:        LICENSE
-author:              Lucian Mogosanu
-maintainer:          lucian.mogosanu@gmail.com
--- copyright:           
-category:            Web
-build-type:          Simple
--- extra-source-files:  
-cabal-version:       >=1.10
-
-executable thetarpit
-  main-is:             site.hs
-  -- other-modules:       
-  -- other-extensions:    
-  build-depends:       base >=4.8, hakyll, pandoc
-  -- hs-source-dirs:      
-  default-language:    Haskell2010