summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2022-03-03 10:11:01 +0100
committerlemon <lsof@mailbox.org>2022-03-03 10:11:01 +0100
commit82624418d5940ef628a51ca07aa222073fa9a388 (patch)
tree247c542ea5cf952889bd394d1bb3e3a32ee3932f
parent12ddb91334e82c87f6318beea879eb53f1fd6f1c (diff)
change some things around
-rw-r--r--content/w/_index.md (renamed from content/b/_index.md)2
-rw-r--r--content/w/c99-vla-tricks.md (renamed from content/b/c99-vla-tricks.md)0
-rw-r--r--content/w/first.md (renamed from content/b/first.md)0
-rw-r--r--static/mips.html4
-rw-r--r--static/style.css11
-rw-r--r--templates/blog-page.html5
-rw-r--r--templates/blog.html4
-rw-r--r--templates/index.html2
8 files changed, 24 insertions, 4 deletions
diff --git a/content/b/_index.md b/content/w/_index.md
index c504e1b..4ecec2e 100644
--- a/content/b/_index.md
+++ b/content/w/_index.md
@@ -1,5 +1,5 @@
+++
-title = "Blog"
+title = "Writings"
sort_by = "date"
template = "blog.html"
page_template = "blog-page.html"
diff --git a/content/b/c99-vla-tricks.md b/content/w/c99-vla-tricks.md
index b2b07eb..b2b07eb 100644
--- a/content/b/c99-vla-tricks.md
+++ b/content/w/c99-vla-tricks.md
diff --git a/content/b/first.md b/content/w/first.md
index 291b364..291b364 100644
--- a/content/b/first.md
+++ b/content/w/first.md
diff --git a/static/mips.html b/static/mips.html
index 219034c..90e66bd 100644
--- a/static/mips.html
+++ b/static/mips.html
@@ -86,6 +86,10 @@ hr {
<body>
<div style="width: 85%; margin: 0 auto; padding-left: 10%;">
+ <nav class="navbar">
+ <a href="/">Home</a> <!--a href="../">Go Back</a--!>
+ </nav>
+ <br>
<noscript>JavaScript is required</noscript>
<h2>MIPS Assembler</h2>
<p>Input MIPS assembly code below. Labels, .org and simple .word directives are also recognized. Comments start with ';' and extend to the end of the line.</p>
diff --git a/static/style.css b/static/style.css
index a3046b6..77be7bc 100644
--- a/static/style.css
+++ b/static/style.css
@@ -37,6 +37,17 @@ p {
text-align: justify;
}
+nav.navbar {
+ padding-top: 10px;
+}
+
+nav.navbar > a {
+ padding: 1px 20px;
+ background: var(--pre-bg);
+ border: 1px solid var(--border1);
+ border-radius: 6px;
+}
+
h1.title {
line-height: 1.2;
font-size: 40px;
diff --git a/templates/blog-page.html b/templates/blog-page.html
index b8263e0..ddf34f0 100644
--- a/templates/blog-page.html
+++ b/templates/blog-page.html
@@ -3,6 +3,10 @@
{% block title %}{{ page.title }}{% endblock title %}
{% block content %}
+
+<nav class="navbar">
+ <a href="/">Home</a> <a href="../">Go Back</a>
+</nav>
<h1 class="title">
{{ page.title }}
</h1>
@@ -10,5 +14,4 @@
<hr>
{{ page.content | safe }}
-<hr> <a href="../">Go back</a>
{% endblock content %}
diff --git a/templates/blog.html b/templates/blog.html
index afee41d..fb7ea21 100644
--- a/templates/blog.html
+++ b/templates/blog.html
@@ -3,6 +3,9 @@
{% block title %}lemon's site{% endblock title %}
{% block content %}
+<nav class="navbar">
+ <a href="/">Home</a> <!--a href="../">Go Back</a--!>
+</nav>
<h1 class="title">
{{ section.title }}
</h1>
@@ -11,5 +14,4 @@
<li><a href="{{ page.permalink | safe }}">{{ page.title }}</a> ({{ page.date }})</li>
{% endfor %}
</ul>
-<hr> <a href="../">Go back</a>
{% endblock content %}
diff --git a/templates/index.html b/templates/index.html
index d6c2755..3eee716 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -12,7 +12,7 @@ share some of that stuff here.
<ul>
<li><a href="/mips.html">web MIPS assembler/disassembler (incomplete)</a>
-<li><a href="/b">blog</a> (last updated on {{ get_section(path="b/_index.md") | get(key="pages") | map(attribute="date") | first }})
+<li><a href="/w">writings/blog</a> (last updated on {{ get_section(path="w/_index.md") | get(key="pages") | map(attribute="date") | first }})
<li><a href="https://git.sr.ht/~lsof/">git</a>
<li><a href="https://www.youtube.com/channel/UCoZ8JbiXlq_Zh0DGvaGRTDQ">youtube</a>
<li><img src="/asset/link.png" width="18" height="23">