From 6bc99e62b4ff7a17caddbe8c077ed2a5d4f18c92 Mon Sep 17 00:00:00 2001 From: JackJ30 Date: Mon, 26 May 2025 11:38:27 -0400 Subject: added personal advertisement and style --- .../content/blog/emacs-garbage-collection.md | 2 +- zola-static/sass/base.scss | 11 +++++- zola-static/templates/advertisement.html | 2 + zola-static/templates/blog-page.html | 1 + zola-static/templates/index.html | 46 +++++++++++++--------- 5 files changed, 41 insertions(+), 21 deletions(-) create mode 100644 zola-static/templates/advertisement.html 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 @@ +
+

If you liked this article, check out my homepage.

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 %} -

All about

- -

Articles

- -

Projects

- -

Links

- +
+

All about

+ +
+
+

Articles

+ +
+
+

Projects

+ +
+
+

Links

+ +

{% endblock content %} -- cgit v1.2.3