summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--web/site.hs9
-rw-r--r--web/templates/tutorials.html12
-rw-r--r--web/tutorials/robertwpearce-01-setup-and-initial-customization.html5
-rw-r--r--web/tutorials/robertwpearce-02-generating-a-sitemap-xml-file.html5
-rw-r--r--web/tutorials/robertwpearce-03-generating-rss-and-atom-xml-feeds.html5
-rw-r--r--web/tutorials/robertwpearce-04-copying-static-files-for-your-build.html5
6 files changed, 37 insertions, 4 deletions
diff --git a/web/site.hs b/web/site.hs
index 2bfaf3e..cb3ade4 100644
--- a/web/site.hs
+++ b/web/site.hs
@@ -105,10 +105,11 @@ hackage url
-- | Partition tutorials into tutorial series, other articles, external articles
tutorialsCtx :: [Item String] -> Context String
tutorialsCtx tuts =
- constField "title" "Tutorials" <>
- listField "main" defaultContext (ofType "main") <>
- listField "articles" defaultContext (ofType "article") <>
- listField "externals" defaultContext (ofType "external") <>
+ constField "title" "Tutorials" <>
+ listField "main" defaultContext (ofType "main") <>
+ listField "articles" defaultContext (ofType "article") <>
+ listField "externals" defaultContext (ofType "external") <>
+ listField "robertwpearce" defaultContext (ofType "robertwpearce") <>
defaultContext
where
ofType ty = filterM (\item -> do
diff --git a/web/templates/tutorials.html b/web/templates/tutorials.html
index 9650897..cc5fb09 100644
--- a/web/templates/tutorials.html
+++ b/web/templates/tutorials.html
@@ -30,6 +30,18 @@
</li>
$endfor$
</ul>
+<h2 id="robertwpearce">Robert Pearce's series</h2>
+<p>
+ <a href="https://robertwpearce.com/">Robert Pearce</a> has been writing an
+ excellent tutorial-style series on Hakyll as well. You can find those here:
+</p>
+<ul>
+ $for(robertwpearce)$
+ <li>
+ <a href="$url$">$title$</a>
+ </li>
+ $endfor$
+</ul>
<p>
All these tutorials assume you are using the latest stable version of
Hakyll. If this is not the case, you might want to update using:
diff --git a/web/tutorials/robertwpearce-01-setup-and-initial-customization.html b/web/tutorials/robertwpearce-01-setup-and-initial-customization.html
new file mode 100644
index 0000000..66ea958
--- /dev/null
+++ b/web/tutorials/robertwpearce-01-setup-and-initial-customization.html
@@ -0,0 +1,5 @@
+---
+title: 'Pt. 1: Setup & Initial Customization'
+url: 'https://robertwpearce.com/hakyll-pt-1-setup-and-initial-customization.html'
+type: robertwpearce
+---
diff --git a/web/tutorials/robertwpearce-02-generating-a-sitemap-xml-file.html b/web/tutorials/robertwpearce-02-generating-a-sitemap-xml-file.html
new file mode 100644
index 0000000..f9a9e1e
--- /dev/null
+++ b/web/tutorials/robertwpearce-02-generating-a-sitemap-xml-file.html
@@ -0,0 +1,5 @@
+---
+title: 'Pt. 2: Generating a Sitemap XML File'
+url: 'https://robertwpearce.com/hakyll-pt-2-generating-a-sitemap-xml-file.html'
+type: robertwpearce
+---
diff --git a/web/tutorials/robertwpearce-03-generating-rss-and-atom-xml-feeds.html b/web/tutorials/robertwpearce-03-generating-rss-and-atom-xml-feeds.html
new file mode 100644
index 0000000..7b6e92c
--- /dev/null
+++ b/web/tutorials/robertwpearce-03-generating-rss-and-atom-xml-feeds.html
@@ -0,0 +1,5 @@
+---
+title: 'Pt. 3: Generating RSS and Atom XML Feeds'
+url: 'https://robertwpearce.com/hakyll-pt-3-generating-rss-and-atom-xml-feeds.html'
+type: robertwpearce
+---
diff --git a/web/tutorials/robertwpearce-04-copying-static-files-for-your-build.html b/web/tutorials/robertwpearce-04-copying-static-files-for-your-build.html
new file mode 100644
index 0000000..f12d067
--- /dev/null
+++ b/web/tutorials/robertwpearce-04-copying-static-files-for-your-build.html
@@ -0,0 +1,5 @@
+---
+title: 'Pt. 4: Copying Static Files For Your Build'
+url: 'https://robertwpearce.com/hakyll-pt-4-copying-static-files-for-your-build.html'
+type: robertwpearce
+---