Rename second-edition subfolder to `edition-2

This commit is contained in:
Philipp Oppermann
2020-12-16 14:56:36 +01:00
parent 4a9ea6c503
commit f692c5b377
148 changed files with 130 additions and 128 deletions

View File

@@ -1,4 +1,4 @@
{% extends "second-edition/base.html" %}
{% extends "base.html" %}
{% block title %}Page not found | {{ config.title }}{% endblock title %}

1
blog/templates/base.html Normal file
View File

@@ -0,0 +1 @@
{% extends "edition-2/base.html" %}

View File

@@ -24,7 +24,7 @@
</div>
<div class="warning">
<b>No longer updated!</b> You are viewing the first edition of “Writing an OS in Rust”, which is no longer updated. You can find the second edition <a href="{{ get_url(path = "@/second-edition/_index.md") | safe }}">here</a>.
<b>No longer updated!</b> You are viewing the first edition of “Writing an OS in Rust”, which is no longer updated. You can find the second edition <a href="{{ get_url(path = "@/edition-2/_index.md") | safe }}">here</a>.
</div>
<div id="bare-bones" class="post-category bare-bones">Bare Bones</div>

View File

@@ -26,7 +26,7 @@
</aside>
<div class="warning">
<b>No longer updated!</b> You are viewing the a post of the first edition of “Writing an OS in Rust”, which is no longer updated. You can find the second edition <a href="{{ get_url(path = "@/second-edition/_index.md") | safe }}">here</a>.
<b>No longer updated!</b> You are viewing the a post of the first edition of “Writing an OS in Rust”, which is no longer updated. You can find the second edition <a href="{{ get_url(path = "@/edition-2/_index.md") | safe }}">here</a>.
</div>
{{ page.content | safe }}

View File

@@ -12,12 +12,12 @@
{% if current_url %}
<link rel="canonical" href="{{ current_url | safe }}" />
{% endif %}
<link href="/css/poole.css" rel="stylesheet">
<link href="/css/main.css" rel="stylesheet">
<link href="/css/edition-2/poole.css" rel="stylesheet">
<link href="/css/edition-2/main.css" rel="stylesheet">
<link rel="alternate" type="application/rss+xml" title="RSS feed for os.phil-opp.com" href="{{ config.base_url | safe }}/rss.xml" />
<script async src="/js/main.js"></script>
<script async src="/js/edition-2/main.js"></script>
<title>{% block title %}{% endblock title %}</title>
</head>

View File

@@ -1,4 +1,4 @@
{% extends "second-edition/base.html" %}
{% extends "edition-2/base.html" %}
{% import "macros.html" as macros %}

View File

@@ -1,11 +1,11 @@
{% extends "second-edition/base.html" %}
{% extends "edition-2/base.html" %}
{% import "macros.html" as macros %}
{% block title %}{{ config.title }}{% endblock title %}
{% block main %}
{% set posts_section = get_section(path = "second-edition/posts/_index.md") %}
{% set posts_section = get_section(path = "edition-2/posts/_index.md") %}
{% set posts = posts_section.pages %}
<h1 style="visibility: hidden; height: 0px; margin: 0px; padding: 0px;">Writing an OS in Rust</h1>

View File

@@ -1,4 +1,4 @@
{% extends "second-edition/base.html" %}
{% extends "edition-2/base.html" %}
{% import "macros.html" as macros %}

View File

@@ -1 +1 @@
{% extends "second-edition/index.html" %}
{% extends "edition-2/index.html" %}

View File

@@ -1,4 +1,4 @@
{% extends "second-edition/base.html" %}
{% extends "base.html" %}
{% import "macros.html" as macros %}

View File

@@ -1,4 +1,4 @@
{% extends "second-edition/base.html" %}
{% extends "base.html" %}
{% import "macros.html" as macros %}

View File

@@ -1,4 +1,4 @@
{% extends "second-edition/base.html" %}
{% extends "base.html" %}
{% block title %}{{ page.title }} | {{ config.title }}{% endblock title %}

View File

@@ -1,4 +1,4 @@
{% extends "second-edition/base.html" %}
{% extends "base.html" %}
{% import "macros.html" as macros %}

View File

@@ -1,4 +1,4 @@
{% extends "second-edition/base.html" %}
{% extends "base.html" %}
{% import "macros.html" as macros %}

View File

@@ -1,4 +1,4 @@
{% extends "second-edition/base.html" %}
{% extends "base.html" %}
{% import "macros.html" as macros %}