Skip to content

Commit 9650c8c

Browse files
Feature/GitHub pages markdown (#9)
* Restore raw-markdown workflow; update index links and add download links (#6) * Adjust index links for kramdown workflow * Enable standard Jekyll front matter rendering * Drop front matter from book markdown * update branch * fixed?
1 parent 0214f58 commit 9650c8c

File tree

4 files changed

+89
-36
lines changed

4 files changed

+89
-36
lines changed

.github/workflows/pages.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ name: Deploy GitHub Pages
22

33
on:
44
push:
5-
branches:
6-
- main
5+
branches: ["main"]
76
workflow_dispatch:
87

98
permissions:
@@ -21,19 +20,24 @@ jobs:
2120
steps:
2221
- name: Checkout
2322
uses: actions/checkout@v4
23+
2424
- name: Setup Pages
2525
uses: actions/configure-pages@v5
26+
27+
- name: Build with Jekyll
28+
uses: actions/jekyll-build-pages@v1
29+
2630
- name: Upload artifact
2731
uses: actions/upload-pages-artifact@v3
2832
with:
29-
path: .
33+
path: "./_site"
3034

3135
deploy:
36+
runs-on: ubuntu-latest
37+
needs: build
3238
environment:
3339
name: github-pages
3440
url: ${{ steps.deployment.outputs.page_url }}
35-
runs-on: ubuntu-latest
36-
needs: build
3741
steps:
3842
- name: Deploy to GitHub Pages
3943
id: deployment

Gemfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
source "https://rubygems.org"
2+
3+
gem "jekyll", "~> 4.2"
4+
5+
group :jekyll_plugins do
6+
gem "jekyll-optional-front-matter"
7+
end

_config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ markdown: kramdown
33
kramdown:
44
input: GFM
55
hard_wrap: false
6+
plugins:
7+
- jekyll-optional-front-matter
8+
source: .
69
exclude:
710
- AGENTS.md
811
- Lares_A_CustomGPT_System_Prompt.md
@@ -12,9 +15,11 @@ future: true
1215
permalink: /:title/
1316
include: [".htaccess"]
1417
# Front Matter Defaults
18+
# optional defaults so you don't need layout in every file
1519
defaults:
1620
- scope:
1721
path: ""
22+
type: "pages"
1823
values:
1924
layout: "default"
2025
- scope:

index.html

Lines changed: 68 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@
4141
text-transform: uppercase;
4242
}
4343

44+
.repo-link a {
45+
color: var(--glow);
46+
text-decoration: none;
47+
}
48+
4449
.repo-link {
4550
margin: 0 0 16px;
4651
font-size: 1rem;
@@ -87,32 +92,46 @@
8792
text-transform: uppercase;
8893
}
8994

90-
.card a {
91-
color: var(--ink);
92-
text-decoration: none;
93-
display: inline-flex;
95+
.card-entry {
96+
display: flex;
97+
justify-content: space-between;
9498
align-items: center;
95-
gap: 8px;
99+
gap: 12px;
96100
padding: 8px 0;
97101
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
98-
transition: color 0.2s ease, border-color 0.2s ease;
99102
}
100103

101-
.card a:hover {
102-
color: var(--flare);
103-
border-color: rgba(255, 126, 95, 0.6);
104+
.card-entry:last-of-type {
105+
border-bottom: none;
104106
}
105107

106-
.download-link {
107-
border-bottom: none;
108-
padding: 8px 0 8px 8px;
108+
.card-entry a {
109+
color: var(--ink);
110+
text-decoration: none;
111+
}
112+
113+
.card-entry .nav-link {
114+
display: inline-flex;
115+
align-items: center;
116+
gap: 8px;
117+
flex: 1;
118+
}
119+
120+
.card-entry .download-link {
109121
color: var(--dust);
122+
border-bottom: none;
123+
padding: 0;
124+
transition: color 0.2s ease;
110125
}
111126

112-
.download-link:hover {
127+
.card-entry .download-link:hover {
113128
color: var(--glow);
114129
}
115130

131+
.card-entry .nav-link:hover {
132+
color: var(--flare);
133+
}
134+
116135
footer {
117136
padding: 24px clamp(24px, 6vw, 80px) 48px;
118137
color: rgba(231, 226, 217, 0.5);
@@ -144,28 +163,46 @@ <h2 class="repo-link">
144163
<section class="card">
145164
<h2>Repository Vaults</h2>
146165
<h3>SDM Core Modules</h3>
147-
<a href="Synthetic_Dream_Machine/index.html">Synthetic Dream Machine</a>
148-
<a class="download-link" href="Synthetic_Dream_Machine/Synthetic_Dream_Machine_01_Traits_Index.md" title="Download this markdown file">📥</a>
149-
<a href="UVG_Black_City_2e/index.html">UVG Black City 2e</a>
150-
<a class="download-link" href="UVG_Black_City_2e/UVG_Black_City_2e_01_Cover_Introduction_A-vi.md" title="Download this markdown file">📥</a>
151-
<a href="Vastlands_Guidebook/index.html">Vastlands Guidebook</a>
152-
<a class="download-link" href="Vastlands_Guidebook/Vastlands_Guidebook_01_Title_Introduction_1-9.md" title="Download this markdown file">📥</a>
153-
<a href="Our_Golden_Age_Preview/index.html">Our Golden Age Preview</a>
154-
<a class="download-link" href="Our_Golden_Age_Preview/SDM-Our_Golden_Age-Teaser_31_Going_Places_1-6.md" title="Download this markdown file">📥</a>
155-
<a href="Magitecnica/index.html">Magitecnica</a>
156-
<a class="download-link" href="Magitecnica/Magitecnica_01_Codex_1_The_Use_and_Misuse_of_Powers_Great_and_Small_1-27.md" title="Download this markdown file">📥</a>
166+
<div class="card-entry">
167+
<a class="nav-link" href="Synthetic_Dream_Machine/index.html">Synthetic Dream Machine</a>
168+
<a class="download-link" href="Synthetic_Dream_Machine/Synthetic_Dream_Machine_01_Traits_Index.md" title="Download this markdown file">📥</a>
169+
</div>
170+
<div class="card-entry">
171+
<a class="nav-link" href="UVG_Black_City_2e/index.html">UVG Black City 2e</a>
172+
<a class="download-link" href="UVG_Black_City_2e/UVG_Black_City_2e_01_Cover_Introduction_A-vi.md" title="Download this markdown file">📥</a>
173+
</div>
174+
<div class="card-entry">
175+
<a class="nav-link" href="Vastlands_Guidebook/index.html">Vastlands Guidebook</a>
176+
<a class="download-link" href="Vastlands_Guidebook/Vastlands_Guidebook_01_Title_Introduction_1-9.md" title="Download this markdown file">📥</a>
177+
</div>
178+
<div class="card-entry">
179+
<a class="nav-link" href="Our_Golden_Age_Preview/index.html">Our Golden Age Preview</a>
180+
<a class="download-link" href="Our_Golden_Age_Preview/SDM-Our_Golden_Age-Teaser_31_Going_Places_1-6.md" title="Download this markdown file">📥</a>
181+
</div>
182+
<div class="card-entry">
183+
<a class="nav-link" href="Magitecnica/index.html">Magitecnica</a>
184+
<a class="download-link" href="Magitecnica/Magitecnica_01_Codex_1_The_Use_and_Misuse_of_Powers_Great_and_Small_1-27.md" title="Download this markdown file">📥</a>
185+
</div>
157186
<h3>SDM Extensions Modules</h3>
158-
<a href="Elyncia/index.html">Elyncia: A Broken World (setting)</a>
159-
<a class="download-link" href="Elyncia/Elyncia_History_and_Noosphere_Guide_01_Elyncia_A_Broken_World.md" title="Download this markdown file">📥</a>
160-
<a href="Flying_Triremes_and_Laser_Swords/index.html">Flying Triremes and Laser Swords (FLTS mechanics)</a>
161-
<a class="download-link" href="Flying_Triremes_and_Laser_Swords/Flying_Triremes_and_Laser_Swords_01_Title_Introduction.md" title="Download this markdown file">📥</a>
187+
<div class="card-entry">
188+
<a class="nav-link" href="Elyncia/index.html">Elyncia: A Broken World (setting)</a>
189+
<a class="download-link" href="Elyncia/Elyncia_History_and_Noosphere_Guide_01_Elyncia_A_Broken_World.md" title="Download this markdown file">📥</a>
190+
</div>
191+
<div class="card-entry">
192+
<a class="nav-link" href="Flying_Triremes_and_Laser_Swords/index.html">Flying Triremes and Laser Swords (FLTS mechanics)</a>
193+
<a class="download-link" href="Flying_Triremes_and_Laser_Swords/Flying_Triremes_and_Laser_Swords_01_Title_Introduction.md" title="Download this markdown file">📥</a>
194+
</div>
162195
</section>
163196
<section class="card">
164197
<h2>Reference</h2>
165-
<a href="Synthetic-Dream-Machine-3rd-Party-License.html">Third-Party License</a>
166-
<a class="download-link" href="Synthetic-Dream-Machine-3rd-Party-License.md" title="Download this markdown file">📥</a>
167-
<a href="docs/index.html">Docs Site</a>
168-
<a class="download-link" href="docs/index.md" title="Download this markdown file">📥</a>
198+
<div class="card-entry">
199+
<a class="nav-link" href="Synthetic-Dream-Machine-3rd-Party-License.html">Third-Party License</a>
200+
<a class="download-link" href="Synthetic-Dream-Machine-3rd-Party-License.md" title="Download this markdown file">📥</a>
201+
</div>
202+
<div class="card-entry">
203+
<a class="nav-link" href="docs/index.html">Docs Site</a>
204+
<a class="download-link" href="docs/index.md" title="Download this markdown file">📥</a>
205+
</div>
169206
</section>
170207
</main>
171208
<footer>

0 commit comments

Comments
 (0)