Scaffold containerized Django/Wagtail app with core features
This commit is contained in:
21
templates/blog/home_page.html
Normal file
21
templates/blog/home_page.html
Normal file
@@ -0,0 +1,21 @@
|
||||
{% extends 'base.html' %}
|
||||
{% block title %}No Hype AI{% endblock %}
|
||||
{% block content %}
|
||||
<section>
|
||||
{% if featured_article %}
|
||||
<h2>{{ featured_article.title }}</h2>
|
||||
<p>{{ featured_article.author.name }}</p>
|
||||
<p>{{ featured_article.read_time_mins }} min read</p>
|
||||
{% endif %}
|
||||
</section>
|
||||
<section>
|
||||
{% for article in latest_articles %}
|
||||
{% include 'components/article_card.html' with article=article %}
|
||||
{% endfor %}
|
||||
</section>
|
||||
<section>
|
||||
{% for article in more_articles %}
|
||||
{% include 'components/article_card.html' with article=article %}
|
||||
{% endfor %}
|
||||
</section>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user