Browse Source

Fixup static build and adjust text

* app.hy and blog.hy - fix removal of Hy `none?`
* layout.html - move RSS ad to footer
* styles.css - make text color apply to all text on brown background
main
J. Sims 9 months ago
parent
commit
26e225499c
  1. 2
      app.hy
  2. 2
      blog.hy
  3. 2
      static/styles.css
  4. 2
      templates/layout.html

2
app.hy

@ -47,7 +47,7 @@ This is the main Flask application for https://tree.st
;; post-name is checked to be None here as opposed to
;; in post-exists? so that the regular case (rendering
;; the blog feed) has a slightly lower overhead.
[(or (none? post-name) (post-exists? post-name))
[(or (= None post-name) (post-exists? post-name))
(render-template "blog.html"
:posts (retrieve-posts post-name)
:type "blog")]

2
blog.hy

@ -27,7 +27,7 @@ Blog helper functions
Collect and format the name(s)
of the post(s) to be rendered.
"""
(if (none? post-name)
(if (= None post-name)
(lfor post (listdir (+ _posts-prefix _posts-dir))
:if (.endswith post _posts-suffix)
(+ _posts-dir post))

2
static/styles.css

@ -42,6 +42,7 @@ nav {
main {
background-color: brown;
color: var(--text-color);
margin: 0 auto 0 auto;
max-width: 50rem;
padding: 3rem;
@ -57,7 +58,6 @@ footer {
/* Blog styling */
.blog-post {
color: var(--text-color);
border-bottom: dotted;
padding: 0rem 0rem 2.5rem 1rem;
text-align: left;

2
templates/layout.html

@ -21,8 +21,8 @@
{% block main %}{% endblock %}
</main>
<footer>
<p>Subscribe to my <a href="{{ url_for('feed') }}">RSS feed</a></p>
<small>
Subscribe to my <a href="{{ url_for('feed') }}">RSS feed</a><br />
All code (Hy, HTML, Jinja, CSS) for this website is licensed under the <a href="https://www.gnu.org/licenses/gpl-3.0-standalone.html">GPLv3</a>
and available <a href="https://github.com/Marie-Joseph/hy-website">here</a>.<br />
All blog posts (the raw text) are licensed <a href="https://creativecommons.org/licenses/by-sa/4.0/legalcode">CC-BY-SA 4.0</a>.