Added homepage template.
parent
c6b834e5b7
commit
7b8a57fc92
|
|
@ -0,0 +1,47 @@
|
||||||
|
{% extends 'base.html' %}
|
||||||
|
|
||||||
|
{% block content %}
|
||||||
|
<main>
|
||||||
|
<div>
|
||||||
|
<h1>Oh my word, this is basic!</h1>
|
||||||
|
<p>I got bored and decided to develop this site from scratch, again. See the <a
|
||||||
|
href="{% url 'core:about-website' %}">About This Website</a> page if you're at all interested in
|
||||||
|
what I'm doing and why. The short version is that I'll be developing features for the website as I
|
||||||
|
create content for it. In other words, it's going to take a long time before it's <em>pretty</em>.</p>
|
||||||
|
<p>Longer term this site will present my own photographs and photography tuition services along with
|
||||||
|
articles on photography, philosophy, politics, health & mental health, and whatever else I feel
|
||||||
|
like.</p>
|
||||||
|
</div>
|
||||||
|
<hr>
|
||||||
|
{% if featured_articles %}
|
||||||
|
<h1>Featured Articles</h1>
|
||||||
|
<hr>
|
||||||
|
<div>
|
||||||
|
{% for article in featured_articles %}
|
||||||
|
<div>
|
||||||
|
<a href="{{ article.get_absolute_url }}">{{ article.title }}</a>
|
||||||
|
{% if article.subtitle %}
|
||||||
|
<h5>{{ article.subtitle }}</h5>
|
||||||
|
{% endif %}
|
||||||
|
{% if article.introduction %}
|
||||||
|
<hr>
|
||||||
|
<p>{{ article.introduction|linebreaksbr }}</p>
|
||||||
|
{% endif %}
|
||||||
|
<hr>
|
||||||
|
<div>
|
||||||
|
<span>
|
||||||
|
<a href="{% url 'articles:list_category' category=article.category.slug %}">{{ article.category }} </a>• {{ article.created|date:'jS \o\f F, Y' }}
|
||||||
|
</span>
|
||||||
|
<span>
|
||||||
|
{% for tag in article.tags.all %}
|
||||||
|
<a href="{{ tag.get_absolute_url }}">{{ tag }}</a>{% if tag != article.tags.last %},
|
||||||
|
{% endif %}
|
||||||
|
{% endfor %}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{% endfor %}
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
</main>
|
||||||
|
{% endblock %}
|
||||||
Loading…
Reference in New Issue