Skip to content

Commit 61b45e2

Browse files
committed
Impl sitemap
1 parent 8d286a5 commit 61b45e2

2 files changed

Lines changed: 36 additions & 1 deletion

File tree

_layouts/base.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
<footer role="contentinfo">
7979
<hr>
8080
<p><small>(c) {{ "now" | date: "%Y" }} cb341. Licensed under <a href="https://creativecommons.org/licenses/by/4.0/" target="_blank" rel="noopener noreferrer">CC BY 4.0</a>.</small></p>
81-
<a href="https://discord.com/users/456151064484249612" target="_blank" rel="noopener noreferrer">Discord</a>
81+
<a href="/sitemap">Sitemap</a>
8282
|
8383
<a href="https://mastodon.social/deck/@cb341" target="_blank" rel="noopener noreferrer">Mastodon</a>
8484
|

pages/sitemap.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
title: Sitemap
3+
layout: base
4+
permalink: /sitemap/
5+
---
6+
7+
# Sitemap
8+
9+
## Pages
10+
- [Home](/)
11+
{%- for page in site.pages %}
12+
{%- if page.title %}
13+
- [{{ page.title }}]({{ page.url }})
14+
{%- endif %}
15+
{%- endfor %}
16+
17+
## Blog
18+
- [Latest Posts](/)
19+
{%- for post in site.posts limit: 10 %}
20+
- [{{ post.title }}]({{ post.url }})
21+
{%- endfor %}
22+
- [View all posts](/)
23+
24+
## Projects
25+
{%- for project in site.projects %}
26+
- [{{ project.title }}]({{ project.url }})
27+
{%- endfor %}
28+
29+
## Gallery
30+
{%- for item in site.gallery %}
31+
- [{{ item.title }}]({{ item.url }})
32+
{%- endfor %}
33+
34+
## Other
35+
- [RSS Feed](/rss.xml)

0 commit comments

Comments
 (0)