Completed porting haml templates back to html
Removed all haml templates and returned to using the default hakyll style html templates. The main reason for this was to avoid the requirement for external tools that cannot be installed with cabal. Also as much as haml is nicer to read and write (in my opinion) it is in this case just adding another layer of needless abstraction. Perhaps in the future haml-like functionality can be added to default hakyll templates. Until then, follow the KISS mentality. Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
This commit is contained in:
parent
0213eec3af
commit
d5f2f56ec4
|
@ -16,7 +16,6 @@ This website was proudly made with open source software! Specifically:
|
|||
- [Skeleton][]
|
||||
- [JQuery][]
|
||||
- [JQuery-address][]
|
||||
- [Haml][]
|
||||
- [MathJax][]
|
||||
- [Inkscape][]
|
||||
- [Gimp][]
|
||||
|
@ -71,7 +70,6 @@ $section$
|
|||
[Skeleton]: http://www.getskeleton.com/
|
||||
[JQuery]: http://jquery.com
|
||||
[JQuery-address]: https://github.com/asual/jquery-address
|
||||
[Haml]: http://haml.info/
|
||||
[MathJax]: http://www.mathjax.org/
|
||||
[Inkscape]: http://inkscape.org/
|
||||
[Gimp]: http://www.gimp.org/
|
||||
|
|
16
src/site.hs
16
src/site.hs
|
@ -167,8 +167,8 @@ main = do
|
|||
route $ gsubRoute "Skeleton" (const "css")
|
||||
compile compressCssCompiler
|
||||
|
||||
match "templates/**.haml" $ compile $ getResourceBody >>= saveSnapshot "original"
|
||||
>>= withItemBody (fmap readTemplate . unixFilter "haml" [])
|
||||
match "templates/**" $ compile $ getResourceBody >>= saveSnapshot "original"
|
||||
>> templateCompiler
|
||||
---------------------------------------------------------------------------------------------------------
|
||||
-- Default Version --------------------------------------------------------------------------------------
|
||||
-- Generate tag pages
|
||||
|
@ -184,7 +184,7 @@ main = do
|
|||
constField "weight" "0" <>
|
||||
listField "posts" (taggedPostCtx tags) (return posts)
|
||||
makeItem ""
|
||||
>>= loadAndApplyTemplate "templates/pages/blog.haml" ctx
|
||||
>>= loadAndApplyTemplate "templates/pages/blog.html" ctx
|
||||
|
||||
match "pages/*" $ do
|
||||
route $ setExtension "html"
|
||||
|
@ -195,7 +195,7 @@ main = do
|
|||
posts <- recentFirst =<< loadAllSnapshots ("posts/**" .&&. hasNoVersion) "content"
|
||||
|
||||
let recentPosts = take 5 posts
|
||||
pageTemplate = "templates/pages/" ++ pageName ++ ".haml"
|
||||
pageTemplate = "templates/pages/" ++ pageName ++ ".html"
|
||||
masterCtx = listField "recentPosts" (taggedPostCtx tags) (return recentPosts) <>
|
||||
listField "posts" (taggedPostCtx tags) (return posts) <>
|
||||
tagCloudField "tagCloud" 65 135 tags <>
|
||||
|
@ -203,19 +203,17 @@ main = do
|
|||
|
||||
sectionCtx <- getResourceBody >>= genSectionContext
|
||||
pg <- loadSnapshot (fromFilePath pageTemplate) "original"
|
||||
>>= withItemBody (unixFilter "haml" [])
|
||||
>>= applyAsTemplate (sectionCtx <> masterCtx)
|
||||
|
||||
if pageName == "blog"
|
||||
then makeItem ""
|
||||
else makeItem . itemBody $ pg
|
||||
|
||||
-- TODO: add "next" and "previous" while processing templates/partials/post.haml
|
||||
match "posts/**" $ do
|
||||
route $ setExtension "html"
|
||||
compile $ pandocCompilerWith pandocReaderOptions pandocWriterOptions
|
||||
>>= saveSnapshot "content"
|
||||
>>= loadAndApplyTemplate "templates/partials/post.haml" (taggedPostCtx tags)
|
||||
>>= loadAndApplyTemplate "templates/partials/post.html" (taggedPostCtx tags)
|
||||
-- >>= relativizeUrls
|
||||
|
||||
create ["atom.xml"] $ do
|
||||
|
@ -244,7 +242,7 @@ main = do
|
|||
|
||||
makeItem "loading"
|
||||
>>= applyAsTemplate indexCtx
|
||||
>>= loadAndApplyTemplate "templates/default.haml" indexCtx
|
||||
>>= loadAndApplyTemplate "templates/default.html" indexCtx
|
||||
>>= relativizeUrls
|
||||
|
||||
---------------------------------------------------------------------------------------------------------
|
||||
|
@ -384,7 +382,7 @@ paginateTagsRules tags =
|
|||
constField "tag" tag <>
|
||||
listField "posts" (taggedPostCtx tags) (return posts)
|
||||
makeItem ""
|
||||
>>= loadAndApplyTemplate "templates/tag-page.haml" ctx
|
||||
>>= loadAndApplyTemplate "templates/tag-page.html" ctx
|
||||
|
||||
rulesExtraDependencies [tagsDependency tags] $ do
|
||||
create [tagsMakeId tags tag] $ do
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
%h1 Blog Archive
|
||||
%p Below are a list of my blog posts
|
||||
$partial("templates/partials/post-list.haml")$
|
|
@ -0,0 +1,3 @@
|
|||
<h1>Blog Archive</h1>
|
||||
<p>Below are a list of my blog posts</p>
|
||||
$partial("templates/partials/post-list.html")$
|
|
@ -1,43 +0,0 @@
|
|||
!!! 5
|
||||
/[if lt IE 7] <html class="ie ie6" lang="en">
|
||||
/[if IE 7] <html class="ie ie7" lang="en"
|
||||
/[if IE 8] <html class="ie ie8" lang="en">
|
||||
<!-- [if (gte IE 9)|!(IE)]><!-->
|
||||
%html.en
|
||||
%head
|
||||
/ Basic Page Needs
|
||||
%meta(charset="utf-8")
|
||||
%link(rel="shortcut icon" href="lib/images/favicon.png")
|
||||
|
||||
%title RekahSoft
|
||||
%meta(name="description" content="Custom soltuions to unique problems")
|
||||
%meta(name="author" content="Collin Doering")
|
||||
|
||||
/ Mobile Specific Metas
|
||||
%meta(name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1")
|
||||
|
||||
/ CSS
|
||||
%link(rel="stylesheet" href="lib/css/base.css")
|
||||
%link(rel="stylesheet" href="lib/css/skeleton.css")
|
||||
%link(rel="stylesheet" href="lib/css/layout.css")
|
||||
/ Custom styles for this template
|
||||
%link(rel="stylesheet" href="default.css")
|
||||
|
||||
/[if lt IE 9]
|
||||
%script(src="http://html5shim.googlecode.com/svn/trunk/html5.js")
|
||||
|
||||
/ Favicons
|
||||
%link(rel="shortcut icon" href="lib/images/favicon.ico")
|
||||
%link(rel="apple-touch-icon" href="lib/images/apple-touch-icon.png")
|
||||
%link(rel="apple-touch-icon" sizes="72x72" href="lib/images/apple-touch-icon-72x72.png")
|
||||
%link(rel="apple-touch-icon" sizes="114x114" href="lib/images/apple-touch-icon-114x114.png")
|
||||
|
||||
%body
|
||||
.container
|
||||
$partial("templates/partials/logo-banner.haml")$
|
||||
$partial("templates/partials/nav-nojs.haml")$
|
||||
$if(recentPosts)$
|
||||
$partial("templates/partials/recent-posts-nojs.haml")$
|
||||
$endif$
|
||||
$body$
|
||||
$partial("templates/partials/footer.haml")$
|
|
@ -0,0 +1,42 @@
|
|||
<!DOCTYPE html>
|
||||
<!--[if lt IE 7]> <html class="ie ie6" lang="en"> <![endif]-->
|
||||
<!--[if IE 7]> <html class="ie ie7" lang="en" <![endif]-->
|
||||
<!--[if IE 8]> <html class="ie ie8" lang="en"> <![endif]-->
|
||||
<!-- [if (gte IE 9)|!(IE)]><!-->
|
||||
<html class='en'>
|
||||
<head>
|
||||
<!-- Basic Page Needs -->
|
||||
<meta charset='utf-8'>
|
||||
<link href='lib/images/favicon.png' rel='shortcut icon'>
|
||||
<title>RekahSoft</title>
|
||||
<meta content='Custom soltuions to unique problems' name='description'>
|
||||
<meta content='Collin Doering' name='author'>
|
||||
<!-- Mobile Specific Metas -->
|
||||
<meta content='width=device-width, initial-scale=1, maximum-scale=1' name='viewport'>
|
||||
<!-- CSS -->
|
||||
<link href='lib/css/base.css' rel='stylesheet'>
|
||||
<link href='lib/css/skeleton.css' rel='stylesheet'>
|
||||
<link href='lib/css/layout.css' rel='stylesheet'>
|
||||
<!-- Custom styles for this template -->
|
||||
<link href='default.css' rel='stylesheet'>
|
||||
<!--[if lt IE 9]>
|
||||
<script src='http://html5shim.googlecode.com/svn/trunk/html5.js'></script>
|
||||
<![endif]-->
|
||||
<!-- Favicons -->
|
||||
<link href='lib/images/favicon.ico' rel='shortcut icon'>
|
||||
<link href='lib/images/apple-touch-icon.png' rel='apple-touch-icon'>
|
||||
<link href='lib/images/apple-touch-icon-72x72.png' rel='apple-touch-icon' sizes='72x72'>
|
||||
<link href='lib/images/apple-touch-icon-114x114.png' rel='apple-touch-icon' sizes='114x114'>
|
||||
</head>
|
||||
<body>
|
||||
<div class='container'>
|
||||
$partial("templates/partials/logo-banner.html")$
|
||||
$partial("templates/partials/nav-nojs.html")$
|
||||
$if(recentPosts)$
|
||||
$partial("templates/partials/recent-posts-nojs.html")$
|
||||
$endif$
|
||||
$body$
|
||||
$partial("templates/partials/footer.html")$
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -1,62 +0,0 @@
|
|||
!!! 5
|
||||
/[if lt IE 7] <html class="ie ie6" lang="en">
|
||||
/[if IE 7] <html class="ie ie7" lang="en"
|
||||
/[if IE 8] <html class="ie ie8" lang="en">
|
||||
<!-- [if (gte IE 9)|!(IE)]><!-->
|
||||
%html.en(manifest='manifest.appcache')
|
||||
%head
|
||||
/ Basic Page Needs
|
||||
%meta(charset="utf-8")
|
||||
|
||||
%title RekahSoft
|
||||
%meta(name="description" content="The technical musings of a minimalist")
|
||||
%meta(name="author" content="Collin Doering")
|
||||
|
||||
/ Mobile Specific Metas
|
||||
%meta(name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1")
|
||||
|
||||
/ CSS
|
||||
%link(rel="stylesheet" href="lib/css/base.css")
|
||||
%link(rel="stylesheet" href="lib/css/skeleton.css")
|
||||
%link(rel="stylesheet" href="lib/css/layout.css")
|
||||
/ Custom styles for this template
|
||||
%link(rel="stylesheet" href="default.css")
|
||||
|
||||
/[if lt IE 9]
|
||||
%script(src="http://html5shim.googlecode.com/svn/trunk/html5.js")
|
||||
|
||||
/ Favicons
|
||||
%link(rel="shortcut icon" href="/images/favicon.ico")
|
||||
// %link(rel="icon" type="image/png" href="/images/favicon.ico.png")
|
||||
// %link(rel="icon" type="image/svg+xml" href="/images/favicon.svg")
|
||||
|
||||
// %link(rel="apple-touch-icon" href="lib/images/apple-touch-icon.png")
|
||||
// %link(rel="apple-touch-icon" sizes="72x72" href="lib/images/apple-touch-icon-72x72.png")
|
||||
// %link(rel="apple-touch-icon" sizes="114x114" href="lib/images/apple-touch-icon-114x114.png")
|
||||
|
||||
%body
|
||||
$partial("templates/partials/logo-banner.haml")$
|
||||
$partial("templates/partials/nav.haml")$
|
||||
|
||||
#status.container
|
||||
%p.message
|
||||
%a.close-button Close
|
||||
|
||||
#page-content.init.loading
|
||||
%noscript
|
||||
#noscript-alert.container
|
||||
%h1 This site requires javascript!
|
||||
%p
|
||||
If you insist on not using javascript we provide a simplified website
|
||||
%a.alert-link(href="nojs/index.html") here
|
||||
|
||||
$partial("templates/partials/footer.haml")$
|
||||
|
||||
/ External javascript libraries: JQuery, and JQuery-Address
|
||||
/ Placed at the end of the document so the pages load faster
|
||||
%script(type="text/javascript" src="lib/js/jquery-1.9.1.js")
|
||||
%script(type="text/javascript" src="lib/js/jquery.address.js")
|
||||
%script(type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML")
|
||||
|
||||
/ Custom javascript for user interactivity
|
||||
%script(type="text/javascript" src="js/default.js")
|
|
@ -0,0 +1,59 @@
|
|||
<!DOCTYPE html>
|
||||
<!--[if lt IE 7]> <html class="ie ie6" lang="en"> <![endif]-->
|
||||
<!--[if IE 7]> <html class="ie ie7" lang="en" <![endif]-->
|
||||
<!--[if IE 8]> <html class="ie ie8" lang="en"> <![endif]-->
|
||||
<!-- [if (gte IE 9)|!(IE)]><!-->
|
||||
<html class='en' manifest='manifest.appcache'>
|
||||
<head>
|
||||
<!-- Basic Page Needs -->
|
||||
<meta charset='utf-8'>
|
||||
<title>RekahSoft</title>
|
||||
<meta content='The technical musings of a minimalist' name='description'>
|
||||
<meta content='Collin Doering' name='author'>
|
||||
<!-- Mobile Specific Metas -->
|
||||
<meta content='width=device-width, initial-scale=1, maximum-scale=1' name='viewport'>
|
||||
<!-- CSS -->
|
||||
<link href='lib/css/base.css' rel='stylesheet'>
|
||||
<link href='lib/css/skeleton.css' rel='stylesheet'>
|
||||
<link href='lib/css/layout.css' rel='stylesheet'>
|
||||
<!-- Custom styles for this template -->
|
||||
<link href='default.css' rel='stylesheet'>
|
||||
<!--[if lt IE 9]>
|
||||
<script src='http://html5shim.googlecode.com/svn/trunk/html5.js'></script>
|
||||
<![endif]-->
|
||||
<!-- Favicons -->
|
||||
<link href='/images/favicon.ico' rel='shortcut icon'>
|
||||
<!-- / %link(rel="icon" type="image/png" href="/images/favicon.ico.png") -->
|
||||
<!-- / %link(rel="icon" type="image/svg+xml" href="/images/favicon.svg") -->
|
||||
<!-- / %link(rel="apple-touch-icon" href="lib/images/apple-touch-icon.png") -->
|
||||
<!-- / %link(rel="apple-touch-icon" sizes="72x72" href="lib/images/apple-touch-icon-72x72.png") -->
|
||||
<!-- / %link(rel="apple-touch-icon" sizes="114x114" href="lib/images/apple-touch-icon-114x114.png") -->
|
||||
</head>
|
||||
<body>
|
||||
$partial("templates/partials/logo-banner.html")$
|
||||
$partial("templates/partials/nav.html")$
|
||||
<div class='container' id='status'>
|
||||
<p class='message'></p>
|
||||
<a class='close-button'>Close</a>
|
||||
</div>
|
||||
<div class='init loading' id='page-content'>
|
||||
<noscript>
|
||||
<div class='container' id='noscript-alert'>
|
||||
<h1>This site requires javascript!</h1>
|
||||
<p>
|
||||
If you insist on not using javascript we provide a simplified website
|
||||
<a class='alert-link' href='nojs/index.html'>here</a>
|
||||
</p>
|
||||
</div>
|
||||
</noscript>
|
||||
</div>
|
||||
$partial("templates/partials/footer.html")$
|
||||
<!-- External javascript libraries: JQuery, and JQuery-Address -->
|
||||
<!-- Placed at the end of the document so the pages load faster -->
|
||||
<script src='lib/js/jquery-1.9.1.js' type='text/javascript'></script>
|
||||
<script src='lib/js/jquery.address.js' type='text/javascript'></script>
|
||||
<script src='https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML' type='text/javascript'></script>
|
||||
<!-- Custom javascript for user interactivity -->
|
||||
<script src='js/default.js' type='text/javascript'></script>
|
||||
</body>
|
||||
</html>
|
|
@ -1,3 +0,0 @@
|
|||
#blog-page
|
||||
$partial("templates/partials/post-teaser-list.haml")$
|
||||
$partial("templates/partials/pagination.haml")$
|
|
@ -0,0 +1,4 @@
|
|||
<div id='blog-page'>
|
||||
$partial("templates/partials/post-teaser-list.html")$
|
||||
$partial("templates/partials/pagination.html")$
|
||||
</div>
|
|
@ -1,5 +0,0 @@
|
|||
#contact-page.container.border-box
|
||||
.row
|
||||
$partial("templates/partials/business-card.haml")$
|
||||
#about-me-blurb.row
|
||||
$body0$
|
|
@ -0,0 +1,8 @@
|
|||
<div class='container border-box' id='contact-page'>
|
||||
<div class='row'>
|
||||
$partial("templates/partials/business-card.html")$
|
||||
</div>
|
||||
<div class='row' id='about-me-blurb'>
|
||||
$body0$
|
||||
</div>
|
||||
</div>
|
|
@ -1,18 +0,0 @@
|
|||
#home-page.container.border-box
|
||||
.row
|
||||
.eight.columns.alpha
|
||||
$partial("templates/partials/business-card.haml")$
|
||||
.seven.columns.offset-by-one.omega
|
||||
#recent-posts
|
||||
%h1 Recent Posts
|
||||
%hr/
|
||||
$partial("templates/partials/recent-posts-list.haml")$
|
||||
#tag-cloud
|
||||
%h1 Tag Cloud
|
||||
%hr/
|
||||
$tagCloud$
|
||||
.row
|
||||
#license.eight.columns.alpha
|
||||
$license$
|
||||
#tools.seven.columns.offset-by-one.omega
|
||||
$tools$
|
|
@ -0,0 +1,27 @@
|
|||
<div class='container border-box' id='home-page'>
|
||||
<div class='row'>
|
||||
<div class='eight columns alpha'>
|
||||
$partial("templates/partials/business-card.html")$
|
||||
</div>
|
||||
<div class='seven columns offset-by-one omega'>
|
||||
<div id='recent-posts'>
|
||||
<h1>Recent Posts</h1>
|
||||
<hr>
|
||||
$partial("templates/partials/recent-posts-list.html")$
|
||||
</div>
|
||||
<div id='tag-cloud'>
|
||||
<h1>Tag Cloud</h1>
|
||||
<hr>
|
||||
$tagCloud$
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class='row'>
|
||||
<div class='eight columns alpha' id='license'>
|
||||
$license$
|
||||
</div>
|
||||
<div class='seven columns offset-by-one omega' id='tools'>
|
||||
$tools$
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
|
@ -1,9 +0,0 @@
|
|||
#business-card
|
||||
.photo
|
||||
%p.description
|
||||
Welcome to my blog!
|
||||
.info
|
||||
%span.name Collin J. Doering
|
||||
%a.email(href="mailto:collin.doering@gmail.com") collin.doering@gmail.com
|
||||
%a.gpg-key(href="/files/collin-doering.gpg") 4096R/E05BFEC
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
<div id='business-card'>
|
||||
<div class='photo'></div>
|
||||
<p class='description'>
|
||||
Welcome to my blog!
|
||||
</p>
|
||||
<div class='info'>
|
||||
<span class='name'>Collin J. Doering</span>
|
||||
<a class='email' href='mailto:collin.doering@gmail.com'>collin.doering@gmail.com</a>
|
||||
<a class='gpg-key' href='/files/collin-doering.gpg'>4096R/E05BFEC</a>
|
||||
</div>
|
||||
</div>
|
|
@ -1,9 +0,0 @@
|
|||
#footer-wrap
|
||||
.container
|
||||
%footer
|
||||
#footer-left.eight.columns.alpha
|
||||
%p © Collin Doering 2013
|
||||
#footer-right.eight.columns.omega
|
||||
%p
|
||||
Proudly crafted using
|
||||
%a(href="https://www.gnu.org/philosophy/free-sw.html") Free Software
|
|
@ -0,0 +1,15 @@
|
|||
<div id='footer-wrap'>
|
||||
<div class='container'>
|
||||
<footer>
|
||||
<div class='eight columns alpha' id='footer-left'>
|
||||
<p>© Collin Doering 2013</p>
|
||||
</div>
|
||||
<div class='eight columns omega' id='footer-right'>
|
||||
<p>
|
||||
Proudly crafted using
|
||||
<a href='https://www.gnu.org/philosophy/free-sw.html'>Free Software</a>
|
||||
</p>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
|
@ -1,3 +0,0 @@
|
|||
#logo-background
|
||||
#logo.container
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
<div id='logo-background'>
|
||||
<div class='container' id='logo'></div>
|
||||
</div>
|
|
@ -1,14 +0,0 @@
|
|||
#nav
|
||||
%ul#nav-menu
|
||||
$for(pagesFirst)$
|
||||
%li
|
||||
%a.menuitem(href="$url$") $title$
|
||||
$endfor$
|
||||
$if(pageMid)$
|
||||
%li.active
|
||||
%a.menuitem(href="$url$") $title$
|
||||
$endif$
|
||||
$for(pagesLast)$
|
||||
%li
|
||||
%a.menuitem(href="$url$") $title$
|
||||
$endfor$
|
|
@ -0,0 +1,19 @@
|
|||
<div id='nav'>
|
||||
<ul id='nav-menu'>
|
||||
$for(pagesFirst)$
|
||||
<li>
|
||||
<a class='menuitem' href='$url$'>$title$</a>
|
||||
</li>
|
||||
$endfor$
|
||||
$if(pageMid)$
|
||||
<li class='active'>
|
||||
<a class='menuitem' href='$url$'>$title$</a>
|
||||
</li>
|
||||
$endif$
|
||||
$for(pagesLast)$
|
||||
<li>
|
||||
<a class='menuitem' href='$url$'>$title$</a>
|
||||
</li>
|
||||
$endfor$
|
||||
</ul>
|
||||
</div>
|
|
@ -1,7 +0,0 @@
|
|||
#nav.loading
|
||||
%ul#nav-menu.container
|
||||
$for(pages)$
|
||||
%li
|
||||
%a.menuitem(rel="address:$virtualpath$" href="$url$") $title$
|
||||
$endfor$
|
||||
%a.rss-icon(href="atom.xml")
|
|
@ -0,0 +1,10 @@
|
|||
<div class='loading' id='nav'>
|
||||
<ul class='container' id='nav-menu'>
|
||||
$for(pages)$
|
||||
<li>
|
||||
<a class='menuitem' href='$url$' rel='address:$virtualpath$'>$title$</a>
|
||||
</li>
|
||||
$endfor$
|
||||
<a class='rss-icon' href='atom.xml'></a>
|
||||
</ul>
|
||||
</div>
|
|
@ -1,33 +0,0 @@
|
|||
#pagination.container
|
||||
.eight.columns.alpha
|
||||
$if(firstPageUrl)$
|
||||
$if(firstPageUrlVirtualPath)$
|
||||
%a.firstPage(rel="address:$firstPageUrlVirtualPath$" href="$firstPageUrl$") First Page
|
||||
$else$
|
||||
%a.firstPage(href="$firstPageUrl$") First Page
|
||||
$endif$
|
||||
$endif$
|
||||
|
||||
$if(previousPageUrl)$
|
||||
$if(previousPageUrlVirtualPath)$
|
||||
%a.previousPage(rel="address:$previousPageUrlVirtualPath$" href="$previousPageUrl$") Previous Page
|
||||
$else$
|
||||
%a.previousPage(href="$previousPageUrl$") Previous Page
|
||||
$endif$
|
||||
$endif$
|
||||
.eight.columns
|
||||
$if(nextPageUrl)$
|
||||
$if(nextPageUrlVirtualPath)$
|
||||
%a.nextPage(rel="address:$nextPageUrlVirtualPath$" href="$nextPageUrl$") Next Page
|
||||
$else$
|
||||
%a.nextPage(href="$nextPageUrl$") Next Page
|
||||
$endif$
|
||||
$endif$
|
||||
|
||||
$if(lastPageUrl)$
|
||||
$if(lastPageUrlVirtualPath)$
|
||||
%a.lastPage(rel="address:$lastPageUrlVirtualPath$" href="$lastPageUrl$") Last Page
|
||||
$else$
|
||||
%a.lastPage(href="$lastPageUrl$") Last Page
|
||||
$endif$
|
||||
$endif$
|
|
@ -0,0 +1,34 @@
|
|||
<div class='container' id='pagination'>
|
||||
<div class='eight columns alpha'>
|
||||
$if(firstPageUrl)$
|
||||
$if(firstPageUrlVirtualPath)$
|
||||
<a class='firstPage' href='$firstPageUrl$' rel='address:$firstPageUrlVirtualPath$'>First Page</a>
|
||||
$else$
|
||||
<a class='firstPage' href='$firstPageUrl$'>First Page</a>
|
||||
$endif$
|
||||
$endif$
|
||||
$if(previousPageUrl)$
|
||||
$if(previousPageUrlVirtualPath)$
|
||||
<a class='previousPage' href='$previousPageUrl$' rel='address:$previousPageUrlVirtualPath$'>Previous Page</a>
|
||||
$else$
|
||||
<a class='previousPage' href='$previousPageUrl$'>Previous Page</a>
|
||||
$endif$
|
||||
$endif$
|
||||
</div>
|
||||
<div class='eight columns'>
|
||||
$if(nextPageUrl)$
|
||||
$if(nextPageUrlVirtualPath)$
|
||||
<a class='nextPage' href='$nextPageUrl$' rel='address:$nextPageUrlVirtualPath$'>Next Page</a>
|
||||
$else$
|
||||
<a class='nextPage' href='$nextPageUrl$'>Next Page</a>
|
||||
$endif$
|
||||
$endif$
|
||||
$if(lastPageUrl)$
|
||||
$if(lastPageUrlVirtualPath)$
|
||||
<a class='lastPage' href='$lastPageUrl$' rel='address:$lastPageUrlVirtualPath$'>Last Page</a>
|
||||
$else$
|
||||
<a class='lastPage' href='$lastPageUrl$'>Last Page</a>
|
||||
$endif$
|
||||
$endif$
|
||||
</div>
|
||||
</div>
|
|
@ -1,5 +0,0 @@
|
|||
%ul
|
||||
$for(posts)$
|
||||
%li
|
||||
%a(href="$url$") $title$ - $date$
|
||||
$endfor$
|
|
@ -0,0 +1,7 @@
|
|||
<ul>
|
||||
$for(posts)$
|
||||
<li>
|
||||
<a href='$url$'>$title$ - $date$</a>
|
||||
</li>
|
||||
$endfor$
|
||||
</ul>
|
|
@ -1,4 +0,0 @@
|
|||
.info
|
||||
Posted on $date$ $if(author)$ by $author$ $endif$
|
||||
|
||||
$body$
|
|
@ -0,0 +1,4 @@
|
|||
<div class='info'>
|
||||
Posted on $date$ $if(author)$ by $author$ $endif$
|
||||
</div>
|
||||
$body$
|
|
@ -1,3 +0,0 @@
|
|||
$for(posts)$
|
||||
$partial("templates/partials/post-teaser.haml")$
|
||||
$endfor$
|
|
@ -0,0 +1,3 @@
|
|||
$for(posts)$
|
||||
$partial("templates/partials/post-teaser.html")$
|
||||
$endfor$
|
|
@ -1,27 +0,0 @@
|
|||
%article.post.container
|
||||
%header
|
||||
%h1.title
|
||||
%a(href="$url$") $title$
|
||||
%p.info
|
||||
Posted on
|
||||
%span.date $date$
|
||||
$if(author)$ by
|
||||
%span.author $author$
|
||||
$endif$
|
||||
|
||||
$if(teaser)$
|
||||
$teaser$
|
||||
$else$
|
||||
$body$
|
||||
$endif$
|
||||
|
||||
%footer
|
||||
.container
|
||||
.eight.columns.alpha
|
||||
$if(teaser)$
|
||||
%a.read-more(href="$url$") Read More
|
||||
$else$
|
||||
%span.no-teaser
|
||||
$endif$
|
||||
.eight.columns.omega
|
||||
%p.tags $tags$
|
|
@ -0,0 +1,33 @@
|
|||
<article class='post container'>
|
||||
<header>
|
||||
<h1 class='title'>
|
||||
<a href='$url$'>$title$</a>
|
||||
</h1>
|
||||
<p class='info'>
|
||||
Posted on
|
||||
<span class='date'>$date$</span>
|
||||
$if(author)$ by
|
||||
<span class='author'>$author$</span>
|
||||
$endif$
|
||||
</p>
|
||||
</header>
|
||||
$if(teaser)$
|
||||
$teaser$
|
||||
$else$
|
||||
$body$
|
||||
$endif$
|
||||
<footer>
|
||||
<div class='container'>
|
||||
<div class='eight columns alpha'>
|
||||
$if(teaser)$
|
||||
<a class='read-more' href='$url$'>Read More</a>
|
||||
$else$
|
||||
<span class='no-teaser'></span>
|
||||
$endif$
|
||||
</div>
|
||||
<div class='eight columns omega'>
|
||||
<p class='tags'>$tags$</p>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</article>
|
|
@ -1,20 +0,0 @@
|
|||
#post-page.container
|
||||
%article.post
|
||||
%header
|
||||
%h1.title $title$
|
||||
%p.info
|
||||
Posted on
|
||||
%span.date $date$
|
||||
$if(author)$ by
|
||||
%span.author $author$
|
||||
$endif$
|
||||
|
||||
$body$
|
||||
|
||||
%footer
|
||||
%hr
|
||||
.container
|
||||
.eight.columns.alpha
|
||||
%a.read-more(href="$url$") See Comments
|
||||
.eight.columns.omega
|
||||
%p.tags $tags$
|
|
@ -0,0 +1,26 @@
|
|||
<div class='container' id='post-page'>
|
||||
<article class='post'>
|
||||
<header>
|
||||
<h1 class='title'>$title$</h1>
|
||||
<p class='info'>
|
||||
Posted on
|
||||
<span class='date'>$date$</span>
|
||||
$if(author)$ by
|
||||
<span class='author'>$author$</span>
|
||||
$endif$
|
||||
</p>
|
||||
</header>
|
||||
$body$
|
||||
<footer>
|
||||
<hr>
|
||||
<div class='container'>
|
||||
<div class='eight columns alpha'>
|
||||
<a class='read-more' href='$url$'>See Comments</a>
|
||||
</div>
|
||||
<div class='eight columns omega'>
|
||||
<p class='tags'>$tags$</p>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</article>
|
||||
</div>
|
|
@ -1,5 +0,0 @@
|
|||
%ul
|
||||
$for(recentPosts)$
|
||||
%li
|
||||
%a(href="$url$") $title$ - $date$
|
||||
$endfor$
|
|
@ -0,0 +1,7 @@
|
|||
<ul>
|
||||
$for(recentPosts)$
|
||||
<li>
|
||||
<a href='$url$'>$title$ - $date$</a>
|
||||
</li>
|
||||
$endfor$
|
||||
</ul>
|
|
@ -1,9 +0,0 @@
|
|||
#recent-posts-nojs
|
||||
%strong Recent Posts
|
||||
%ul
|
||||
$for(recentPosts)$
|
||||
%li.recent-post-item-nojs
|
||||
%a(href="$url$")
|
||||
%strong $title$
|
||||
$if(teaser)$ $teaser$ $else$ $body$ $endif$
|
||||
$endfor$
|
|
@ -0,0 +1,13 @@
|
|||
<div id='recent-posts-nojs'>
|
||||
<strong>Recent Posts</strong>
|
||||
<ul>
|
||||
$for(recentPosts)$
|
||||
<li class='recent-post-item-nojs'>
|
||||
<a href='$url$'>
|
||||
<strong>$title$</strong>
|
||||
</a>
|
||||
$if(teaser)$ $teaser$ $else$ $body$ $endif$
|
||||
</li>
|
||||
$endfor$
|
||||
</ul>
|
||||
</div>
|
|
@ -1,4 +0,0 @@
|
|||
#tag-page
|
||||
%h1#tag.container $tag$
|
||||
$partial("templates/partials/post-teaser-list.haml")$
|
||||
$partial("templates/partials/pagination.haml")$
|
|
@ -0,0 +1,5 @@
|
|||
<div id='tag-page'>
|
||||
<h1 class='container' id='tag'>$tag$</h1>
|
||||
$partial("templates/partials/post-teaser-list.html")$
|
||||
$partial("templates/partials/pagination.html")$
|
||||
</div>
|
Loading…
Reference in New Issue