Add post edit / index view

This commit is contained in:
2022-04-23 23:35:18 -04:00
parent a58cc25bbb
commit d0e016fd28
9 changed files with 301 additions and 59 deletions

View File

@@ -0,0 +1,23 @@
{% if model.subtitle %}
<h2>{{ model.subtitle.value }}</h2>
{% endif %}
<section class="container" aria-label="The posts for the page">
{% for post in model.posts %}
<div class="row">
<div class="col">
<article>
<h1>
<a href="/{{ post.permalink }}" title="Permanent link to &quot;{{ post.title | escape }}&quot;">
{{ post.title }}
</a>
</h1>
<p>
Published on {{ post.published_on | date: "MMMM d, yyyy" }}
at {{ post.published_on | date: "h:mmtt" | downcase }}
</p>
{{ post.text }}
</article>
</div>
</div>
{% endfor %}
</section>

View File

@@ -7,7 +7,7 @@
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css"
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<link rel="stylesheet" href="/themes/{{ web_log.theme_path }}/style.css">
<title>{{ page_title | escape }} &laquo; {{ web_log.name | escape }}</title>
<title>{{ page_title | escape }}{% if page_title %} &laquo; {% endif %}{{ web_log.name | escape }}</title>
</head>
<body>
<header>