-
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.
- Loading branch information
1 parent
699887a
commit 1e53d40
Showing
7 changed files
with
60 additions
and
51 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -1,11 +1,12 @@ | ||
{% load static %} | ||
{% load djpress_tags %} | ||
|
||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>{% block title %}stuartm.nz{% endblock %}</title> | ||
<title>{% spaceless %}{% block title %}{% get_blog_title %}{% endblock %}{% endspaceless %}</title> | ||
<link rel="alternate" type="application/rss+xml" title="Latest Posts" href="{% url 'djpress:rss_feed' %}"> | ||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"> | ||
<link href="{% static "css/pygments/nord.min.css" %}" rel="stylesheet"> | ||
|
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,32 +1,46 @@ | ||
{% extends 'base.html' %} | ||
{% load djpress_tags %} | ||
|
||
{% block title %}Home{% endblock %} | ||
|
||
{% block content %} | ||
{% block title %} | ||
|
||
{% if slug %} | ||
{% comment %} If there's a slug, we only display a single post. {% endcomment %} | ||
{% if post %} | ||
|
||
{% get_single_published_content slug as post %} | ||
{{ post.title }} - {% get_blog_title %} | ||
|
||
{% include "djpress/snippets/content_detail.html" %} | ||
{% elif category %} | ||
|
||
{{ category.name }} - {% get_blog_title %} | ||
|
||
{% else %} | ||
{% comment %} If there's no slug, we loop through recent published content. {% endcomment %} | ||
|
||
{% get_recent_published_content as posts %} | ||
{% get_blog_title %} | ||
|
||
{% endif %} | ||
|
||
{% endblock title %} | ||
|
||
|
||
{% block content %} | ||
|
||
{% if post %} | ||
|
||
{% include "djpress/snippets/content_detail.html" %} | ||
|
||
{% elif posts %} | ||
|
||
<h1>The posts go here.</h1> | ||
|
||
{% for post in posts %} | ||
|
||
{% include "djpress/snippets/content_summary.html" %} | ||
|
||
{% empty %} | ||
{% endfor %} | ||
|
||
<p>No posts available.</p> | ||
{% else %} | ||
|
||
{% endfor %} | ||
<p>No posts available.</p> | ||
|
||
{% endif %} | ||
|
||
{% endblock %} | ||
{% endblock content %} |
This file was deleted.
Oops, something went wrong.