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; $bg-color: #F3F8F1;
$primary-color: #0197F6; $primary-color: #D7263D;
$secondary-color: #D7263D; $secondary-color: #984EA3;
html { html {
font-family: Hack, monospace; font-family: "Iosevka", sans;
font-size: 80%;
background-color: $bg-color; background-color: $bg-color;
} }
@ -23,7 +22,6 @@ a:visited {
body { body {
font-size: 1.6rem; font-size: 1.6rem;
color: #000;
} }
header { header {
@ -150,3 +148,21 @@ article .header {
font-size: 1.8rem; 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>
<p>My name is (R)ostyslav Hnaty(shyn), but I go by Rosty. My name is (R)ostyslav Hnaty(shyn), but I go by Rosty.
I am a first year PhD student at Arizona State University. I am a second year PhD student at Arizona State University.
My primary research interests are computer graphics, data visualization and algorithm design. My resume is available <a href="/files/Rostyslav_Hnatyshyn_resume.pdf">here</a>.
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> </p>
<h2>Research</h2> <p>
<p>My master's thesis focused on building a visual analytics system for working with molecular dynamics simulations. 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 can be viewed in full without any copyright <a href="/files/thesis_final.pdf">here</a>. 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>.
The development of the system is still on-going, and I plan to submit it in its final form to EuroVIS 2023.</p> </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> <h2>Posts</h2>
$partial("templates/post-list.html")$ $partial("templates/post-list.html")$

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

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

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

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

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