2
2
3
3
Source code for Maple Bacon's team website.
4
4
5
- ## Build Instructions
5
+ ## Build Instructions (Nix)
6
6
7
7
Install [ Nix] ( https://nixos.org/download ) on any Linux (WSL2 on Windows) or
8
8
macOS computer, and enable the ` flakes ` and ` nix-command ` experimental features
@@ -22,9 +22,9 @@ and within the `nix develop` shell,
22
22
jekyll <build|serve>
23
23
```
24
24
25
- ## Build Instructions (with system Ruby)
25
+ ## Build Instructions (system Ruby)
26
26
27
- Check that you have Ruby installed and install ` bundler ` .
27
+ Ensure you have Ruby and Bundler installed:
28
28
29
29
``` bash
30
30
ruby -v
@@ -53,3 +53,62 @@ infrastructure to build native extensions from source.
53
53
After changing the gems, run ` lock-gems ` from the ` nix develop ` shell (or,
54
54
` bundix -l ` ). This will update ` gemset.nix ` , used by the Nix infrastructure
55
55
to automatically grab the proper Jekyll.
56
+
57
+ ## Creating a new author
58
+
59
+ Create a new file with the following contents at the path ` _authors/{short_name}.md ` :
60
+
61
+ * ` short_name ` : Your alias, must match your author file name. No spaces. This will displayed on blog posts and the article list.
62
+ * ` name ` : Your name or nickname for the about page.
63
+ * ` position ` : Categories you play in. Can be any or multiple of the following, comma separated:
64
+ * Web
65
+ * Crypto
66
+ * Misc
67
+ * Rev
68
+ * Pwn
69
+ * ` website ` : Link to your website or a social media account.
70
+ * ` website_title ` : Pretty name of your website - the content within the \< a> tag.
71
+ * ` layout ` : must be ` author `
72
+
73
+ Template:
74
+
75
+ ``` md
76
+ ---
77
+ short_name: hackerman
78
+ name: John Doe
79
+ position: Web,Crypto,Misc,Rev,Pwn
80
+ website: https://www.web.site
81
+ website_title: web.site
82
+ layout: author
83
+ ---
84
+ Some description.
85
+ ```
86
+
87
+ Finally, open a PR.
88
+
89
+ ## Creating blog posts
90
+
91
+ Create a new file with the following contents at the path ` _posts/{yyyy}-{mm}-{dd}-{ctf_name}-{challenge_name}.md ` :
92
+
93
+ * ` layout ` : must be ` author `
94
+ * ` title ` : Name of your blog post, format is ` "[{ctf_name}] {challenge_name}" `
95
+ * ` author ` : Authors ` short_name ` . Author must already exist in ` _authors/ ` , see [ creating a new author] ( #creating-a-new-author ) .
96
+
97
+ Template:
98
+
99
+ ``` md
100
+ ---
101
+ layout: post
102
+ title: "[FakeCTF 2024] Challenge Name"
103
+ author: hackerman
104
+ ---
105
+
106
+ Post contents support *markdown*!
107
+ ```
108
+
109
+ If your post has any assets place them in ` assets/ ` and link the path appropriately in the post contents.
110
+
111
+ > [ !TIP]
112
+ > We should probably standardize the ` assets/ ` format. It's currently a bit of a mess.
113
+
114
+ Finally, test the post locally and open a PR.
0 commit comments