diff options
-rw-r--r-- | config.toml | 5 | ||||
-rw-r--r-- | content/_index.md | 19 | ||||
-rw-r--r-- | content/projects.md | 71 | ||||
-rw-r--r-- | layouts/_default/list.html | 2 | ||||
-rw-r--r-- | layouts/_default/single.html | 5 | ||||
-rw-r--r-- | layouts/partials/footer.html | 7 | ||||
-rw-r--r-- | layouts/partials/header.html | 2 | ||||
-rw-r--r-- | layouts/shortcodes/recent_blog.html | 9 | ||||
-rw-r--r-- | static/css/common.css | 77 | ||||
-rw-r--r-- | static/css/styles.css | 8 |
10 files changed, 99 insertions, 106 deletions
diff --git a/config.toml b/config.toml index 67b23df..66a2175 100644 --- a/config.toml +++ b/config.toml @@ -35,11 +35,6 @@ identifier = "Projects" name = "Projects" url = "/projects/" weight = 5 -[[menu.main]] -identifier = "Wiki" -name = "Wiki" -url = "https://wiki.marks.kitchen/public" -weight = 6 [markup] [markup.goldmark] diff --git a/content/_index.md b/content/_index.md index f9b7b0d..5aabf7b 100644 --- a/content/_index.md +++ b/content/_index.md @@ -1,20 +1,13 @@ --- title: "Mark's Kitchen" -date: 2022-07-18T20:37:25-05:00 +date: 2024-10-27T20:37:25-05:00 --- -Welcome to my website! -Software Projects: -- [Gitweb](https://git.marks.kitchen) +# [Projects](/projects): +- [Personal Git](https://git.marks.kitchen) - [GitHub](https://github.com/Mark-Powers) - [Games](https://games.marks.kitchen/) -- [All projects](/projects) -Writing -- [Blog](/blog) -- [Wiki](https://wiki.marks.kitchen/public) - -Follow: -- [Mastodon](https://fosstodon.org/@markp) -- [RSS feed](/index.xml) -- [Email](https://email.marks.kitchen) +# [Blog](/blog) +## Recent posts: + {{< recent_blog >}} diff --git a/content/projects.md b/content/projects.md index 4a1f480..ab56402 100644 --- a/content/projects.md +++ b/content/projects.md @@ -4,58 +4,46 @@ date: 2022-07-13T21:26:49-05:00 --- # A collection of my projects, mostly programming -## [Daily RSS Server](https://git.marks.kitchen/?p=daily_rss_server.git;a=summary) +## [Daily RSS Server](https://git.marks.kitchen/?p=daily_rss_server.git;a=summary) - *2022-02* A server that just hosts an RSS feed. This feed is populated daily with items that change based on the day, such as upcoming holidays, links to newspaper comics, and fetching journal entries from historical ebooks. -*2022-02* - -## [wikijscmd](https://git.marks.kitchen/mark/wikijscmd) +## [wikijscmd](https://git.marks.kitchen/mark/wikijscmd) - *2020-10* I use wiki.js for my personal wiki. I wanted a simple client I could use for it and a command line one would also allow for me to script it. The wiki comes built in with a GraphQL API, so I learned some GraphQL and created a python wrapper that allows for managing and editing of wiki.js content over this API. -*2020-10* - -## [Pi Weather Station](https://git.marks.kitchen/mark/pi-weather-station) +## [Pi Weather Station](https://git.marks.kitchen/mark/pi-weather-station) - *2020-09* I set up a sensor on a raspberry pi zero to measure the temperature, pressure, and humidity. This project is a web site that runs on the pi that plots the data over time. In the future I'd like to make the plots nicer, and include outdoor temperature data as well. -*2020-09* - -## [Local Podcast Generator](https://git.marks.kitchen/mark/local-podcast-generator) +## [Local Podcast Generator](https://git.marks.kitchen/mark/local-podcast-generator) - *2020-09* I had some audio files on my phone I wanted to listen to like a podcast. My podcast app is way better for this type of content than a general purpose media player. So this app will locally create a web server that serves an rss feed generated from a directory on your phone. This can be added like any other podcast in your favorite app. -*2020-09* - -## File Feed +## File Feed - *2020-08* I found myself wanting to browse social feeds a lot, and wanting new content. I have a lot of documents on my file of things I haven't explored yet. So this program tries to merge the two: a generated feed of files on my computer. -*2020-08* - -## [Games](https://games.marks.kitchen) +## [Games](https://games.marks.kitchen) - *2020-04* A collection of HTML5 games that I've made. When I have some fun idea, I'll host it here. It has high scores for some games too, and a scoreboard. I am pretty proud of how this website turned out, it is what I wanted to have when I was a kid. -*2020-04* - -## Backdoor Learning on Models of Code +## Backdoor Learning on Models of Code - *2020-04* A class project where I studied how to poison training datasets of source code to create backdoors in a model predicting a function name based on @@ -66,40 +54,34 @@ successfully learned. I implemented the Sever algorithm which attempts to find and remove poisoned data, but it was unsuccessful at doing so on the code2seq model architecture. -*2020-04* - ## Multi-level Wavelet-CNN HDR Image Reconstruction from Single Exposures A class project that used MWCNNs to reconstruct images. On HDR single exposure images, white balancing often clips values. The novel wavelet approach was able to reconstruct image detail in a realistic way. -## Budget +## Budget - *2019-12* My website I made to host manage my budget. It functions a lot like a spreadsheet, with some more advanced features and an easier interface to use. It is multiuser, and if you are interested in using it send me an email. -*2019-12* -## Synthesis Refactoring +## Synthesis Refactoring - *2019-10* For class, I did a project using program synthesis to refactor programs. The program tried to find areas inside source code that could be extracted into methods. It sort of works, and in the future it could really be improved by using compilers techniques. I also made web frontend for it. -*2019-10* - -## Cosmic-Cargo +## Cosmic-Cargo - *2019-08* A game I worked on with some friends for GBJAM 2019, and is Oregon Trail, in space. This game was made over the course of a week, and can be played at [this_link](https://seafarerscafe.itch.io/cosmic-cargo) -*2019-08* -## Telegram Plugin Bot +## Telegram Plugin Bot - *2017-11, then 2019-10* A custom Telegram bot I wrote in python that allowed for custom plugins. This made it super easy to add functionality to a bot, and it made @@ -108,26 +90,21 @@ my group chat with friends lively. This project has now been suceeded by a in Java. It was difficult to manage loading and unloading in Python, and wrapping the API by hand made it difficult to expand beyond basic messages. -*2017-11, then 2019-10* -## Telegram Arcade +## Telegram Arcade - *2019-05* A general purpose bot and web server to play Telegram HTML5 games. I couldn't find any existing solutions that allowed me to deploy these games easily, so I wrote my own. The API is not well documented, and I wrote a bit about it in a blog post. -*2019-05* - -## marks.database +## marks.database - *2019-03* A personal database management system I wrote in order to keep track of a lot of things. I use this as a bookmark manager, a recipe and pantry organizer, and a way to store lots of other things too. -*2019-03* - -## Read-Length +## Read-Length - *2019-02* A firefox extension that adds the reading length of a website to the title of a page. This was my first web extension, and its technique @@ -135,35 +112,25 @@ for finding paragraph content doesn't work great. It works well in firefox on Ubuntu, as the window bar will display the title with the updated reading time. -*2019-02* +## marks.kitchen - *2019-01* -## marks.kitchen - -The engine behind this website. I wanted to learn more about +The engine behind my previous website. I wanted to learn more about back-end servers, and creating a way to me to update this website dynamically. I wrote a blog post about the making. -*2019-01* - -## Compiler +## Compiler - *2018-10* A compiler I worked on as an indepedent study during undergrad, implementing techniques from "Compilers: Principles, Techniques, and Tools". I also wrote a small stack based [virtual machine](https://github.com/Mark-Powers/stackvm) that runs the generated code -*2018-10* - -## Streetcard +## Streetcard - *2017-10* A general purpose card game engine. I wanted to test out some strategies for card games, so I tried to write an engine for it. I didn't finish it, but you can play some basic card games in this engine. -*2017-10* - -## Roguelike +## Roguelike - *2017-01* A rogue-like demo game I made just for fun while I was on winter break one year. - -*2017-01* diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 45c8631..b33da49 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -13,7 +13,7 @@ <ul> {{ range .Pages }} <li> - <a class="link" href="{{ .RelPermalink }}">{{ .Title }} <i class="item-date"> --- {{ .PublishDate.Format "January 2, 2006"}}</i></a> + <a href="{{ .RelPermalink }}">{{ .Title }}</a> - <i class="item-date">{{ .PublishDate.Format "January 2, 2006"}}</i> </li> {{ end }} </ul> diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 52e9c13..50810e9 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -4,8 +4,9 @@ {{ define "main" }} <main id="main" class="post"> - <h1>{{ .Title }}</h1> + <h1 class="title">{{ .Title }}</h1> <div><i>{{ .PublishDate.Format "January 2, 2006"}}</i></div> + <hr> <article class="content"> {{ .Content }} </article> @@ -13,7 +14,7 @@ <div> <b>Keywords: </b> {{ range .Params.tags }} - <a class="link" href='{{ "tags" | absURL }}/{{ . | urlize }}'>#{{ . }}</a> + <a href='{{ "tags" | absURL }}/{{ . | urlize }}'>#{{ . }}</a> {{ end }} </div> {{ end }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index ecf9420..b6b233a 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,3 +1,8 @@ <footer> - <div>Mark Powers <<span class="email">mark</span>> © 2023 </div> + <hr /> + <div>Mark Powers <<span class="email">mark</span>> © 2024 </div> + <div class="links"> + <span><a href="https://fosstodon.org/@markp">Mastodon</a></span> + <span><a href="/index.xml">RSS</a></span> + </div> </footer> diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 97fec62..1099258 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -6,7 +6,7 @@ <nav> {{ range .Site.Menus.main }} <span class="nav-bar-item"> - <a class="link" href="{{ .URL | safeURL }}">{{ .Name }}</a> + <a href="{{ .URL | safeURL }}">{{ .Name }}</a> </span> {{ end }} </nav> diff --git a/layouts/shortcodes/recent_blog.html b/layouts/shortcodes/recent_blog.html new file mode 100644 index 0000000..8a4ec89 --- /dev/null +++ b/layouts/shortcodes/recent_blog.html @@ -0,0 +1,9 @@ +<ul> +{{ range first 3 (where .Site.RegularPages "Section" "blog") }} + <li class="post"> + {{.BundleType}} + <span><a href="{{ .Permalink }}">{{ .Title }}</a></span> - <span>{{ .Date.Format "January 2, 2006" }}</span> + <p>{{ .Summary }}</p> + </li> +{{ end }} +</ul>
\ No newline at end of file diff --git a/static/css/common.css b/static/css/common.css index 0a248e5..e30f323 100644 --- a/static/css/common.css +++ b/static/css/common.css @@ -1,6 +1,7 @@ html { max-width: 70ch; - padding: 3em 1em; + padding-left: 1em; + padding-right: 1em; margin: auto; line-height: 1.75; font-size: 1.25em; @@ -40,10 +41,6 @@ html { padding: 0; } -a { - color: inherit; -} - time { color: gray; margin-left: 1rem; @@ -90,13 +87,18 @@ body { /* header */ #header { - align-items: center; + align-items: end; display: flex; - flex-direction: column; + flex-direction: row; } #header > h1 { - text-align: center; + line-height: 1; +} + +#header > h1 a { + text-decoration: none; + color: inherit; } @media screen and (min-width: 768px) { @@ -118,9 +120,18 @@ body { flex-wrap: wrap; max-width: 768px; width: 100%; - margin: 1rem; } +.nav-bar-item a { + border: 1px solid black; + border-radius: 4px; + margin: 0.2rem; + padding: 0.2rem; + text-decoration: none; + color: inherit; +} + + #header > nav > span > a { font-size: 1.2rem; } @@ -150,9 +161,13 @@ footer { margin-bottom: 0; } -.content a { - color: #AA0000; - text-decoration: underline; +hr { + margin-bottom: 1rem; + width: 100% +} + +footer .links a { + margin: 0.5rem; } .content a.footnote-ref::before { @@ -195,27 +210,31 @@ footer { .content h1, .content h2, .content h3, .content h4, .content h5, .content h6 { - line-height: 1.5; + line-height: 1; +} + +h1.title { + font-size: 2rem; } .content h1 { - font-size: 2.4rem; + font-size: 1.8rem; } .content h2 { - font-size: 1.8rem; + font-size: 1.2rem; } .content h3 { - font-size: 1.4rem; + font-size: 1.1rem; } .content h4 { - font-size: 1.2rem; + font-size: 1rem; } .content h5 { - font-size: 1.1rem; + font-size: 1rem; } .content h6 { @@ -228,6 +247,7 @@ footer { .content p { text-align: justify; + padding: 0.2rem; } .content pre { @@ -270,19 +290,30 @@ footer { margin-left: 1.5rem; } +li { + margin-bottom: 0.5rem; +} + +.email::after { + content: "@marks.kitchen"; +} + dl > dt { font-weight: bold; } dd { + margin-bottom: 1em; + margin-left: 2em; padding-left: 2em; padding-bottom: 1em; } -li { - margin-bottom: 0.5rem; +li.post summary { + list-style: none; } -.email::after { - content: "@marks.kitchen"; -} +li.post p { + padding-left: 1.5rem; + padding-right: 1.5rem; +}
\ No newline at end of file diff --git a/static/css/styles.css b/static/css/styles.css index 2d42220..e69de29 100644 --- a/static/css/styles.css +++ b/static/css/styles.css @@ -1,8 +0,0 @@ -dl > dt { - font-weight: bold; -} - -dd { - margin-bottom: 1em; - margin-left: 2em; -} |