feat:adding in a lot of formatting fixes, 404 page and a 500 page

This commit is contained in:
Lucas Oskorep
2024-03-12 03:21:52 -04:00
parent 87a359fdb4
commit 89b4d691eb
7 changed files with 74 additions and 80 deletions
+6 -3
View File
@@ -57,7 +57,7 @@ html {
.sidebar { .sidebar {
text-align: left; text-align: left;
padding: 2rem 1rem; padding: 2rem 1rem;
color: rgba(255,255,255,.5); color: rgba(255,255,255,.66);
background-color: #202020; background-color: #202020;
} }
@@ -71,10 +71,13 @@ html {
text-align: left; text-align: left;
} }
} }
/* Sidebar links */ /* Sidebar links */
.sidebar a { .sidebar a {
color: #fff; color: #fff;
}/* Sidebar links */
.sidebar .title {
color: #6a9fb5;
} }
/* About section */ /* About section */
@@ -268,7 +271,7 @@ a.sidebar-social-item.active:focus {
/* background-color: #6a9fb5;*/ /* background-color: #6a9fb5;*/
/*}*/ /*}*/
.theme-base-0d .content a, .theme-base-0d .content a,
.theme-base-0d .related-posts li a:hover { .theme-base-0d .related-posts li a:hover h1 {
color: #6a9fb5; color: #6a9fb5;
} }
/*.theme-base-0d body .content .container{*/ /*.theme-base-0d body .content .container{*/
+1 -1
View File
@@ -84,7 +84,7 @@ h1, h2, h3, h4, h5, h6 {
margin-bottom: .5rem; margin-bottom: .5rem;
font-weight: bold; font-weight: bold;
line-height: 1.25; line-height: 1.25;
color: #313131; color: #6a9fb5;
text-rendering: optimizeLegibility; text-rendering: optimizeLegibility;
} }
h1 { h1 {
+2 -40
View File
@@ -1,45 +1,7 @@
{% extends "base.html" %} {% extends "base.html" %}
{% block content %} {% block content %}
<div class="posts">
{% for article in articles_page.object_list %}
<div class="post"> <div class="post">
<h1 class="post-title" href="{{ SITEURL }}/{{ article.url }}"> <h1 class="post-title">Hi! </h1>
<a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a> <p>Thanks for visiting my website! I hope you find something interesting or useful here</p>
</h1>
<span class="post-date">{{ article.locale_date }}</span>
{% if article.tags %}
<span class="post-tags">
Tags:
<ul>
{% for tag in article.tags %}
<li><a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a></li>
{% endfor %}
</ul>
</span>
{% endif %}
<p>
{{ article.summary }}
</p>
<a class="read-more" href="{{ article.url }}">Continue reading »</a>
</div> </div>
{% endfor %}
</div>
{% if DEFAULT_PAGINATION %}
<div class="pagination">
{% if articles_page.has_previous() %}
{% set num = articles_page.previous_page_number() %}
<span class="pagination-item older"><a href="{{ SITEURL }}/{{ page_name }}{{ num if num > 1 else '' }}.html">Newer</a></span>
{% else %}
<span class="pagination-item older">Newer</span>
{% endif %}
{% if articles_page.has_next() %}
<span class="pagination-item newer"><a href="{{ SITEURL }}/{{ page_name }}{{ articles_page.next_page_number() }}.html">Older</a></span>
{% else %}
<span class="pagination-item newer">Older</span>
{% endif %}
</div>
{% endif %}
{% endblock %} {% endblock %}
+31
View File
@@ -0,0 +1,31 @@
{% extends "base.html" %}
{% block content %}
<div class="posts">
PROJECT LIST HERE
{% for article in articles %}
{% if article.category == 'models' %}
<div class="post">
<h1 class="post-title" href="{{ SITEURL }}/{{ article.url }}">
<a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a>
</h1>
<span class="post-date">{{ article.locale_date }}</span>
{% if article.tags %}
<span class="post-tags">
Tags:
<ul>
{% for tag in article.tags %}
<li><a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a></li>
{% endfor %}
</ul>
</span>
{% endif %}
<p>
{{ article.summary }}
</p>
<a class="read-more" href="{{ article.url }}">Continue reading »</a>
</div>
{% endif %}
{% endfor %}
</div>
{% endblock %}
-32
View File
@@ -1,32 +0,0 @@
{% extends "base.html" %}
{% block metadata %}
<meta name="description" content="{% if article.description %}{{ article.description }}{% else %}{{ BIO }}{% endif %}">
<meta property="og:description"
content="{% if article.description %}{{ article.description }}{% else %}{{ BIO }}{% endif %}">
<meta property="og:title" content="{{ article.title }}"/>
<meta property="og:type" content="article"/>
<meta property="og:url" content="{{ SITEURL }}/{{ article.url }}"/>
{% endblock %}
{% block content %}
<div class="post">
<h1 class="post-title">{{ article.title }}</h1>
<span class="post-date">{{ article.locale_date }}</span>
THIS IS A PROJECT NOT AN ARTICLE!
{{ article.content }}
{% if article.tags %}
<span class="post-tags">
Tags:
<ul>
{% for tag in article.tags %}
<li><a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a></li>
{% endfor %}
</ul>
</span>
{% endif %}
{% include 'fragments/disqus.html' %}
</div>
{% endblock %}
+30
View File
@@ -0,0 +1,30 @@
{% extends "base.html" %}
{% block content %}
<div class="posts">
PROJECT LIST HERE
{% for article in articles %}
{% if article.category == 'projects' %}
<div class="post">
<h1 class="post-title" href="{{ SITEURL }}/{{ article.url }}">
<a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a>
</h1>
<span class="post-date">{{ article.locale_date }}</span>
{% if article.tags %}
<span class="post-tags">
Tags:
<ul>
{% for tag in article.tags %}
<li><a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a></li>
{% endfor %}
</ul>
</span>{% endif %}
<p>
{{ article.summary }}
</p>
<a class="read-more" href="{{ article.url }}">Continue reading »</a>
</div>
{% endif %}
{% endfor %}
</div>
{% endblock %}
+1 -1
View File
@@ -3,7 +3,7 @@
<div class="sidebar-about"> <div class="sidebar-about">
<h1> <h1>
<a href="{{ SITEURL }}/"> <a href="{{ SITEURL }}/" class="title">
<!-- <img class="profile-picture" src="{{ SITEURL }}/images/{{ PROFILE_IMAGE }}">--> <!-- <img class="profile-picture" src="{{ SITEURL }}/images/{{ PROFILE_IMAGE }}">-->
{{ SITENAME }} {{ SITENAME }}
</a> </a>