Skip to content

Commit 5572792

Browse files
committed
Point LLMs to Markdown pages
1 parent 3c69d9b commit 5572792

4 files changed

Lines changed: 10 additions & 0 deletions

File tree

_config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ baseurl: ""
66
url: "https://csswizardry.com"
77
future: true
88
cloudinary: "https://res.cloudinary.com/csswizardry/image/fetch/f_auto,q_auto/https://csswizardry.com"
9+
markdown_source_base: "https://raw.githubusercontent.com/csswizardry/csswizardry.github.com/refs/heads/master/"
910

1011
# Build settings
1112
markdown: kramdown

_layouts/feature.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99

1010
<h1 elementtiming=page-title>{{ page.title }}</h1>
1111

12+
{% assign markdown_source = site.markdown_source_base | append: page.path %}
13+
<p class=hide><a href="{{ markdown_source }}">View this page as Markdown.</a></p>
14+
1215
{{ content }}
1316

1417
<script>performance.mark('contentEnd')</script>

_layouts/page.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212

1313
<h1 elementtiming="page-title">{{ page.title }}</h1>
1414

15+
{% assign markdown_source = site.markdown_source_base | append: page.path %}
16+
<p class=hide><a href="{{ markdown_source }}">View this page as Markdown.</a></p>
17+
1518
{{ content }}
1619

1720
<script>performance.mark('contentEnd')</script>

_layouts/post.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ <h1 itemprop="name headline" elementtiming=page-title style="view-transition-na
2828

2929
<p class=hide>Written by <b itemprop=author>Harry Roberts</b> on <b itemprop=publisher>CSS Wizardry</b>.</p>
3030

31+
{% assign markdown_source = site.markdown_source_base | append: page.path %}
32+
<p class=hide><a href="{{ markdown_source }}">View this page as Markdown.</a></p>
33+
3134
{% if page.case-study != true %}
3235

3336
{% endif %}

0 commit comments

Comments
 (0)