Skip to content

Commit 57da56c

Browse files
committed
added sidemap
1 parent 1dfb618 commit 57da56c

File tree

2 files changed

+84
-47
lines changed

2 files changed

+84
-47
lines changed

_config.yml

Lines changed: 47 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -195,58 +195,58 @@ collections:
195195
# Defaults
196196
defaults:
197197
# _posts
198-
#- scope:
199-
# path: ""
200-
# type: posts
201-
# values:
202-
# layout: single
203-
# author_profile: true
204-
# read_time: true
205-
# comments: true
206-
# share: true
207-
# related: true
198+
- scope:
199+
path: ""
200+
type: posts
201+
values:
202+
layout: single
203+
author_profile: true
204+
read_time: true
205+
comments: true
206+
share: true
207+
related: true
208208
# _pages
209-
#- scope:
210-
# path: ""
211-
# type: pages
212-
# values:
213-
# layout: single
214-
# author_profile: true
209+
- scope:
210+
path: ""
211+
type: pages
212+
values:
213+
layout: single
214+
author_profile: true
215215
# _teaching
216-
#- scope:
217-
# path: ""
218-
# type: teaching
219-
# values:
220-
# layout: single
221-
# author_profile: true
222-
# share: true
223-
# comments: true
216+
- scope:
217+
path: ""
218+
type: teaching
219+
values:
220+
layout: single
221+
author_profile: true
222+
share: true
223+
comments: true
224224
# _publications
225-
#- scope:
226-
# path: ""
227-
# type: publications
228-
# values:
229-
# layout: single
230-
# author_profile: true
231-
# share: true
232-
# comments: true
225+
- scope:
226+
path: ""
227+
type: publications
228+
values:
229+
layout: single
230+
author_profile: true
231+
share: true
232+
comments: true
233233
# _portfolio
234-
#- scope:
235-
# path: ""
236-
# type: portfolio
237-
# values:
238-
# layout: single
239-
# author_profile: true
240-
# share: true
241-
# comment: true
234+
- scope:
235+
path: ""
236+
type: portfolio
237+
values:
238+
layout: single
239+
author_profile: true
240+
share: true
241+
comment: true
242242
# _talks
243-
#- scope:
244-
# path: ""
245-
# type: talks
246-
# values:
247-
# layout: talk
248-
# author_profile: true
249-
# share: true
243+
- scope:
244+
path: ""
245+
type: talks
246+
values:
247+
layout: talk
248+
author_profile: true
249+
share: true
250250

251251
# Sass/SCSS
252252
sass:

_pages/sitemap.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
layout: archive
3+
title: "Sitemap"
4+
permalink: /sitemap/
5+
author_profile: true
6+
---
7+
8+
{% include base_path %}
9+
10+
A list of all the posts and pages found on the site. For you robots out there is an [XML version]({{ base_path }}/sitemap.xml) available for digesting as well.
11+
12+
<h2>Pages</h2>
13+
{% for post in site.pages %}
14+
{% include archive-single.html %}
15+
{% endfor %}
16+
17+
<h2>Posts</h2>
18+
{% for post in site.posts %}
19+
{% include archive-single.html %}
20+
{% endfor %}
21+
22+
{% capture written_label %}'None'{% endcapture %}
23+
24+
{% for collection in site.collections %}
25+
{% unless collection.output == false or collection.label == "posts" %}
26+
{% capture label %}{{ collection.label }}{% endcapture %}
27+
{% if label != written_label %}
28+
<h2>{{ label }}</h2>
29+
{% capture written_label %}{{ label }}{% endcapture %}
30+
{% endif %}
31+
{% endunless %}
32+
{% for post in collection.docs %}
33+
{% unless collection.output == false or collection.label == "posts" %}
34+
{% include archive-single.html %}
35+
{% endunless %}
36+
{% endfor %}
37+
{% endfor %}

0 commit comments

Comments
 (0)