Skip to content

Add link to consultancies. #54

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 15, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions consultancies.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

# Consultancies

If you'd like to be added, please send a pull request changing the
[consultancies.md](https://github.com/haskell-servant/haskell-servant.github.io/blob/hakyll/consultancies.md)
file, while maintaining alphabetical order. Being listed does not imply
endorsement by the *servant* maintainers.

- [Turing Jump](https://turingjump.com/)
- [Well-Typed](https://www.well-typed.com/)
2 changes: 2 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ <h2>Blog</h2>
<p>Latest blog posts (<a href="/blog.html">all</a>)</p>
$partial("templates/post-list.html")$

$consultancies$

<p class="notice">
This work is licensed under the Creative Commons Attribution 4.0 International
License. To view a copy of this license, visit
Expand Down
4 changes: 4 additions & 0 deletions site.hs
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,19 @@ main = hakyllWith config $ do

match "home.md" $ compile pandocCompiler

match "consultancies.md" $ compile pandocCompiler

match "index.html" $ do
route idRoute
compile $ do
posts <- recentFirst =<< loadAll "posts/*"
homeContent <- loadBody "home.md"
consultanciesContent <- loadBody "consultancies.md"
let indexCtx =
listField "posts" postCtx (return posts) `mappend`
constField "title" "Home" `mappend`
field "home" (\_ -> return homeContent) `mappend`
field "consultancies" (\_ -> return consultanciesContent) `mappend`
defaultContext

getResourceBody
Expand Down