From 89b4d691eb76d299213ac6d1a49f733270a79942 Mon Sep 17 00:00:00 2001 From: Lucas Oskorep Date: Tue, 12 Mar 2024 03:21:52 -0400 Subject: [PATCH] feat:adding in a lot of formatting fixes, 404 page and a 500 page --- static/css/hyde.css | 9 ++++--- static/css/poole.css | 2 +- templates/index.html | 48 ++++-------------------------------- templates/model-list.html | 31 +++++++++++++++++++++++ templates/project.html | 32 ------------------------ templates/projects-list.html | 30 ++++++++++++++++++++++ templates/sidebar.html | 2 +- 7 files changed, 74 insertions(+), 80 deletions(-) create mode 100644 templates/model-list.html delete mode 100644 templates/project.html create mode 100644 templates/projects-list.html diff --git a/static/css/hyde.css b/static/css/hyde.css index fa1f3e5..a0ef1f8 100644 --- a/static/css/hyde.css +++ b/static/css/hyde.css @@ -57,7 +57,7 @@ html { .sidebar { text-align: left; padding: 2rem 1rem; - color: rgba(255,255,255,.5); + color: rgba(255,255,255,.66); background-color: #202020; } @@ -71,10 +71,13 @@ html { text-align: left; } } - /* Sidebar links */ .sidebar a { color: #fff; +}/* Sidebar links */ + +.sidebar .title { + color: #6a9fb5; } /* About section */ @@ -268,7 +271,7 @@ a.sidebar-social-item.active:focus { /* background-color: #6a9fb5;*/ /*}*/ .theme-base-0d .content a, -.theme-base-0d .related-posts li a:hover { +.theme-base-0d .related-posts li a:hover h1 { color: #6a9fb5; } /*.theme-base-0d body .content .container{*/ diff --git a/static/css/poole.css b/static/css/poole.css index 02ac5a2..067f4b7 100644 --- a/static/css/poole.css +++ b/static/css/poole.css @@ -84,7 +84,7 @@ h1, h2, h3, h4, h5, h6 { margin-bottom: .5rem; font-weight: bold; line-height: 1.25; - color: #313131; + color: #6a9fb5; text-rendering: optimizeLegibility; } h1 { diff --git a/templates/index.html b/templates/index.html index f05d9b2..d481af8 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,45 +1,7 @@ {% extends "base.html" %} - {% block content %} -
- {% for article in articles_page.object_list %} -
-

- {{ article.title }} -

- - {% if article.tags %} - - {% endif %} -

- {{ article.summary }} -

- Continue reading » -
- {% endfor %} -
- {% if DEFAULT_PAGINATION %} - - {% endif %} -{% endblock %} +
+

Hi!

+

Thanks for visiting my website! I hope you find something interesting or useful here

+
+{% endblock %} \ No newline at end of file diff --git a/templates/model-list.html b/templates/model-list.html new file mode 100644 index 0000000..31a95ee --- /dev/null +++ b/templates/model-list.html @@ -0,0 +1,31 @@ +{% extends "base.html" %} + +{% block content %} +
+ PROJECT LIST HERE + {% for article in articles %} + {% if article.category == 'models' %} +
+

+ {{ article.title }} +

+ + {% if article.tags %} + + {% endif %} +

+ {{ article.summary }} +

+ Continue reading » +
+ {% endif %} + {% endfor %} +
+{% endblock %} diff --git a/templates/project.html b/templates/project.html deleted file mode 100644 index bde558a..0000000 --- a/templates/project.html +++ /dev/null @@ -1,32 +0,0 @@ -{% extends "base.html" %} - -{% block metadata %} - - - - - -{% endblock %} - -{% block content %} -
-

{{ article.title }}

- - THIS IS A PROJECT NOT AN ARTICLE! - {{ article.content }} - - {% if article.tags %} - - {% endif %} - - {% include 'fragments/disqus.html' %} -
-{% endblock %} diff --git a/templates/projects-list.html b/templates/projects-list.html new file mode 100644 index 0000000..ab581f6 --- /dev/null +++ b/templates/projects-list.html @@ -0,0 +1,30 @@ +{% extends "base.html" %} + +{% block content %} +
+ PROJECT LIST HERE + {% for article in articles %} + {% if article.category == 'projects' %} +
+

+ {{ article.title }} +

+ + {% if article.tags %} + {% endif %} +

+ {{ article.summary }} +

+ Continue reading » +
+ {% endif %} + {% endfor %} +
+{% endblock %} diff --git a/templates/sidebar.html b/templates/sidebar.html index fdc18e2..29fc277 100644 --- a/templates/sidebar.html +++ b/templates/sidebar.html @@ -3,7 +3,7 @@