some cleaning due to new domain
This commit is contained in:
parent
d5c54f8267
commit
b62ef5a8fc
3 changed files with 6 additions and 13 deletions
11
src/Main.hs
11
src/Main.hs
|
@ -15,6 +15,8 @@ main = do
|
|||
|
||||
hakyllWith config $ do
|
||||
|
||||
match "templates/*" $ compile templateCompiler
|
||||
|
||||
--copy fonts, images etc.
|
||||
match ("font/*" .||. "images/*" .||. "humans.txt" .||. "D7665688.txt" .||. "robots.txt") $ do
|
||||
route idRoute
|
||||
|
@ -70,18 +72,9 @@ main = do
|
|||
loadAndApplyTemplate "templates/default.html" baseCtx full
|
||||
>>= relativizeUrls
|
||||
|
||||
-- match "posts/*.md" $ do
|
||||
-- route $ setExtension "html"
|
||||
-- compile $ pandocCompiler $ do
|
||||
-- saveSnapshot "content"
|
||||
-- loadAndApplyTemplate "templates/post.html" (postCtx tags)
|
||||
-- loadAndApplyTemplate "templates/default.html" baseCtx
|
||||
-- relativizeUrls
|
||||
|
||||
-- Post tags
|
||||
tagsRules tags $ \tag pattern -> do
|
||||
let title = "Posts tagged " ++ tag ++ ":"
|
||||
|
||||
-- Copied from posts, need to refactor
|
||||
route idRoute
|
||||
compile $ do
|
||||
|
|
|
@ -9,13 +9,13 @@
|
|||
<link rel="stylesheet" type="text/css" href="/css/font.css"/>
|
||||
|
||||
<!-- humans.txt -->
|
||||
<link rel="author" href="https://nek0,eu/humans.txt" />
|
||||
<link rel="author" href="/humans.txt" />
|
||||
|
||||
<!-- RSS -->
|
||||
<link rel="alternate" type="application/rss+xml" title="neko's blog" href="https://nek0.eu/rss.xml">
|
||||
<link rel="alternate" type="application/rss+xml" title="neko's blog" href="/rss.xml">
|
||||
|
||||
<!-- ATOM -->
|
||||
<link rel="alternate" type="application/atom+xml" title="neko's blog" href="https://nek0.eu/atom.xml">
|
||||
<link rel="alternate" type="application/atom+xml" title="neko's blog" href="/atom.xml">
|
||||
|
||||
<!-- favicon -->
|
||||
<link rel="icon" type="image/x-icon" href="/images/nekonet.ico">
|
||||
|
|
|
@ -20,7 +20,7 @@ $body$
|
|||
</div>
|
||||
|
||||
<object id="yacs" seamless data="https://yacs.nek0.eu/comments/$title$"><p>If you see this, something is wrong</p></object>
|
||||
<script src="https://yacs.nek0.eu/static/js/yacs.js"></script>
|
||||
<script src="/static/js/yacs.js"></script>
|
||||
|
||||
<!--
|
||||
<script type="text/javascript">
|
||||
|
|
Loading…
Reference in a new issue