From 3e066c25b16860fcc3b2094105793c6c11d7f3e9 Mon Sep 17 00:00:00 2001 From: Paweł Dybiec Date: Tue, 31 Dec 2019 14:09:40 +0100 Subject: Who am I --- about.md | 5 ----- css/base.css | 4 ++-- index.html | 10 ---------- index.md | 12 ++++++++++++ site.hs | 15 +-------------- templates/default.html | 3 +-- 6 files changed, 16 insertions(+), 33 deletions(-) delete mode 100644 about.md delete mode 100644 index.html create mode 100644 index.md diff --git a/about.md b/about.md deleted file mode 100644 index 712273a..0000000 --- a/about.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -title: About ---- -## Who I am -My name is Paweł Dybiec diff --git a/css/base.css b/css/base.css index 2143bb7..697a33d 100644 --- a/css/base.css +++ b/css/base.css @@ -56,7 +56,7 @@ h3 { } @media screen and (min-width: 768px) { aside { - width: 20%; + width: 15%; height: 100%; position: fixed; top:0; @@ -67,7 +67,7 @@ h3 { width: 80%; position: absolute; top: 0; - left: 20%; + left: 15%; } } aside h1, aside h2, aside h3{ diff --git a/index.html b/index.html deleted file mode 100644 index f9d6e50..0000000 --- a/index.html +++ /dev/null @@ -1,10 +0,0 @@ ---- -title: Home ---- -
- -

Welcome

- -

Welcome to my website!

- -
diff --git a/index.md b/index.md new file mode 100644 index 0000000..3230111 --- /dev/null +++ b/index.md @@ -0,0 +1,12 @@ +--- +title: About me +--- +## Who I am +Hi! My name is Paweł Dybiec. +I was born in 1995, and spent most of my life in Wrocław, Poland. + +* master's student in Computer Science at [University of Wrocław](http://ii.uni.wroc.pl/) +* team leader in [Continuum Science Club](http://continuum.uni.wroc.pl/) 2018-2019 +* organizer of [Pizza contest](https://contest.pizza/) 2018 +* functional programming enthusiast +* operating systems enthusiast diff --git a/site.hs b/site.hs index b6c2724..3030101 100644 --- a/site.hs +++ b/site.hs @@ -21,7 +21,7 @@ main = hakyll $ do csses <- loadAll "css/*.css" makeItem $ unlines $ map itemBody csses - match (fromList ["about.md"]) $ do + match (fromList ["index.md"]) $ do route $ setExtension "html" compile $ pandocCompiler >>= loadAndApplyTemplate "templates/default.html" defaultContext @@ -50,19 +50,6 @@ main = hakyll $ do >>= relativizeUrls - match "index.html" $ do - route idRoute - compile $ do - --posts <- recentFirst =<< loadAll "posts/*" - let indexCtx = - --listField "posts" postCtx (return posts) `mappend` - constField "title" "Home" `mappend` - defaultContext - - getResourceBody - >>= applyAsTemplate indexCtx - >>= loadAndApplyTemplate "templates/default.html" indexCtx - >>= relativizeUrls match "templates/*" $ compile templateBodyCompiler diff --git a/templates/default.html b/templates/default.html index 979de47..7e61229 100644 --- a/templates/default.html +++ b/templates/default.html @@ -17,13 +17,12 @@ -- cgit 1.4.1