Skip to content

Commit cdac48a

Browse files
committed
Inline the archive template to ignore noindex
Google search bot has been complaining the top-level URL (index.html) has noindex set. We do want to ignore this page from the perspective that it shows the most recent 5 posts so is always changing. But maybe this is the wrong thing to do?
1 parent d7369c1 commit cdac48a

File tree

1 file changed

+25
-5
lines changed

1 file changed

+25
-5
lines changed

_layouts/home.html

+25-5
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,34 @@
11
---
2-
layout: archive
2+
layout: default
3+
author_profile: true
34
---
45

5-
{{ content }}
6+
{% strip %}
7+
{% if page.header.overlay_color or page.header.overlay_image or page.header.image %}
8+
{% include page__hero.html %}
9+
{% elsif page.header.video.id and page.header.video.provider %}
10+
{% include page__hero_video.html %}
11+
{% endif %}
612

13+
{% if page.url != "/" and site.breadcrumbs %}
14+
{% unless paginator %}
15+
{% include breadcrumbs.html %}
16+
{% endunless %}
17+
{% endif %}
18+
19+
<div id="main" role="main">
20+
{% include sidebar.html %}
21+
22+
<div class="archive">
723
{% for i in (0..4) %}
824
{% assign post = site.posts[i] %}
925
{% include archive-single.html %}
1026
{% endfor %}
27+
<p>
28+
<hr>
29+
More in the <a href="/archives">archives</a>
30+
</div>
31+
</div>
32+
1133

12-
<p>
13-
<hr>
14-
More in the <a href="/archives">archives</a>
34+
{% endstrip %}

0 commit comments

Comments
 (0)