feat:adding in a lot of formatting fixes, 404 page and a 500 page
This commit is contained in:
+5
-43
@@ -1,45 +1,7 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<div class="posts">
|
||||
{% for article in articles_page.object_list %}
|
||||
<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>
|
||||
{% 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 %}
|
||||
<div class="post">
|
||||
<h1 class="post-title">Hi! </h1>
|
||||
<p>Thanks for visiting my website! I hope you find something interesting or useful here</p>
|
||||
</div>
|
||||
{% endblock %}
|
||||
@@ -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 %}
|
||||
@@ -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 %}
|
||||
@@ -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 %}
|
||||
@@ -3,7 +3,7 @@
|
||||
<div class="sidebar-about">
|
||||
|
||||
<h1>
|
||||
<a href="{{ SITEURL }}/">
|
||||
<a href="{{ SITEURL }}/" class="title">
|
||||
<!-- <img class="profile-picture" src="{{ SITEURL }}/images/{{ PROFILE_IMAGE }}">-->
|
||||
{{ SITENAME }}
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user