mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 22:37:49 +00:00
Rename second-edition subfolder to `edition-2
This commit is contained in:
@@ -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
1
blog/templates/base.html
Normal file
@@ -0,0 +1 @@
|
||||
{% extends "edition-2/base.html" %}
|
||||
@@ -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>
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
@@ -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>
|
||||
@@ -1,4 +1,4 @@
|
||||
{% extends "second-edition/base.html" %}
|
||||
{% extends "edition-2/base.html" %}
|
||||
|
||||
{% import "macros.html" as macros %}
|
||||
|
||||
@@ -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>
|
||||
@@ -1,4 +1,4 @@
|
||||
{% extends "second-edition/base.html" %}
|
||||
{% extends "edition-2/base.html" %}
|
||||
|
||||
{% import "macros.html" as macros %}
|
||||
|
||||
@@ -1 +1 @@
|
||||
{% extends "second-edition/index.html" %}
|
||||
{% extends "edition-2/index.html" %}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{% extends "second-edition/base.html" %}
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% import "macros.html" as macros %}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{% extends "second-edition/base.html" %}
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% import "macros.html" as macros %}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{% extends "second-edition/base.html" %}
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}{{ page.title }} | {{ config.title }}{% endblock title %}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{% extends "second-edition/base.html" %}
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% import "macros.html" as macros %}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{% extends "second-edition/base.html" %}
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% import "macros.html" as macros %}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{% extends "second-edition/base.html" %}
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% import "macros.html" as macros %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user