Skip to content

Commit

Permalink
remove redundant index.html code
Browse files Browse the repository at this point in the history
  • Loading branch information
bmos committed Mar 19, 2024
1 parent a36b266 commit 1b08016
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions _layouts/index.html
Original file line number Diff line number Diff line change
@@ -1,29 +1,3 @@
---
layout: default
---
<link rel="alternate"
type="application/rss+xml"
title="{{ locale[site.title] }} - {{ page.locale.name }}"
href="{{ page.locale.id | append: '/rss20.xml' | absolute_url }}">
<link rel="alternate"
type="application/atom+xml"
title="{{ locale[site.title] }} - {{ page.locale.name }}"
href="{{ page.locale.id | append: '/atom.xml' | absolute_url }}">
<script>
const header_links = document.querySelectorAll('.nav-link');
// Replace rss and atom links with the local versions
header_links[1].href = "{{ page.locale.id | append: '/atom.xml' | absolute_url }}";
header_links[2].href = "{{ page.locale.id | append: '/rss20.xml' | absolute_url }}";
</script>
{% if paginator.page == 1 %}
{% include main-info.html %}
{% else %}
{% include breadcrumbs.html %}
{% endif %}
<div class="container my-4 p-0">
{% for post in paginator.posts %}
{% include calendar.html %}
{% include single-post.html %}
{% endfor %}
{% include pagination.html %}
</div>

0 comments on commit 1b08016

Please sign in to comment.