Skip to content

Commit f4ae7d2

Browse files
committed
Surface alternate Markdown source via rel=alternate
1 parent 0ac2269 commit f4ae7d2

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

_includes/head.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010

1111
<title>{{ page.title }} {% if paginator and paginator.page > 1 %}Blog – Page {{ paginator.page }} {% endif %}– CSS Wizardry</title>
1212

13+
{% if page.layout == "post" and page.path contains ".md" %}
14+
{% assign markdown_source = site.markdown_source_base | append: page.path %}
15+
<link rel=alternate type=text/markdown href="{{ markdown_source }}" title="{{ page.title }} in Markdown">
16+
{% endif %}
17+
1318
{% if page.layout != "feature" %}
1419
<link rel=preconnect href=https://res.cloudinary.com>
1520
{% endif %}

0 commit comments

Comments
 (0)