refactor: migrate tags and sitemap to /blog subdirectory
parent
782f466ee6
commit
ef6277b65c
|
@ -1,7 +1,7 @@
|
|||
<div class="title">Catégories</div>
|
||||
<ul class="tags">
|
||||
{% for tag in collections.all | getAllTags | filterTagList %}
|
||||
{% set tagUrl %}/tags/{{ tag | slugify }}/{% endset %}
|
||||
{% set tagUrl %}/blog/tags/{{ tag | slugify }}/{% endset %}
|
||||
<li><a href="{{ tagUrl }}" class="post-tag">#{{ tag }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
<body class="container">
|
||||
<header class="main-header">
|
||||
<div>
|
||||
<a class="main-header-logo" href="/">
|
||||
<a class="main-header-logo" href="/blog">
|
||||
<img src="/images/logo.svg" alt="IT's on us" width="165" height="33">
|
||||
Blog
|
||||
</a>
|
||||
|
|
|
@ -1,18 +0,0 @@
|
|||
---
|
||||
layout: home.njk
|
||||
permalink: 404.html
|
||||
eleventyExcludeFromCollections: true
|
||||
---
|
||||
<div class="main-content">
|
||||
<p>Cette page n'existe pas !</p>
|
||||
|
||||
|
||||
<p>ous avez fait fausse route ¯\_(ツ)_/¯</p>
|
||||
|
||||
<p><a href="/">Aller à la page d’accueil</a></p>
|
||||
|
||||
</div>
|
||||
<aside class="right-side">
|
||||
{% include "tagslist.njk" %}
|
||||
{% include "other_links.njk" %}
|
||||
</aside>
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
permalink: /sitemap.xml
|
||||
permalink: /blog/sitemap.xml
|
||||
eleventyExcludeFromCollections: true
|
||||
---
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
|
@ -12,7 +12,7 @@ pagination:
|
|||
layout: home.njk
|
||||
eleventyComputed:
|
||||
title: Tags “{{ tag }}”
|
||||
permalink: /tags/{{ tag | slugify }}/
|
||||
permalink: /blog/tags/{{ tag | slugify }}/
|
||||
---
|
||||
<div class="main-content">
|
||||
<h1>#{{ tag }}</h1>
|
||||
|
|
|
@ -1,9 +0,0 @@
|
|||
---
|
||||
permalink: '/robots.txt'
|
||||
eleventyExcludeFromCollections: true
|
||||
---
|
||||
|
||||
User-agent: *
|
||||
Allow: /
|
||||
|
||||
Sitemap: {{ site.url }}/sitemap.xml
|
Loading…
Reference in New Issue