generated from westfarn/web_django_template
Ship College Craft public site and point CI deploys at college_craft.
Replaces template branding with College Craft pages, assets, and copy, and matches Gitea deploy workflows to the server-infra catalog name and master branch so beta deploys actually run. Closes #1
This commit is contained in:
@@ -1,12 +1,21 @@
|
||||
{% extends "base.html" %}
|
||||
{% load static %}
|
||||
{% block title %}{{ post.title }} · {{ SITE_NAME }}{% endblock %}
|
||||
{% block og_title %}{{ post.title }} · {{ SITE_NAME }}{% endblock %}
|
||||
{% block twitter_title %}{{ post.title }}{% endblock %}
|
||||
{% block meta_description %}{{ post.excerpt|default:post.body|truncatewords:28 }}{% endblock %}
|
||||
{% block content %}
|
||||
<section class="section section-lg">
|
||||
<div class="container">
|
||||
<p><a href="{% url 'blog:list' %}">← Blog</a></p>
|
||||
<h1>{{ post.title }}</h1>
|
||||
<p class="muted">{% if post.published_at %}{{ post.published_at|date:"F j, Y" }}{% endif %}</p>
|
||||
<div>{{ post.body|linebreaks }}</div>
|
||||
</div>
|
||||
</section>
|
||||
{% include "public/_breadcrumbs.html" with title=post.title subtitle="Blog" %}
|
||||
<section class="section section-md bg-default">
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-md-10 col-lg-8">
|
||||
<p><a href="{% url 'blog:list' %}">← Blog</a></p>
|
||||
<h2>{{ post.title }}</h2>
|
||||
{% if post.published_at %}<p class="time">{{ post.published_at|date:"F j, Y" }}</p>{% endif %}
|
||||
<div class="big">{{ post.body|linebreaks }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{% endblock %}
|
||||
|
||||
@@ -1,18 +1,26 @@
|
||||
{% extends "base.html" %}
|
||||
{% load static %}
|
||||
{% block title %}Blog · {{ SITE_NAME }}{% endblock %}
|
||||
{% block og_title %}Blog · {{ SITE_NAME }}{% endblock %}
|
||||
{% block twitter_title %}Blog · {{ SITE_NAME }}{% endblock %}
|
||||
{% block meta_description %}News and painting tips from {{ SITE_NAME }}.{% endblock %}
|
||||
{% block content %}
|
||||
<section class="section section-lg">
|
||||
<div class="container">
|
||||
<h1 class="text-uppercase">Blog</h1>
|
||||
{% for post in posts %}
|
||||
<article style="margin:0 0 32px">
|
||||
<h2><a href="{{ post.get_absolute_url }}">{{ post.title }}</a></h2>
|
||||
<p class="muted">{% if post.published_at %}{{ post.published_at|date:"F j, Y" }}{% endif %}</p>
|
||||
<p>{{ post.excerpt|default:post.body|truncatewords:40 }}</p>
|
||||
</article>
|
||||
{% empty %}
|
||||
<p>No posts yet.</p>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</section>
|
||||
{% include "public/_breadcrumbs.html" with title="Blog" subtitle="Our latest news and updates" %}
|
||||
<section class="section section-md bg-default">
|
||||
<div class="container">
|
||||
<div class="row row-50 justify-content-center">
|
||||
<div class="col-md-10 col-lg-8 post-classic-wrap">
|
||||
{% for post in posts %}
|
||||
<article class="post-classic">
|
||||
<h5 class="title"><a href="{{ post.get_absolute_url }}">{{ post.title }}</a></h5>
|
||||
<p class="exeption">{{ post.excerpt|default:post.body|truncatewords:40 }}</p>
|
||||
{% if post.published_at %}<div class="time">{{ post.published_at|date:"F j, Y" }}</div>{% endif %}
|
||||
</article>
|
||||
{% empty %}
|
||||
<p>No posts yet. Check back soon for painting tips and project news.</p>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user