8 changed files with 116 additions and 7 deletions
@ -0,0 +1,3 @@
|
||||
_model: comics |
||||
--- |
||||
title: ungleich penguin comics |
After Width: | Height: | Size: 334 KiB |
@ -0,0 +1,21 @@
|
||||
[model] |
||||
name = Comic |
||||
label = {{ this.title }} |
||||
hidden = yes |
||||
|
||||
[attachments] |
||||
order_by = _id |
||||
|
||||
[fields.subtitle] |
||||
label = Subtitle |
||||
type = string |
||||
size = large |
||||
|
||||
[fields.pub_date] |
||||
label = Publication date |
||||
type = date |
||||
width = 1/4 |
||||
|
||||
[fields.body] |
||||
label = Body |
||||
type = markdown |
@ -0,0 +1,16 @@
|
||||
[model] |
||||
name = Comic |
||||
label = Comic |
||||
hidden = yes |
||||
|
||||
[fields.title] |
||||
label = Title |
||||
type = string |
||||
|
||||
[children] |
||||
model = comic |
||||
order_by = -pub_date, title |
||||
|
||||
[pagination] |
||||
enabled = yes |
||||
per_page = 1 |
@ -0,0 +1,39 @@
|
||||
{% extends "layout-2020.html" %} |
||||
{% block title %}Penguin Comics{% endblock %} |
||||
{% block subtitle %}{{ this.subtitle }}{% endblock %} |
||||
|
||||
{% block content %} |
||||
{% set image = this.attachments.images.first() %} |
||||
|
||||
|
||||
<div class="container"> |
||||
<div class="row mb-5"> |
||||
<div class="col-md-3"> |
||||
<!-- unused for centering --> |
||||
</div> |
||||
<div class="col-md-6"> |
||||
<img src="{{ image|url }}" alt="{{ this.title }}" |
||||
class="img-fluid"/> |
||||
</div> |
||||
<div class="col-md-3"> |
||||
<!-- unused for centering --> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
|
||||
{% if this.body %} |
||||
<div class="container"> |
||||
<div class="row mb-3"> |
||||
<div class="col-md-3"> |
||||
<!-- unused for centering --> |
||||
</div> |
||||
<div class="col-md-6"> |
||||
{{ this.body }} |
||||
</div> |
||||
<div class="col-md-3"> |
||||
<!-- unused for centering --> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
{% endif %} |
||||
{% endblock %} |
@ -0,0 +1,33 @@
|
||||
{% extends "layout-2020.html" %} |
||||
{% from "macros/blog.html" import render_blog_post %} |
||||
{% from "macros/pagination.html" import render_pagination %} |
||||
{% block title %}{{ this.title }}{% endblock %} |
||||
{% block body %} |
||||
<header class="intro-header" style="background-image: url('/u/static/images/home-bg.jpg');"> |
||||
<div class="container"> |
||||
<div class="row"> |
||||
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1"> |
||||
<div class="site-heading"> |
||||
<h1>ungleich blog</h1> |
||||
<hr class="small"> |
||||
<span class="subheading"></span> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</header> |
||||
<div class="container"> |
||||
<div class="row"> |
||||
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1"> |
||||
<div class="app app-blog span8"> |
||||
<section class="blog-list"> |
||||
{% for child in this.pagination.items %} |
||||
{{ render_blog_post(child, from_index=true) }} |
||||
{% endfor %} |
||||
{{ render_pagination(this.pagination) }} |
||||
</section> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
{% endblock %} |
Loading…
Reference in new issue