From 7cf92ba05f0ba155e495b73dad43f03bf44bd384 Mon Sep 17 00:00:00 2001 From: Nicholas Lamicela Date: Sun, 15 Sep 2024 11:58:13 -0700 Subject: [PATCH] integrate old home page into new site --- _includes/layouts/base.njk | 2 +- content/{blog => }/index.css | 26 ++++++--------- content/index.md | 63 ++++++++++++++++++++++++++++++++++++ content/index.njk | 28 ---------------- 4 files changed, 74 insertions(+), 45 deletions(-) rename content/{blog => }/index.css (93%) create mode 100644 content/index.md delete mode 100644 content/index.njk diff --git a/_includes/layouts/base.njk b/_includes/layouts/base.njk index 3f2314b..1192eff 100644 --- a/_includes/layouts/base.njk +++ b/_includes/layouts/base.njk @@ -8,7 +8,7 @@ - + diff --git a/content/blog/index.css b/content/index.css similarity index 93% rename from content/blog/index.css rename to content/index.css index 273202a..c945741 100644 --- a/content/blog/index.css +++ b/content/index.css @@ -63,17 +63,10 @@ a[href] { color: var(--text-color-link); } -main { - padding: 1rem; -} -main :first-child { - margin-top: 0; -} - .links-nextprev { list-style: none; - border-top: 1rem double var(--xkcd-magenta); - padding: 1em 0; + border-top: 12px double var(--xkcd-magenta); + padding: 20px 0; } table { @@ -207,8 +200,14 @@ a[href].header-anchor:focus, color: #aaa; } -h2 + .header-anchor { - font-size: 1.5em; +h1:not(:has(+h2)) { + padding-bottom: 20px; + border-bottom: 12px double var(--xkcd-magenta); +} + +h2 { + padding-top: 20px; + border-top: 12px double var(--xkcd-magenta); } img { @@ -217,8 +216,3 @@ img { width: auto; height: auto; } - -h1 { - padding-bottom: 1rem; - border-bottom: 1rem double var(--xkcd-magenta); -} diff --git a/content/index.md b/content/index.md new file mode 100644 index 0000000..8dfe83a --- /dev/null +++ b/content/index.md @@ -0,0 +1,63 @@ +--- +layout: layouts/home.njk +title: nycki.net +--- +# {{ title }} + +## Welcome! + +My name is Nycki ([ˈnɪki](http://ipa-reader.xyz/?text=%CB%88n%C9%AAki)) (she/they), and [this is a website!](http://hrwiki.org/wiki/First_Time_Here%3F) + +## Contact + +Some of these will change as I transition from my old internet name 'Nupa' to my new one 'Nycki'. It's just personal preference, I'll still answer to either name for the time being. + +- +- +- + +## Blog + +[blog!](/blog) + +[rss!](/blog/feed.xml) + +## Creations + +Stuff I've made! + +### Braceless Javascript +2018\. a couple of short programs written in browser JavaScript, with the special restriction that I can't use any instructions that require curly braces, like 'if' or 'for'. instead, I replace these instructions with ternaries and lambdas, which makes this a functional programming exercise! + +[Fizzbuzz source on GitHub](https://github.com/nycki93/braceless-javascript/blob/master/fizzbuzz.html) + +[99 bottles source on GitHub](https://github.com/nycki93/braceless-javascript/blob/master/bottles.html) + +### Portal ZZT + +2008\. A ZZT game inspired by Portal. Available at the Museum of ZZT. + +[PortalZZT in the Museum of ZZT](https://museumofzzt.com/file/p/PortalZZT_v0_5.zip) + +### ZZT Nanogames + +2008\. A collection of ZZT games that use only one screen each. Also includes _Eight Legged Express_, which I believe was made in one weekend as a challenge. + +[ZZT Nanogames in the Museum of ZZT](https://museumofzzt.com/file/n/nanopack01.zip) + +### Collabyrinth + +2008\. A collaborative labyrinth made in ZZT. I organized this collaboration on the z2 forums. + +[Collabyrinth in the Museum of ZZT](https://museumofzzt.com/file/c/clbrnth1.zip) + +### Traps and Zoids + +2007\. Some hand-drawn cartoons and very old web design. Good old HTML 4.0 Transitional. + +[Local mirror](/2007) | [Wayback Machine](https://web.archive.org/web/20071101001849/http://nick.lamicela.org/) + +## Log + +- 2023-12-14. Updated this website to use markdown, via pandoc and make. +- 2024-09-15. Redid the build process in Eleventy. diff --git a/content/index.njk b/content/index.njk deleted file mode 100644 index c23cd54..0000000 --- a/content/index.njk +++ /dev/null @@ -1,28 +0,0 @@ ---- -layout: layouts/home.njk -eleventyNavigation: - key: Home - order: 1 -numberOfLatestPostsToShow: 3 ---- -{% set postsCount = collections.posts | length %} -{% set latestPostsCount = postsCount | min(numberOfLatestPostsToShow) %} -

Latest {{ latestPostsCount }} Post{% if latestPostsCount != 1 %}s{% endif %}

- -{% set postslist = collections.posts | head(-1 * numberOfLatestPostsToShow) %} -{% set postslistCounter = postsCount %} -{% include "postslist.njk" %} - -{% set morePosts = postsCount - numberOfLatestPostsToShow %} -{% if morePosts > 0 %} -

{{ morePosts }} more post{% if morePosts != 1 %}s{% endif %} can be found in the archive.

-{% endif %} - -{# List every content page in the project #} -{# - -#}