Skip to content

Commit 933812e

Browse files
committed
revert Commit
1 parent a28bbe8 commit 933812e

51 files changed

Lines changed: 11 additions & 1584 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/build-website.yml

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,6 @@ jobs:
4141
bundle install --jobs 4 --retry 3
4242
npm install
4343
bundle pristine ffi
44-
- name: Generate writeups from writeup.md
45-
run: |
46-
# For any collection folder that contains a single writeup.md, run the parser
47-
# so it generates per-challenge markdown files before the Jekyll build.
48-
cd website
49-
for d in writeups/*; do
50-
if [ -f "$d/writeup.md" ]; then
51-
echo "Parsing $d"
52-
(cd "$d" && bundle exec ruby ../../../bin/parse-writeup.rb)
53-
fi
54-
done
5544
# END Dependencies
5645
- name: Build Site
5746
run: |
@@ -61,17 +50,9 @@ jobs:
6150
export PATH=/home/runner/.local/bin:$PATH
6251
JEKYLL_ENV=production bundle exec jekyll build --strict_front_matter -d _site/
6352
64-
- name: Add CNAME to publish directory
65-
run: |
66-
# ensure the CNAME in repo root is copied into the generated site so GitHub Pages uses the custom domain
67-
if [ -f CNAME ]; then
68-
mkdir -p website/_site
69-
cp CNAME website/_site/CNAME
70-
fi
7153
- name: Deploy 🚀
7254
uses: peaceiris/actions-gh-pages@v3
7355
with:
74-
github_token: ${{ secrets.GITHUB_TOKEN }}
56+
github_token: ${{ secrets.TOKEN }}
7557
publish_dir: ./website/_site/
7658
publish_branch: gh-pages
77-

bin/parse-writeup.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def process(doc)
7777
}
7878

7979
overview_idx = parts.index{|res| res[:title] == "Overview" }
80-
if overview_idx && overview_idx < 3
80+
if overview_idx < 3
8181
parts = parts[(overview_idx + 1)..]
8282
end
8383

website/_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ collections:
136136
output: true
137137
sort_by: order
138138
writeups:
139-
output: true
139+
output: false
140140

141141
defaults:
142142
- scope:

website/_layouts/writeup.html

Lines changed: 8 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,11 @@
33
---
44

55
<h1> {{ page.title }} </h1>
6-
+
7-
+
8-
+{%- comment -%}
9-
+Render the rendered content block first. Some builds may render `content` empty depending on how the page is generated.
10-
+Fallback to `page.content` (markdownified) so the raw markdown still displays.
11-
+{%- endcomment -%}
12-
+
13-
+{%- if content and content != "" -%}
14-
+ {{ content }}
15-
+{%- else -%}
16-
+ {{ page.content | markdownify }}
17-
+{%- endif -%}
18-
+
19-
+
20-
+<h2> Flag </h2>
21-
+
22-
+<code>
23-
+{{ page.flag }}
24-
+</code>
25-
+
26-
+
27-
+
28-
*** End Patch
6+
7+
{{ content }}
8+
9+
<h2> Flag </h2>
10+
11+
<code>
12+
{{page.flag}}
13+
</code>

website/writeups/CyberConverge 2025/01-around-the-world.md

Lines changed: 0 additions & 25 deletions
This file was deleted.

website/writeups/CyberConverge 2025/02-Big-machine.md

Lines changed: 0 additions & 39 deletions
This file was deleted.

website/writeups/CyberConverge 2025/03-breach.md

Lines changed: 0 additions & 24 deletions
This file was deleted.

website/writeups/CyberConverge 2025/04-Cathedral.md

Lines changed: 0 additions & 25 deletions
This file was deleted.

website/writeups/CyberConverge 2025/05-easy-file.md

Lines changed: 0 additions & 33 deletions
This file was deleted.

website/writeups/CyberConverge 2025/06-Hidden-Layers.md

Lines changed: 0 additions & 42 deletions
This file was deleted.

0 commit comments

Comments
 (0)