++penguin comics
This commit is contained in:
		
					parent
					
						
							
								7c586e5dcd
							
						
					
				
			
			
				commit
				
					
						e1a56d266a
					
				
			
		
					 8 changed files with 116 additions and 7 deletions
				
			
		
							
								
								
									
										3
									
								
								content/u/penguincomics/contents.lr
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								content/u/penguincomics/contents.lr
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,3 @@
 | 
				
			||||||
 | 
					_model: comics
 | 
				
			||||||
 | 
					---
 | 
				
			||||||
 | 
					title: ungleich penguin comics
 | 
				
			||||||
| 
						 | 
					@ -1,11 +1,8 @@
 | 
				
			||||||
title: ...
 | 
					subtitle: Privacy and Security Policy
 | 
				
			||||||
---
 | 
					---
 | 
				
			||||||
pub_date: 2020-02-05
 | 
					pub_date: 2020-02-05
 | 
				
			||||||
---
 | 
					---
 | 
				
			||||||
_hidden: no
 | 
					_hidden: no
 | 
				
			||||||
---
 | 
					---
 | 
				
			||||||
_discoverable: no
 | 
					_discoverable: yes
 | 
				
			||||||
---
 | 
					---
 | 
				
			||||||
body:
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
A description or don't know what.
 | 
					 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 334 KiB  | 
							
								
								
									
										21
									
								
								models/comic.ini
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								models/comic.ini
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -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
 | 
				
			||||||
							
								
								
									
										16
									
								
								models/comics.ini
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								models/comics.ini
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -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
 | 
				
			||||||
							
								
								
									
										39
									
								
								templates/comic.html
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										39
									
								
								templates/comic.html
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -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 %}
 | 
				
			||||||
							
								
								
									
										33
									
								
								templates/comics.html
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										33
									
								
								templates/comics.html
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -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 %}
 | 
				
			||||||
| 
						 | 
					@ -4,7 +4,7 @@
 | 
				
			||||||
    <div class="row">
 | 
					    <div class="row">
 | 
				
			||||||
      <div class="col-md-4">
 | 
					      <div class="col-md-4">
 | 
				
			||||||
          {% set image = post.attachments.images.first() %}
 | 
					          {% set image = post.attachments.images.first() %}
 | 
				
			||||||
          <h2><a href="{{ post|url }}">{% if image %}<img src="{{ image.thumbnail(240)|url }}" alt=""/>{% else %}<div class="blog-post-placeholder"></div>{% endif %}</a></h2>
 | 
					          <h2><a href="{{ post|url }}">{% if image %}<img src="{{ image.thumbnail(240)|url }}" alt=""/>{% else %}<div class="blog-post-placeholder"></div>{% endif %}</a></h2>e
 | 
				
			||||||
      </div>
 | 
					      </div>
 | 
				
			||||||
      <div class="col-md-8">
 | 
					      <div class="col-md-8">
 | 
				
			||||||
        {% if from_index %}<a href="{{ post|url }}"><h2 class="post-title">{{ post.title }}</h2></a>
 | 
					        {% if from_index %}<a href="{{ post|url }}"><h2 class="post-title">{{ post.title }}</h2></a>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue