1
0
Fork 0

update site code

master
Rostyslav Hnatyshyn 1 year ago
parent af31d25f52
commit 0d19f65c9c
  1. 26
      css/default.scss
  2. 28
      index.html
  3. 20
      site.hs
  4. 2
      templates/default.html
  5. 2
      templates/post-list.html
  6. 1
      templates/post.html
  7. 9
      templates/pub-list.html

@ -1,10 +1,9 @@
$bg-color: #F3F8F1;
$primary-color: #0197F6;
$secondary-color: #D7263D;
$primary-color: #D7263D;
$secondary-color: #984EA3;
html {
font-family: Hack, monospace;
font-size: 80%;
font-family: "Iosevka", sans;
background-color: $bg-color;
}
@ -23,7 +22,6 @@ a:visited {
body {
font-size: 1.6rem;
color: #000;
}
header {
@ -150,3 +148,21 @@ article .header {
font-size: 1.8rem;
}
}
img {
border: 1px solid;
margin: auto;
display: block;
max-width:50%;
}
.modded {
color: grey;
}
code {
color: white;
background-color: #212121;
font-family: monospace;
padding: 0 3px;
}

@ -1,20 +1,24 @@
---
title: Welcome
title: Home
---
<h2>About me</h2>
<p>My name is (R)ostyslav Hnaty(shyn), but I go by Rosty.
I am a first year PhD student at Arizona State University.
My primary research interests are computer graphics, data visualization and algorithm design.
I currently work as an intern at Los Alamos National Laboratory, and I am also a research assistant at the VADER lab at ASU. My resume is available <a href="/files/Rostyslav_Hnatyshyn_resume.pdf">here</a>.</p>
<p>This website aims to document some of my interests and the projects that I have been working on, both in and out of school.
It is written in Haskell using <a href="https://jaspervdj.be/hakyll/index.html">Hakyll</a>, and the source code is available <a href="https://git.rshyn.site/rostyhn/rshyn-site">here</a>.
<p>
My name is (R)ostyslav Hnaty(shyn), but I go by Rosty.
I am a second year PhD student at Arizona State University.
My resume is available <a href="/files/Rostyslav_Hnatyshyn_resume.pdf">here</a>.
</p>
<h2>Research</h2>
<p>My master's thesis focused on building a visual analytics system for working with molecular dynamics simulations.
It can be viewed in full without any copyright <a href="/files/thesis_final.pdf">here</a>.
The development of the system is still on-going, and I plan to submit it in its final form to EuroVIS 2023.</p>
<p>
This website aims to document some of my interests and the projects that I have been working on, both in and out of school.
It is generated using <a href="https://jaspervdj.be/hakyll/index.html">Hakyll</a>; the source code is available <a href="https://git.rshyn.site/rostyhn/rshyn-site">here</a>.
</p>
<p>
<b>All of the opinions expressed on this site are my own and do not represent the views of my employers.</b>
</p>
<h2>Publications</h2>
$partial("templates/pub-list.html")$
<h2>Posts</h2>
$partial("templates/post-list.html")$

@ -41,13 +41,21 @@ main = hakyllWith config $ do
>>= loadAndApplyTemplate "templates/default.html" postCtx
>>= relativizeUrls
match "publications/*" $ do
route $ setExtension "html"
compile $
pandocCompiler
>>= loadAndApplyTemplate "templates/post.html" postCtx
>>= loadAndApplyTemplate "templates/default.html" postCtx
>>= relativizeUrls
match "index.html" $ do
route idRoute
compile $ do
posts <- recentFirst =<< loadAll "posts/*"
let indexCtx =
listField "posts" postCtx (return posts)
`mappend` defaultContext
posts <- loadAll "posts/*"
pubs <- loadAll "publications/*"
let indexCtx = listField "publications" postCtx (return pubs) <> listField "posts" postCtx (return posts) `mappend` defaultContext
getResourceBody
>>= applyAsTemplate indexCtx
@ -58,6 +66,4 @@ main = hakyllWith config $ do
--------------------------------------------------------------------------------
postCtx :: Context String
postCtx =
dateField "date" "%B %e, %Y"
`mappend` defaultContext
postCtx = modificationTimeField "modded" "%B %e, %Y" `mappend` defaultContext

@ -4,7 +4,7 @@
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>rshyn.site - $title$</title>
<title>rshyn.site</title>
<link rel="stylesheet" href="/css/default.css" />
</head>
<body>

@ -2,7 +2,7 @@
$if(posts)$
$for(posts)$
<li>
<a href="$url$">$title$</a> - $date$
<a href="$url$">$title$</a> - $modded$
</li>
$endfor$
$endif$

@ -7,4 +7,5 @@
<section>
$body$
</section>
<span class="modded"><em>Last modified: $modded$</em></span>
</article>

@ -0,0 +1,9 @@
<ul>
$if(publications)$
$for(publications)$
<li>
<a href="$url$">$title$</a> - $published$
</li>
$endfor$
$endif$
</ul>
Loading…
Cancel
Save