-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from stuartmaxwell/dev
- Loading branch information
Showing
6 changed files
with
220 additions
and
103 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,72 @@ | ||
{% extends "djpress/base.html" %} | ||
{% load static %} | ||
{% load djpress_tags %} | ||
|
||
{% block main %} | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>{% blog_page_title post_text="| " %}{% blog_title %}</title> | ||
<link rel="stylesheet" href="{% static 'djpress/css/style.css' %}"> | ||
</head> | ||
<body> | ||
<header> | ||
<h1>{% blog_title_link %}</h1> | ||
{% blog_pages %} | ||
</header> | ||
|
||
{% category_name "h1" pre_text="View Posts in the " post_text=" Category" %} | ||
{% author_name "h1" pre_text="View Posts by " %} | ||
<main> | ||
|
||
{% if post %} | ||
{% category_name "h1" pre_text="View Posts in the " post_text=" Category" %} | ||
{% author_name "h1" pre_text="View Posts by " %} | ||
|
||
<article> | ||
<header> | ||
<h1>{% post_title_link %}</h1> | ||
<p>By {% post_author_link %}. {% post_date_link %}</p> | ||
</header> | ||
<section> | ||
{% post_content %} | ||
</section> | ||
<footer> | ||
<p>Categories: {% post_categories_link "span" "badge" %}</p> | ||
</footer> | ||
</article> | ||
{% if post %} | ||
|
||
{% else %} | ||
<article> | ||
<header> | ||
<h1>{% post_title_link %}</h1> | ||
<p>By {% post_author_link %}. {% post_date_link %}</p> | ||
</header> | ||
<section> | ||
{% post_content %} | ||
</section> | ||
<footer> | ||
<p>Categories: {% post_categories_link "span" "badge" %}</p> | ||
</footer> | ||
</article> | ||
|
||
{% for post in posts %} | ||
{% else %} | ||
|
||
<article> | ||
<header> | ||
<h1>{% post_title_link %}</h1> | ||
<p>By {% post_author_link %}. {% post_date_link %}</p> | ||
</header> | ||
<section> | ||
{% post_content %} | ||
</section> | ||
</article> | ||
{% for post in posts %} | ||
|
||
{% empty %} | ||
<article> | ||
<header> | ||
<h1>{% post_title_link %}</h1> | ||
<p>By {% post_author_link %}. {% post_date_link %}</p> | ||
</header> | ||
<section> | ||
{% post_content %} | ||
</section> | ||
</article> | ||
|
||
<p>No posts available.</p> | ||
{% empty %} | ||
|
||
{% endfor %} | ||
<p>No posts available.</p> | ||
|
||
{% endif %} | ||
{% endfor %} | ||
|
||
{% endif %} | ||
|
||
{% posts_nav_links %} | ||
{% pagination_links %} | ||
|
||
{% endblock main %} | ||
</main> | ||
|
||
<footer> | ||
<p>Powered by | ||
<a href="https://www.djangoproject.com/" title="The web framework for perfectionists with deadlines">Django</a> | ||
and | ||
<a href="#">DJPress</a> | ||
</p> | ||
</footer> | ||
</body> | ||
</html> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" | |
|
||
[project] | ||
name = "djpress" | ||
version = "0.6.0" | ||
version = "0.7.0" | ||
authors = [{ name = "Stuart Maxwell", email = "[email protected]" }] | ||
description = "A blog application for Django sites, inspired by classic WordPress." | ||
readme = "README.md" | ||
|
Oops, something went wrong.