Add "index.html"
This commit is contained in:
parent
3f42434d9f
commit
425f79f902
5 changed files with 277 additions and 0 deletions
77
404.html
Normal file
77
404.html
Normal file
|
|
@ -0,0 +1,77 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="description" content="Site with Zola Hook">
|
||||
<title>DraigerCMS | Page Not Found</title>
|
||||
|
||||
<link rel="stylesheet" href="/style.css?h=c59bf21e289e8d31d2b7">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="alternate" type="application/atom+xml" title="DraigerCMS - Atom Feed" href="/atom.xml">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<header class="space">
|
||||
<a href="/">← Home</a>
|
||||
</header>
|
||||
|
||||
|
||||
<main>
|
||||
<h1>Page Not Found (404)</h1>
|
||||
<p>The page you were looking for could not be found.</p>
|
||||
</main>
|
||||
|
||||
<div class="dark-mode-buttons">
|
||||
<button class="dark-mode-button" id="dark-mode-on"><img src="/dark_mode.svg" width="24" height="24" alt="Dark mode" aria-label="dark mode toggle" title="Dark mode"></button>
|
||||
<button class="dark-mode-button" id="dark-mode-off"><img src="/light_mode.svg" width="24" height="24" alt="Light mode" aria-label="light mode toggle" title="Light mode"></button>
|
||||
</div>
|
||||
<script>
|
||||
const cls = document.querySelector("html").classList;
|
||||
const sessionTheme = sessionStorage.getItem("theme");
|
||||
|
||||
function setDark() {
|
||||
cls.add("dark-mode");
|
||||
cls.remove("light-mode");
|
||||
sessionStorage.setItem("theme", "dark");
|
||||
}
|
||||
function setLight() {
|
||||
cls.add("light-mode");
|
||||
cls.remove("dark-mode");
|
||||
sessionStorage.setItem("theme", "light");
|
||||
}
|
||||
|
||||
if (sessionTheme === "dark") {
|
||||
setDark();
|
||||
} else if (sessionTheme === "light") {
|
||||
setLight();
|
||||
} else if (window.matchMedia("(prefers-color-scheme: dark)").matches) {
|
||||
setDark();
|
||||
}
|
||||
|
||||
document.getElementById("dark-mode-on").addEventListener("click", function(e) {
|
||||
setDark();
|
||||
});
|
||||
document.getElementById("dark-mode-off").addEventListener("click", function(e) {
|
||||
setLight();
|
||||
});
|
||||
</script>
|
||||
<noscript>
|
||||
<style>
|
||||
.dark-mode-buttons {
|
||||
display: none;
|
||||
}
|
||||
</style>
|
||||
</noscript>
|
||||
</body>
|
||||
</html>
|
||||
97
atom.xml
Normal file
97
atom.xml
Normal file
|
|
@ -0,0 +1,97 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
|
||||
<title>DraigerCMS</title>
|
||||
<subtitle>Site with Zola Hook</subtitle>
|
||||
<link rel="self" type="application/atom+xml" href="/atom.xml"/>
|
||||
<link rel="alternate" type="text/html" href="/"/>
|
||||
<generator uri="https://www.getzola.org/">Zola</generator>
|
||||
<updated>2021-07-30T00:00:00+00:00</updated>
|
||||
<id>/atom.xml</id>
|
||||
<entry xml:lang="en">
|
||||
<title>Markdown example</title>
|
||||
<published>2021-07-30T00:00:00+00:00</published>
|
||||
<updated>2021-07-30T00:00:00+00:00</updated>
|
||||
|
||||
<author>
|
||||
<name>
|
||||
|
||||
Unknown
|
||||
|
||||
</name>
|
||||
</author>
|
||||
|
||||
<link rel="alternate" type="text/html" href="/blog/blog/markdown/"/>
|
||||
<id>/blog/blog/markdown/</id>
|
||||
|
||||
<content type="html" xml:base="/blog/blog/markdown/"><p>This post is a markdown example.</p>
|
||||
<p>Here is <a href="http://example.com">a link</a>.</p>
|
||||
<p>Some <em>italic text</em> and <strong>bold text</strong> and <del>strikethrough text</del> and <code>inline code</code>. <sup class="footnote-reference" id="fr-1-1"><a href="#fn-1">1</a></sup></p>
|
||||
<pre data-lang="rust" style="background-color:#fcf0ca;color:#282828aa;" class="language-rust "><code class="language-rust" data-lang="rust"><span style="font-style:italic;color:#928374;">// Here is a code block
|
||||
</span><span>
|
||||
</span><span style="color:#9d0006;">fn </span><span style="color:#407959;">main</span><span>() {
|
||||
</span><span> </span><span style="color:#b57614;">println!</span><span>(</span><span style="color:#79740e;">&quot;Hello world!&quot;</span><span>);
|
||||
</span><span>}
|
||||
</span></code></pre>
|
||||
<p>Unordered list: <sup class="footnote-reference" id="fr-2-1"><a href="#fn-2">2</a></sup></p>
|
||||
<ul>
|
||||
<li>An unordered,</li>
|
||||
<li>bulleted list</li>
|
||||
<li>of items</li>
|
||||
</ul>
|
||||
<p>Ordered list:</p>
|
||||
<ol>
|
||||
<li>An ordered,</li>
|
||||
<li>numbered list</li>
|
||||
<li>of items</li>
|
||||
</ol>
|
||||
<blockquote>
|
||||
<p>A quote.</p>
|
||||
<p>It contains multiple paragraphs.</p>
|
||||
</blockquote>
|
||||
<h1 id="heading-1">Heading 1</h1>
|
||||
<h2 id="heading-2">Heading 2</h2>
|
||||
<h3 id="heading-3">Heading 3</h3>
|
||||
<h4 id="heading-4">Heading 4</h4>
|
||||
<h5 id="heading-5">Heading 5</h5>
|
||||
<h6 id="heading-6">Heading 6</h6>
|
||||
<p><img src="https://plchldr.co/i/480x360?bg=EB6361" alt="An example image" /></p>
|
||||
<p><img src="https://plchldr.co/i/1280x720?bg=3D8EB9" alt="A large image" /></p>
|
||||
<table><thead><tr><th>Hello world!</th><th>This is a table.</th><th>Tables are also supported.</th></tr></thead><tbody>
|
||||
<tr><td>They even</td><td>have alternating</td><td>row colors!</td></tr>
|
||||
<tr><td>Let me add</td><td>another row so</td><td>it's easier to see.</td></tr>
|
||||
</tbody></table>
|
||||
<section class="footnotes">
|
||||
<ol class="footnotes-list">
|
||||
<li id="fn-1">
|
||||
<p>A footnote. Footnotes can be used for things that could have explanation or extra context, but
|
||||
for which the explanation is not relevant or otherwise desirable to have inline. <a href="#fr-1-1">↩</a></p>
|
||||
</li>
|
||||
<li id="fn-2">
|
||||
<p>Another footnote. <a href="#fr-2-1">↩</a></p>
|
||||
</li>
|
||||
</ol>
|
||||
</section>
|
||||
</content>
|
||||
|
||||
</entry>
|
||||
<entry xml:lang="en">
|
||||
<title>Hello world</title>
|
||||
<published>2021-07-29T00:00:00+00:00</published>
|
||||
<updated>2021-07-29T00:00:00+00:00</updated>
|
||||
|
||||
<author>
|
||||
<name>
|
||||
|
||||
Unknown
|
||||
|
||||
</name>
|
||||
</author>
|
||||
|
||||
<link rel="alternate" type="text/html" href="/blog/blog/hello-world/"/>
|
||||
<id>/blog/blog/hello-world/</id>
|
||||
|
||||
<content type="html" xml:base="/blog/blog/hello-world/"><p>Hello world!</p>
|
||||
</content>
|
||||
|
||||
</entry>
|
||||
</feed>
|
||||
1
dark_mode.svg
Normal file
1
dark_mode.svg
Normal file
|
|
@ -0,0 +1 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><rect fill="none" height="24" width="24"/><path d="M12,3c-4.97,0-9,4.03-9,9s4.03,9,9,9s9-4.03,9-9c0-0.46-0.04-0.92-0.1-1.36c-0.98,1.37-2.58,2.26-4.4,2.26 c-2.98,0-5.4-2.42-5.4-5.4c0-1.81,0.89-3.42,2.26-4.4C12.92,3.04,12.46,3,12,3L12,3z"/></svg>
|
||||
|
After Width: | Height: | Size: 380 B |
101
index.html
Normal file
101
index.html
Normal file
|
|
@ -0,0 +1,101 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="description" content="Site with Zola Hook">
|
||||
<title>DraigerCMS</title>
|
||||
|
||||
<link rel="stylesheet" href="/style.css?h=c59bf21e289e8d31d2b7">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="alternate" type="application/atom+xml" title="DraigerCMS - Atom Feed" href="/atom.xml">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<header class="space">
|
||||
<h1>DraigerCMS</h1>
|
||||
|
||||
|
||||
<nav class="header-links">
|
||||
|
||||
<a href="mailto:dr_chanmp@disroot.org">Mail</a>
|
||||
|
||||
<a href="https://github.com/draigercms">GitHub</a>
|
||||
|
||||
<a href="https://mstdn.plus/@draigercms">Mastodon</a>
|
||||
|
||||
|
||||
</nav>
|
||||
|
||||
</header>
|
||||
|
||||
|
||||
|
||||
|
||||
<main>
|
||||
|
||||
|
||||
<h2>Recent posts</h2>
|
||||
<ul>
|
||||
|
||||
<li><a href="/blog/about/">About</a></li>
|
||||
|
||||
</ul>
|
||||
<p><a href="/blog/">Archive</a></p>
|
||||
|
||||
</main>
|
||||
|
||||
|
||||
<div class="dark-mode-buttons">
|
||||
<button class="dark-mode-button" id="dark-mode-on"><img src="/dark_mode.svg" width="24" height="24" alt="Dark mode" aria-label="dark mode toggle" title="Dark mode"></button>
|
||||
<button class="dark-mode-button" id="dark-mode-off"><img src="/light_mode.svg" width="24" height="24" alt="Light mode" aria-label="light mode toggle" title="Light mode"></button>
|
||||
</div>
|
||||
<script>
|
||||
const cls = document.querySelector("html").classList;
|
||||
const sessionTheme = sessionStorage.getItem("theme");
|
||||
|
||||
function setDark() {
|
||||
cls.add("dark-mode");
|
||||
cls.remove("light-mode");
|
||||
sessionStorage.setItem("theme", "dark");
|
||||
}
|
||||
function setLight() {
|
||||
cls.add("light-mode");
|
||||
cls.remove("dark-mode");
|
||||
sessionStorage.setItem("theme", "light");
|
||||
}
|
||||
|
||||
if (sessionTheme === "dark") {
|
||||
setDark();
|
||||
} else if (sessionTheme === "light") {
|
||||
setLight();
|
||||
} else if (window.matchMedia("(prefers-color-scheme: dark)").matches) {
|
||||
setDark();
|
||||
}
|
||||
|
||||
document.getElementById("dark-mode-on").addEventListener("click", function(e) {
|
||||
setDark();
|
||||
});
|
||||
document.getElementById("dark-mode-off").addEventListener("click", function(e) {
|
||||
setLight();
|
||||
});
|
||||
</script>
|
||||
<noscript>
|
||||
<style>
|
||||
.dark-mode-buttons {
|
||||
display: none;
|
||||
}
|
||||
</style>
|
||||
</noscript>
|
||||
</body>
|
||||
</html>
|
||||
1
light_mode.svg
Normal file
1
light_mode.svg
Normal file
|
|
@ -0,0 +1 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="24px" viewBox="0 0 24 24" width="24px" fill="#FFFFFF"><rect fill="none" height="24" width="24"/><path d="M12,7c-2.76,0-5,2.24-5,5s2.24,5,5,5s5-2.24,5-5S14.76,7,12,7L12,7z M2,13l2,0c0.55,0,1-0.45,1-1s-0.45-1-1-1l-2,0 c-0.55,0-1,0.45-1,1S1.45,13,2,13z M20,13l2,0c0.55,0,1-0.45,1-1s-0.45-1-1-1l-2,0c-0.55,0-1,0.45-1,1S19.45,13,20,13z M11,2v2 c0,0.55,0.45,1,1,1s1-0.45,1-1V2c0-0.55-0.45-1-1-1S11,1.45,11,2z M11,20v2c0,0.55,0.45,1,1,1s1-0.45,1-1v-2c0-0.55-0.45-1-1-1 C11.45,19,11,19.45,11,20z M5.99,4.58c-0.39-0.39-1.03-0.39-1.41,0c-0.39,0.39-0.39,1.03,0,1.41l1.06,1.06 c0.39,0.39,1.03,0.39,1.41,0s0.39-1.03,0-1.41L5.99,4.58z M18.36,16.95c-0.39-0.39-1.03-0.39-1.41,0c-0.39,0.39-0.39,1.03,0,1.41 l1.06,1.06c0.39,0.39,1.03,0.39,1.41,0c0.39-0.39,0.39-1.03,0-1.41L18.36,16.95z M19.42,5.99c0.39-0.39,0.39-1.03,0-1.41 c-0.39-0.39-1.03-0.39-1.41,0l-1.06,1.06c-0.39,0.39-0.39,1.03,0,1.41s1.03,0.39,1.41,0L19.42,5.99z M7.05,18.36 c0.39-0.39,0.39-1.03,0-1.41c-0.39-0.39-1.03-0.39-1.41,0l-1.06,1.06c-0.39,0.39-0.39,1.03,0,1.41s1.03,0.39,1.41,0L7.05,18.36z"/></svg>
|
||||
|
After Width: | Height: | Size: 1.1 KiB |
Loading…
Add table
Add a link
Reference in a new issue