aboutsummaryrefslogtreecommitdiff
path: root/zola-static
diff options
context:
space:
mode:
Diffstat (limited to 'zola-static')
-rw-r--r--zola-static/content/blog/emacs-garbage-collection.md2
-rw-r--r--zola-static/sass/base.scss11
-rw-r--r--zola-static/templates/advertisement.html2
-rw-r--r--zola-static/templates/blog-page.html1
-rw-r--r--zola-static/templates/index.html46
5 files changed, 41 insertions, 21 deletions
diff --git a/zola-static/content/blog/emacs-garbage-collection.md b/zola-static/content/blog/emacs-garbage-collection.md
index 23643d8..26cf5d9 100644
--- a/zola-static/content/blog/emacs-garbage-collection.md
+++ b/zola-static/content/blog/emacs-garbage-collection.md
@@ -40,4 +40,4 @@ I have been using this for a few months and it's worked perfectly. I've tried my
> There is a package for this, called [the Garbage Collector Magic Hack](https://github.com/emacsmirror/gcmh). Personally I prefer a lower idle time than its default, and I like keeping it in my own config.
# Update: IGC Branch
-After posting this article, [some users on reddit](https://www.reddit.com/r/emacs/comments/1km1by3/comment/ms750w3/) informed me that there is a [branch of emacs](https://git.savannah.gnu.org/cgit/emacs.git/tree/README-IGC?h=feature/igc#n1) in development which greatly improves the garbage collector efficiency. People are saying that it has completely eliminated their stutters. I recommend trying it out.
+After posting this article, [some users on reddit](https://www.reddit.com/r/emacs/comments/1km1by3/comment/ms750w3/) informed me that there is an [Emacs branch](https://git.savannah.gnu.org/cgit/emacs.git/tree/README-IGC?h=feature/igc#n1) in development which greatly improves the garbage collector efficiency. People are saying that it has completely eliminated their stutters. I recommend trying it out.
diff --git a/zola-static/sass/base.scss b/zola-static/sass/base.scss
index f802259..0afdfc6 100644
--- a/zola-static/sass/base.scss
+++ b/zola-static/sass/base.scss
@@ -62,7 +62,6 @@ pre {
blockquote {
background: #171615;
border-left: 0.7rem solid #F3E9DC;
- border-radius: 0.5rem;
margin: 1.5em 10px;
padding: 0.5em 10px;
}
@@ -92,3 +91,13 @@ img {
.footer-text a {
text-decoration: none;
}
+
+.index-section {
+ background-color: #2e2d2c;
+ padding: 0.5rem;
+ margin-top: 0.6rem;
+}
+
+.index-section h2 {
+ margin-top: 0.1rem;
+}
diff --git a/zola-static/templates/advertisement.html b/zola-static/templates/advertisement.html
new file mode 100644
index 0000000..ec768ca
--- /dev/null
+++ b/zola-static/templates/advertisement.html
@@ -0,0 +1,2 @@
+<hr>
+<p>If you liked this article, check out my <a href="{{ config.base_url }}">homepage</a>.</p>
diff --git a/zola-static/templates/blog-page.html b/zola-static/templates/blog-page.html
index ed1afeb..8b99055 100644
--- a/zola-static/templates/blog-page.html
+++ b/zola-static/templates/blog-page.html
@@ -18,4 +18,5 @@
{% block content %}
{{ page.content | safe }}
+{% include "advertisement.html" %}
{% endblock content %}
diff --git a/zola-static/templates/index.html b/zola-static/templates/index.html
index 2dbb894..9cfef7f 100644
--- a/zola-static/templates/index.html
+++ b/zola-static/templates/index.html
@@ -1,25 +1,33 @@
{% extends "base.html" %}
{% block content %}
-<h2>All about</h2>
-<ul>
- <li><a href="{{ get_url(path='@/about-me.md') }}">About me</a></li>
- <li><a href="{{ get_url(path='@/about-this-site.md') }}">About this site</a></li>
-</ul>
-<h2>Articles</h2>
-<ul>
- <li><a href="{{ get_url(path='@/blog/emacs-garbage-collection.md') }}">Solving Emacs Garbage Collection Stutters</a></li>
-</ul>
-<h2>Projects</h2>
-<ul>
- <li><a href="https://github.com/Martian-Technologies/Logic-Graph-Creator">Gatality Logic Simulator</a></li>
- <li><a href="{{ get_url(path='@/projects/_index.md') }}">View More</a></li>
-</ul>
-<h2>Links</h2>
-<ul>
- <li><a href="https://github.com/JackJ30">GitHub</a></li>
- <li><a href="https://jackj30.github.io">Old portfolio (haven't migrated here yet)</a></li>
-</ul>
+<div class="index-section">
+ <h2>All about</h2>
+ <ul>
+ <li><a href="{{ get_url(path='@/about-me.md') }}">About me</a></li>
+ <li><a href="{{ get_url(path='@/about-this-site.md') }}">About this site</a></li>
+ </ul>
+</div>
+<div class="index-section">
+ <h2>Articles</h2>
+ <ul>
+ <li><a href="{{ get_url(path='@/blog/emacs-garbage-collection.md') }}">Solving Emacs Garbage Collection Stutters</a></li>
+ </ul>
+</div>
+<div class="index-section">
+ <h2>Projects</h2>
+ <ul>
+ <li><a href="https://github.com/Martian-Technologies/Logic-Graph-Creator">Gatality Logic Simulator</a></li>
+ <li><a href="{{ get_url(path='@/projects/_index.md') }}">View More</a></li>
+ </ul>
+</div>
+<div class="index-section">
+ <h2>Links</h2>
+ <ul>
+ <li><a href="https://github.com/JackJ30">GitHub</a></li>
+ <li><a href="https://jackj30.github.io">Old portfolio (haven't migrated here yet)</a></li>
+ </ul>
+</div>
<hr>
<p class="footer-text"><a href="{{ get_url(path='@/blog/_index.md') }}">All articles sorted by date</a> &#8226 <a href="{{ get_url(path='@/the-archive.md') }}">Archive</a></p>
{% endblock content %}