Change layout

This commit is contained in:
Mats Rauhala 2018-09-20 22:54:59 +03:00
parent 4e2d6342b4
commit 2db7c774a2
9 changed files with 5 additions and 22 deletions

BIN
images/Git-Icon-Black.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 684 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

BIN
images/git_16.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 485 B

BIN
images/git_32.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 684 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.2 KiB

View File

@ -1,7 +0,0 @@
---
title: Home
---
<h2>Welcome</h2>
<p>Not much here yet. See the top bar</p>

View File

@ -1,5 +1,5 @@
--- ---
title: About title: Mats Rauhala
--- ---
![](./images/profile.jpg) ![](./images/profile.jpg)

13
site.hs
View File

@ -25,7 +25,7 @@ main = hakyll $ do
route idRoute route idRoute
compile compressCssCompiler compile compressCssCompiler
match (fromList ["about.markdown", "contact.markdown"]) $ do match (fromList ["index.markdown", "contact.markdown"]) $ do
route $ setExtension "html" route $ setExtension "html"
compile $ pandocCompiler compile $ pandocCompiler
>>= loadAndApplyTemplate "templates/default.html" defaultContext >>= loadAndApplyTemplate "templates/default.html" defaultContext
@ -59,17 +59,6 @@ main = hakyll $ do
>>= loadAndApplyTemplate "templates/default.html" archiveCtx >>= loadAndApplyTemplate "templates/default.html" archiveCtx
>>= relativizeUrls >>= relativizeUrls
match "index.html" $ do
route idRoute
compile $ do
let indexCtx =
constField "title" "Home" `mappend`
defaultContext
getResourceBody
>>= applyAsTemplate indexCtx
>>= loadAndApplyTemplate "templates/default.html" indexCtx
>>= relativizeUrls
match "templates/*" $ compile templateBodyCompiler match "templates/*" $ compile templateBodyCompiler

View File

@ -14,9 +14,10 @@
<a href="/">rauhala.info</a> <a href="/">rauhala.info</a>
</div> </div>
<nav> <nav>
<a href="/">Home</a> <!-- Git logo from https://git-scm.com/downloads/logos -->
<!-- Logo by Jason Long -->
<a href="https://git.rauhala.info"><img src="/images/git_16.png" alt="git" /></a>
<a href="/guides.html">Guides</a> <a href="/guides.html">Guides</a>
<a href="/about.html">About</a>
<a href="/contact.html">Contact</a> <a href="/contact.html">Contact</a>
</nav> </nav>
</header> </header>