forked from jaspervdj/hakyll
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
199 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ tags | |
tests/Main | ||
_cache | ||
_store | ||
_site | ||
|
||
# Rest of the file: ignore examples | ||
web/_cache | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
title: About | ||
--- | ||
Nullam imperdiet sodales orci vitae molestie. Nunc quam orci, pharetra a | ||
rhoncus vitae, eleifend id felis. Suspendisse potenti. Etiam vitae urna orci. | ||
Quisque pellentesque dignissim felis, egestas tempus urna luctus vitae. In hac | ||
habitasse platea dictumst. Morbi fringilla mattis odio, et mattis tellus | ||
accumsan vitae. | ||
|
||
1. Amamus Unicode 碁 | ||
2. Interdum nex magna. | ||
|
||
Vivamus eget mauris sit amet nulla laoreet lobortis. Nulla in diam elementum | ||
risus convallis commodo. Cras vehicula varius dui vitae facilisis. Proin | ||
elementum libero eget leo aliquet quis euismod orci vestibulum. Duis rhoncus | ||
lorem consequat tellus vestibulum aliquam. Quisque orci orci, malesuada porta | ||
blandit et, interdum nec magna. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
title: Code | ||
--- | ||
Etiam condimentum auctor semper. Donec lobortis, magna id sodales sollicitudin, | ||
lectus mi egestas nulla, pulvinar lobortis nunc eros id nisl. Curabitur | ||
imperdiet, erat at accumsan vulputate. | ||
|
||
> reverse' [] = [] | ||
> reverse' (x:xs) = (reverse' xs) ++ [x] | ||
|
||
Purus nunc blandit nulla, dictum. | ||
|
||
vestibulum sem lorem eget ipsum. Nunc tincidunt, turpis ut fermentum dapibus, | ||
justo tortor bibendum sem, at facilisis justo odio luctus lectus. Quisque nec | ||
ligula ipsum. Nunc augue lacus, ullamcorper vel dapibus in, mattis eget elit. | ||
|
||
> main = print $ reverse' [1 .. 10] | ||
|
||
Integer ut dui eu felis mollis vestibulum. Etiam at nibh id diam aliquet | ||
vestibulum sit amet a nibh. Aliquam erat volutpat. Etiam vitae nulla at dolor | ||
fringilla tempor ut a nunc. Pellentesque elementum elit lorem. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
body { | ||
width: 600px; | ||
margin: 0px auto 0px auto; | ||
} | ||
|
||
div#navigation { | ||
text-align: center; | ||
border-bottom: 4px solid black; | ||
} | ||
|
||
div#navigation a { | ||
color: white; | ||
text-decoration: none; | ||
background-color: black; | ||
padding: 3px 10px 3px 10px; | ||
margin: 0px 10px 0px 10px; | ||
} | ||
|
||
div.figure { | ||
float: right; | ||
margin: 20px 0px 20px 20px; | ||
} | ||
|
||
div.figure p.caption { | ||
text-align: center; | ||
font-style: italic; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/* Generated by pandoc. */ | ||
table.sourceCode, tr.sourceCode, td.lineNumbers, td.sourceCode, table.sourceCode pre | ||
{ margin: 0; padding: 0; border: 0; vertical-align: baseline; border: none; } | ||
td.lineNumbers { border-right: 1px solid #AAAAAA; text-align: right; color: #AAAAAA; padding-right: 5px; padding-left: 5px; } | ||
td.sourceCode { padding-left: 5px; } | ||
pre.sourceCode span.kw { color: #007020; font-weight: bold; } | ||
pre.sourceCode span.dt { color: #902000; } | ||
pre.sourceCode span.dv { color: #40a070; } | ||
pre.sourceCode span.bn { color: #40a070; } | ||
pre.sourceCode span.fl { color: #40a070; } | ||
pre.sourceCode span.ch { color: #4070a0; } | ||
pre.sourceCode span.st { color: #4070a0; } | ||
pre.sourceCode span.co { color: #60a0b0; font-style: italic; } | ||
pre.sourceCode span.ot { color: #007020; } | ||
pre.sourceCode span.al { color: red; font-weight: bold; } | ||
pre.sourceCode span.fu { color: #06287e; } | ||
pre.sourceCode span.re { } | ||
pre.sourceCode span.er { color: red; font-weight: bold; } |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
title: Home | ||
--- | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce tempor, urna et | ||
auctor tincidunt, eros mauris facilisis purus, eget sollicitudin leo massa sit | ||
amet ipsum. Vivamus eu massa in urna vehicula rutrum eget sit amet purus. | ||
|
||
![Haskell logo](/images/haskell-logo.png) | ||
|
||
- Mauris sit amet justo mi. | ||
- Curabitur vel quam felis. | ||
- In hac habitasse platea dictumst. | ||
|
||
Etiam nec consequat risus. Donec consequat est vitae neque fermentum | ||
feugiat nec ac nibh. Nulla rhoncus, odio quis scelerisque rutrum, metus sem | ||
tempor ante, a ornare ipsum felis sed ligula. Morbi urna lectus, scelerisque | ||
non pharetra in, rutrum quis ligula. Phasellus semper ullamcorper arcu eu | ||
auctor. | ||
|
||
Aliquam sagittis tincidunt libero ut elementum. Ut sit amet vestibulum metus. | ||
Ut aliquet congue neque eu tincidunt. Integer eu elit sed massa sollicitudin | ||
vehicula nec ut sem. Cras euismod enim eget purus lacinia non feugiat urna | ||
imperdiet. Aliquam justo sem, viverra eu vehicula vitae, imperdiet vel magna. | ||
|
||
Pellentesque enim dui, interdum elementum vehicula luctus, feugiat vitae arcu. | ||
Vestibulum ut felis justo. Quisque vestibulum mauris eget ipsum luctus | ||
consequat. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
-------------------------------------------------------------------------------- | ||
{-# LANGUAGE OverloadedStrings #-} | ||
import Hakyll | ||
|
||
|
||
-------------------------------------------------------------------------------- | ||
main :: IO () | ||
main = hakyll $ do | ||
match "images/*" $ do | ||
route idRoute | ||
compile copyFileCompiler | ||
|
||
match "css/*" $ do | ||
route idRoute | ||
compile compressCssCompiler | ||
|
||
match (fromList ["about.rst", "index.markdown", "code.lhs"]) $ do | ||
route $ setExtension "html" | ||
compile $ pageCompiler | ||
>>= requireApplyTemplate "templates/default.html" defaultContext | ||
>>= relativizeUrls | ||
|
||
match "templates/*" $ compile templateCompiler |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?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>MyAweSomeCompany - $title$</title> | ||
<link rel="stylesheet" type="text/css" href="/css/default.css" /> | ||
<link rel="stylesheet" type="text/css" href="/css/syntax.css" /> | ||
</head> | ||
<body> | ||
<h1>MyAweSomeCompany - $title$</h1> | ||
<div id="navigation"> | ||
<a href="/">Home</a> | ||
<a href="/about.html">About</a> | ||
<a href="/code.html">Code</a> | ||
</div> | ||
|
||
$body$ | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
-------------------------------------------------------------------------------- | ||
module Main | ||
( main | ||
) where | ||
|
||
|
||
-------------------------------------------------------------------------------- | ||
import System.Directory (copyFile) | ||
|
||
|
||
-------------------------------------------------------------------------------- | ||
import Hakyll.Core.Util.File | ||
import Paths_hakyll | ||
|
||
|
||
-------------------------------------------------------------------------------- | ||
main :: IO () | ||
main = do | ||
let dstDir = "." | ||
srcDir <- getDataFileName "example" | ||
files <- getRecursiveContents srcDir | ||
print files | ||
return () |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters