From af206575781f811983aebe2e032ae59b2452b80b Mon Sep 17 00:00:00 2001 From: crimist Date: Fri, 7 Jun 2024 00:14:57 -0400 Subject: [PATCH] readme: migrate old docs from notion --- README.md | 65 ++++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 62 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 06a7356..f555910 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Source code for Maple Bacon's team website. -## Build Instructions +## Build Instructions (Nix) Install [Nix](https://nixos.org/download) on any Linux (WSL2 on Windows) or macOS computer, and enable the `flakes` and `nix-command` experimental features @@ -22,9 +22,9 @@ and within the `nix develop` shell, jekyll ``` -## Build Instructions (with system Ruby) +## Build Instructions (system Ruby) -Check that you have Ruby installed and install `bundler`. +Ensure you have Ruby and Bundler installed: ```bash ruby -v @@ -53,3 +53,62 @@ infrastructure to build native extensions from source. After changing the gems, run `lock-gems` from the `nix develop` shell (or, `bundix -l`). This will update `gemset.nix`, used by the Nix infrastructure to automatically grab the proper Jekyll. + +## Creating a new author + +Create a new file with the following contents at the path `_authors/{short_name}.md`: + +* `short_name`: Your alias, must match your author file name. No spaces. This will displayed on blog posts and the article list. +* `name`: Your name or nickname for the about page. +* `position`: Categories you play in. Can be any or multiple of the following, comma separated: + * Web + * Crypto + * Misc + * Rev + * Pwn +* `website`: Link to your website or a social media account. +* `website_title`: Pretty name of your website - the content within the \ tag. +* `layout`: must be `author` + +Template: + +```md +--- +short_name: hackerman +name: John Doe +position: Web,Crypto,Misc,Rev,Pwn +website: https://www.web.site +website_title: web.site +layout: author +--- +Some description. +``` + +Finally, open a PR. + +## Creating blog posts + +Create a new file with the following contents at the path `_posts/{yyyy}-{mm}-{dd}-{ctf_name}-{challenge_name}.md`: + +* `layout`: must be `author` +* `title`: Name of your blog post, format is `"[{ctf_name}] {challenge_name}"` +* `author`: Authors `short_name`. Author must already exist in `_authors/`, see [creating a new author](#creating-a-new-author). + +Template: + +```md +--- +layout: post +title: "[FakeCTF 2024] Challenge Name" +author: hackerman +--- + +Post contents support *markdown*! +``` + +If your post has any assets place them in `assets/` and link the path appropriately in the post contents. + +> [!TIP] +> We should probably standardize the `assets/` format. It's currently a bit of a mess. + +Finally, test the post locally and open a PR.