[TASK] remove old theme

This commit is contained in:
TLRZ Seyfferth 2020-05-04 19:46:50 +02:00
parent 53fcfd0e7f
commit e64da153cd
20 changed files with 0 additions and 3368 deletions

View File

@ -1,118 +0,0 @@
Pico Default Theme Changelog
============================
**Note:** This changelog only provides technical information about the changes
introduced with a particular Pico version, and is meant to supplement
the actual code changes. The information in this changelog are often
insufficient to understand the implications of larger changes. Please
refer to both the UPGRADE and NEWS sections of the docs for more
details.
### Version 2.1.1
Released: 2019-12-31
No changes
### Version 2.1.0
Released: 2019-11-24
```
* [New] Add Pico's official logo and tagline
* [New] Add some utility classes for typography and images
* [Changed] Improve documentation of `pico-theme.yml`
* [Changed] Various small improvements
```
### Version 2.1.0-beta.1
Released: 2019-11-03
```
* [Changed] Add basic `pico-theme.yml` to use API v3, enable Twig's autoescape
feature (no changes necessary) and register `Social` meta header
* [Changed] Use Pico's `pages` Twig function to create the main navigation
* [Changed] Improve formatting of definition lists and inline code snippets
* [Changed] Improve JSDoc class docs
* [Changed] Various small improvements
```
### Version 2.0.5-beta.1
Released: 2019-01-03
```
* [New] Add `2.0.x-dev` alias for master branch to `composer.json`
```
### Version 2.0.4
Released: 2018-12-17
No changes
### Version 2.0.3
Released: 2018-12-03
No changes
### Version 2.0.2
Released: 2018-08-12
No changes
### Version 2.0.1
Released: 2018-07-29
No changes
### Version 2.0.0
Released: 2018-07-01
```
* [New] Add Bountysource
* [Changed] Improve documentation
```
### Version 2.0.0-beta.3
Released: 2018-04-07
No changes
### Version 2.0.0-beta.2
Released: 2018-01-21
```
* [Fixed] Fix sliding animation of collapsible menu in IE 9
* [Changed] Move Fontello font to `icon/` directory
* [Changed] Move stylesheets to `css/` directory
* [Changed] Improve Fontello font copyright notice
* [Changed] Add Droid Sans and Droid Sans Mono font files to `font/` directory,
making Pico's default theme fully self-containing
```
### Version 2.0.0-beta.1
Released: 2017-11-05
**Note:** Pico's default theme was completely rewritten from scratch for
Pico 2.0 and moved to this separate repository. This changelog only
provides basic information about the most important changes compared
to Pico 1.0. It therefore doesn't include the changes made before
this release. The rewrite breaks backwards compatibility (BC).
```
* [New] Rewrite Pico's default theme from scratch with a much cleaner, more
modern, but still "stupidly simple" structure; the new theme officially
supports Internet Explorer 9+ as well as all versions of the major
desktop and mobile browsers, as long as they are still officially
supported by their respective vendor
* [New] Pico's default theme is now a fully responsive theme, adapting the
layout to the viewing environment (desktops vs. tablets vs. smartphones
vs. ...)
* [New] Add a collapsible page menu for small screens (menu slides up/down)
* [New] Add basic form themeing
* [New] Support a "widescreen" mode, demonstrating how themes can adjust their
behavior using config parameters (i.e. Pico's `config/config.yml`)
* [Changed] Show top-level pages in the website's navigation only (i.e. show
`page.md` and `sub/index.md`, but not `sub/page.md`)
* [Changed] Hide pages starting with a `_` in the website's navigation
* [Changed] Move Pico's social icons from `index.md` to `_meta.md`,
demonstrating how themes can use YAML-only meta pages to support
dynamic content
```

View File

@ -1,21 +0,0 @@
The MIT License (MIT)
Copyright (c) 2012 The Pico Community
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@ -1,67 +0,0 @@
Pico Default Theme
==================
This is the repository of Pico's official default theme.
Pico is a stupidly simple, blazing fast, flat file CMS. See http://picocms.org/ for more info.
Please refer to [`picocms/Pico`](https://github.com/picocms/Pico) to get info about how to contribute or getting help.
Screenshot
----------
![Pico Screenshot](https://picocms.github.io/screenshots/pico-21.png)
Install
-------
You usually don't have to install this theme manually, it's shipped together with [Pico's pre-built release packages](https://github.com/picocms/Pico/releases/latest) and a default dependency of [`picocms/pico-composer`](https://github.com/picocms/pico-composer).
If you're using a custom theme, you can safely remove this theme.
If you use a `composer`-based installation of Pico and want to either remove or install Pico's default theme, simply open a shell on your server and navigate to Pico's install directory (e.g. `/var/www/html`). Run `composer remove picocms/pico-theme` to remove the theme, or run `composer require picocms/pico-theme` (via [Packagist.org](https://packagist.org/packages/picocms/pico-theme)) to install the theme.
If you rather use one of Pico's pre-built release packages, it is best to simply leave Pico's default theme as it is - it won't hurt... :wink: The reason for this is, that the theme is part of Pico's pre-built release packages, thus it will be automatically re-installed when updating Pico. However, if you really want to remove the theme, simply delete the `themes/default` directory in Pico's install directory (e.g. `/var/www/html`). If you want to install Pico's default theme, you must first create a empty `themes/default` directory on your server, [download the version of the theme](https://github.com/picocms/pico-theme/releases) matching the version of your Pico installation and upload all containing files (i.a. `index.twig`) into said `themes/default` directory (resulting in `themes/default/index.twig`).
The versioning of Pico's default theme strictly follows the version of Pico's core. You *must not* use a version of the theme that doesn't match the version of Pico's core (e.g. version 2.0.1 is *not compatible* with Pico 2.0.0). If you're using a `composer`-based installation of Pico, simply use a version constaint like `^2.0` - `picocms/pico-theme` ensures that its version matches Pico's version. Even if you're using one of Pico's pre-built release packages, you don't have to take care of anything - a matching version of the theme is part of Pico's pre-built release packages anyway.
Usage
-----
Pico's default theme isn't really intended to be used for a productive website, it's rather a starting point for creating your own theme. Simply copy the theme's directory (`themes/default/` to e.g. `themes/my_theme/`) and add the following line to your `config/config.yml`:
```yaml
theme: my_theme
```
You can now edit the theme's stylesheets and JavaScript to fit your needs. If you rather want to use a third-party theme, simply add the theme's directory to your `themes/` directory (e.g. `themes/some_other_theme/`) and update your `config/config.yml` accordingly. Pico's default theme is now completely disabled and won't ever interfere with your custom theme or your website in general anymore. If you want to use Pico's default theme again, either remove the line or replace it by `theme: default`.
Anyway, since Pico's default theme is meant to be a starting point for your own theme, it demonstrates how themes can allow one to tweak a theme's behavior. For this reason it supports a "Widescreen" mode: By adding `theme_config.widescreen: true` to your `config/config.yml`, the theme's main container grows from 768px to 1152px breadth due to adding `class="widescreen"` to the website's `<body>` element. Pico's default theme furthermore supports displaying both a logo and a tagline in its header, as well as adding social buttons to its footer. Rather than using Pico's config for this, it uses the YAML Frontmatter of the `content/_meta.md` Markdown file. Here's `content/_meta.md` from Pico's sample contents:
```yaml
---
Logo: %theme_url%/img/pico-white.svg
Tagline: Making the web easy.
Social:
- title: Visit us on GitHub
url: https://github.com/picocms/Pico
icon: octocat
- title: Join us on Freenode IRC Webchat
url: https://webchat.freenode.net/?channels=%23picocms
icon: chat
---
```
You should also check out the theme's `pico-theme.yml`: First of all it tells Pico to use the latest API version for themes and adjusts Pico's default Twig config. But more importantly it also registers the mentioned `widescreen` theme config as well as the meta headers `Logo`, `Tagline` and `Social`.
Getting Help
------------
Please refer to the ["Getting Help" section](https://github.com/picocms/Pico#getting-help) of our main repository.
Contributing
------------
Please refer to the ["Contributing" section](https://github.com/picocms/Pico#contributing) of our main repository.
By contributing to Pico, you accept and agree to the *Developer Certificate of Origin* for your present and future contributions submitted to Pico. Please refer to the ["Developer Certificate of Origin" section](https://github.com/picocms/Pico/blob/master/CONTRIBUTING.md#developer-certificate-of-origin) in the `CONTRIBUTING.md` of our main repository.

View File

@ -1,38 +0,0 @@
{
"name": "picocms/pico-theme",
"type": "pico-theme",
"description": "This is Pico's official default theme. Pico is a stupidly simple, blazing fast, flat file CMS.",
"keywords": [ "pico", "picocms", "picocms-theme", "pico-theme", "default-theme" ],
"homepage": "http://picocms.org/",
"license": "MIT",
"authors": [
{
"name": "Daniel Rudolf",
"email": "picocms.org@daniel-rudolf.de",
"role": "Lead Developer"
},
{
"name": "The Pico Community",
"homepage": "http://picocms.org/"
},
{
"name": "Contributors",
"homepage": "https://github.com/picocms/pico-theme/graphs/contributors"
}
],
"support": {
"docs": "http://picocms.org/themes/default/",
"issues": "https://github.com/picocms/pico-theme/issues",
"source": "https://github.com/picocms/pico-theme"
},
"require": {
"picocms/pico": "self.version"
},
"extra": {
"installer-name": "default",
"branch-alias": {
"dev-master": "2.0.x-dev",
"dev-pico-2.1": "2.1.x-dev"
}
}
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

View File

@ -1,349 +0,0 @@
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
/* Document
========================================================================== */
/**
* 1. Correct the line height in all browsers.
* 2. Prevent adjustments of font size after orientation changes in iOS.
*/
html {
line-height: 1.15; /* 1 */
-webkit-text-size-adjust: 100%; /* 2 */
}
/* Sections
========================================================================== */
/**
* Remove the margin in all browsers.
*/
body {
margin: 0;
}
/**
* Render the `main` element consistently in IE.
*/
main {
display: block;
}
/**
* Correct the font size and margin on `h1` elements within `section` and
* `article` contexts in Chrome, Firefox, and Safari.
*/
h1 {
font-size: 2em;
margin: 0.67em 0;
}
/* Grouping content
========================================================================== */
/**
* 1. Add the correct box sizing in Firefox.
* 2. Show the overflow in Edge and IE.
*/
hr {
box-sizing: content-box; /* 1 */
height: 0; /* 1 */
overflow: visible; /* 2 */
}
/**
* 1. Correct the inheritance and scaling of font size in all browsers.
* 2. Correct the odd `em` font sizing in all browsers.
*/
pre {
font-family: monospace, monospace; /* 1 */
font-size: 1em; /* 2 */
}
/* Text-level semantics
========================================================================== */
/**
* Remove the gray background on active links in IE 10.
*/
a {
background-color: transparent;
}
/**
* 1. Remove the bottom border in Chrome 57-
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
*/
abbr[title] {
border-bottom: none; /* 1 */
text-decoration: underline; /* 2 */
text-decoration: underline dotted; /* 2 */
}
/**
* Add the correct font weight in Chrome, Edge, and Safari.
*/
b,
strong {
font-weight: bolder;
}
/**
* 1. Correct the inheritance and scaling of font size in all browsers.
* 2. Correct the odd `em` font sizing in all browsers.
*/
code,
kbd,
samp {
font-family: monospace, monospace; /* 1 */
font-size: 1em; /* 2 */
}
/**
* Add the correct font size in all browsers.
*/
small {
font-size: 80%;
}
/**
* Prevent `sub` and `sup` elements from affecting the line height in
* all browsers.
*/
sub,
sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sub {
bottom: -0.25em;
}
sup {
top: -0.5em;
}
/* Embedded content
========================================================================== */
/**
* Remove the border on images inside links in IE 10.
*/
img {
border-style: none;
}
/* Forms
========================================================================== */
/**
* 1. Change the font styles in all browsers.
* 2. Remove the margin in Firefox and Safari.
*/
button,
input,
optgroup,
select,
textarea {
font-family: inherit; /* 1 */
font-size: 100%; /* 1 */
line-height: 1.15; /* 1 */
margin: 0; /* 2 */
}
/**
* Show the overflow in IE.
* 1. Show the overflow in Edge.
*/
button,
input { /* 1 */
overflow: visible;
}
/**
* Remove the inheritance of text transform in Edge, Firefox, and IE.
* 1. Remove the inheritance of text transform in Firefox.
*/
button,
select { /* 1 */
text-transform: none;
}
/**
* Correct the inability to style clickable types in iOS and Safari.
*/
button,
[type="button"],
[type="reset"],
[type="submit"] {
-webkit-appearance: button;
}
/**
* Remove the inner border and padding in Firefox.
*/
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
border-style: none;
padding: 0;
}
/**
* Restore the focus styles unset by the previous rule.
*/
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
outline: 1px dotted ButtonText;
}
/**
* Correct the padding in Firefox.
*/
fieldset {
padding: 0.35em 0.75em 0.625em;
}
/**
* 1. Correct the text wrapping in Edge and IE.
* 2. Correct the color inheritance from `fieldset` elements in IE.
* 3. Remove the padding so developers are not caught out when they zero out
* `fieldset` elements in all browsers.
*/
legend {
box-sizing: border-box; /* 1 */
color: inherit; /* 2 */
display: table; /* 1 */
max-width: 100%; /* 1 */
padding: 0; /* 3 */
white-space: normal; /* 1 */
}
/**
* Add the correct vertical alignment in Chrome, Firefox, and Opera.
*/
progress {
vertical-align: baseline;
}
/**
* Remove the default vertical scrollbar in IE 10+.
*/
textarea {
overflow: auto;
}
/**
* 1. Add the correct box sizing in IE 10.
* 2. Remove the padding in IE 10.
*/
[type="checkbox"],
[type="radio"] {
box-sizing: border-box; /* 1 */
padding: 0; /* 2 */
}
/**
* Correct the cursor style of increment and decrement buttons in Chrome.
*/
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
height: auto;
}
/**
* 1. Correct the odd appearance in Chrome and Safari.
* 2. Correct the outline style in Safari.
*/
[type="search"] {
-webkit-appearance: textfield; /* 1 */
outline-offset: -2px; /* 2 */
}
/**
* Remove the inner padding in Chrome and Safari on macOS.
*/
[type="search"]::-webkit-search-decoration {
-webkit-appearance: none;
}
/**
* 1. Correct the inability to style clickable types in iOS and Safari.
* 2. Change font properties to `inherit` in Safari.
*/
::-webkit-file-upload-button {
-webkit-appearance: button; /* 1 */
font: inherit; /* 2 */
}
/* Interactive
========================================================================== */
/*
* Add the correct display in Edge, IE 10+, and Firefox.
*/
details {
display: block;
}
/*
* Add the correct display in all browsers.
*/
summary {
display: list-item;
}
/* Misc
========================================================================== */
/**
* Add the correct display in IE 10+.
*/
template {
display: none;
}
/**
* Add the correct display in IE 10.
*/
[hidden] {
display: none;
}

View File

@ -1,97 +0,0 @@
@import url('https://fonts.googleapis.com/css?family=Alegreya|Caveat|Lato&display=swap');
html {
font-family: 'Lato', sans-serif;
}
html,
body {
height: 100%;
}
body {
display: flex;
flex-direction: column;
}
header {
border-bottom: 0;
}
body>.container {
flex: 1 0 auto;
margin: 0;
}
body>.container>.row {
height: 100%
}
h1,
h2,
h3,
h4,
h5,
h6,
.site-title {
font-family: Alegreya;
}
.site-title {
font-size: 1.6em;
line-height: 1.2;
}
.field input[type="text"],
.field input[type="email"],
.field textarea {
width: 95%;
}
footer {
flex-shrink: 0;
border-top: 0;
}
/**
* Blog Section
*/
.blog-entry {
margin-bottom: 3em;
display: flex;
}
.blog-entry .img {
display: block;
height: 150px;
width: 150px;
background-color: var(--secondary-fore-color);
border-radius: 50%;
}
.blog-entry .text {
position: relative;
width: 100%;
width: calc(100% - 200px);
padding-left: 2em;
}
.blog-entry .text h3 {
margin-top: 0;
margin-bottom: .8em;
font-size: 1.6em;
}
.meta-wrap {
display: block;
}
.meta-wrap .meta span:nth-child(2n-1) {
color: var(--secondary-fore-color);
}
.row.field {
align-items: center;
}

View File

@ -1,23 +0,0 @@
<svg viewBox="0 0 400 400" xmlns="http://www.w3.org/2000/svg">
<!-- Created with Method Draw - http://github.com/duopixel/Method-Draw/ -->
<defs>
<filter height="200%" width="200%" y="-50%" x="-50%" id="svg_8_blur">
<feGaussianBlur stdDeviation="5" in="SourceGraphic"/>
</filter>
<filter height="200%" width="200%" y="-50%" x="-50%" id="svg_9_blur">
<feGaussianBlur stdDeviation="6" in="SourceGraphic"/>
</filter>
</defs>
<g>
<title>background</title>
<rect fill="none" id="canvas_background" height="402" width="402" y="-1" x="-1"/>
<g display="none" overflow="visible" y="0" x="0" height="100%" width="100%" id="canvasGrid">
<rect fill="url(#gridpattern)" stroke-width="0" y="0" x="0" height="100%" width="100%"/>
</g>
</g>
<g>
<title>chrosey.de</title>
<path filter="url(#svg_9_blur)" stroke="#000" id="svg_9" d="m16,212.567831l182.75122,-180.567832l182.75122,180.567832l-182.75122,180.567832l-182.75122,-180.567832z" stroke-opacity="null" fill="#ffffff"/>
<path filter="url(#svg_8_blur)" stroke="#000" id="svg_8" d="m148.59135,167.000001c0.64762,-1 87.42912,51 87.10531,51l-21.85728,78.125l-21.85728,76.875l-181.9821,-183c0,0 181.9821,-180 181.65829,-180c0.32381,0 49.54317,48 49.21935,48c0.16191,0 -3.64288,7.75 -7.52861,15.5c-3.88574,7.75 -7.85243,15.5 -8.01434,15.5l-33.00253,-27l-43.74081,105z" stroke-opacity="null" stroke-width="2" fill="#000000"/>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 1.4 KiB

View File

@ -1,35 +0,0 @@
{% extends "templates/layout/base.twig" %}
{% block content %}
{{ parent() }}
<section class="articles">
{% for page in pages(current_page.id, depth=3)|sort_by("time")|reverse if not page.hidden %}
<article class="blog-entry">
<a href="{{ page.url }}">
<img src=" {{ config.images_path }}{{ page.id }}"
alt="{{ page.images.0.alt }}"
class="img">
</a>
<div class="text">
<h3>{{ page.title }}</h3>
<div class="meta-wrap">
<p class="meta">
<span> {{ page.meta.date_formatted }}</span>
{% if page.meta.category %}
&middot;
<span> {{ page.meta.category }}</span>
{% endif %}
</p>
</div>
<p>{{ page.description }}</p>
<a href="{{ page.url }}">Weiterlesen ></a>
</div>
</article>
{% endfor %}
</section>
{% endblock %}

View File

@ -1,31 +0,0 @@
{% extends "templates/layout/base.twig" %}
{% block content %}
{{ parent() }}
<section>
<div class="blog-navigation">
<a class="button"
href="{{ "blog"|link }}">Zurück</a>
</div>
</section>
{% endblock %}
{% block aside %}
{% for image in images %}
{% if image.meta %}
<figure>
{% endif %}
<img class="rounded shadowed"
src="{{ image.url }}"
alt="{{ image.name }}"
{{ image.size }}>
{% if image.meta %}
<figcaption>{{ image.meta.title }} ({{ image.meta.year }})<br />{{ image.meta.description }}</figcaption>
</figure>
{% endif %}
{% endfor %}
{% endblock %}

View File

@ -1,8 +0,0 @@
{% extends "templates/layout/base.twig" %}
{% block aside %}
{% include "templates/widgets/bloglist.twig" %}
{% endblock %}

View File

@ -1,79 +0,0 @@
<!DOCTYPE html>
<html class="no-js">
<head>
{% block head %}
<meta charset="utf-8" />
<meta name="viewport"
content="width=device-width, initial-scale=1, user-scalable=no" />
<title>
{% if meta.title %}
{{ meta.title }}
|
{% endif %}
{{ site_title }}</title>
{% if meta.description %}
<meta name="description"
content="{{ meta.description|striptags }}" />
{% endif %}
{% if meta.robots %}
<meta name="robots"
content="{{ meta.robots }}" />
{% endif %}
{% if current_page %}
<link rel="canonical"
href="{{ current_page.url }}" />
{% endif %}
<link rel="stylesheet"
href="{{ theme_url }}/css/mini-{{ config.theme_config.color }}.min.css">
<link rel="stylesheet"
href="{{ theme_url }}/css/style.css"
type="text/css" />
<link href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.17.1/themes/prism-tomorrow.min.css"
rel="stylesheet" />
{% endblock %}
</head>
<body>
{% include "templates/layout/header.twig" %}
<div class="container">
<div class="row">
<nav class="col-sm-12 col-md-3 col-lg-2">
{% include "templates/layout/navigationBar.twig" %}
</nav>
<main class="col-sm-12 col-md-6 col-lg-6">
{% block content %}
<section>
{{ content }}
</section>
{% endblock %}
</main>
<aside class="col-sm-12 col-md-2 col-lg-2">
<div class="row">
<div class="col-sm-12">
{% block aside %}
<section>
{{ aside }}
</section>
{% endblock %}
</div>
</div>
</aside>
</div>
</div>
{% include "templates/layout/footer.twig" %}
<script src="{{ theme_url }}/js/site.js"
type="text/javascript">
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.17.1/components/prism-core.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.17.1/plugins/autoloader/prism-autoloader.min.js">
</script>
</body>
</html>

View File

@ -1,13 +0,0 @@
<footer class="">
<div class="container ">
<span>&copy; 2013 - {{ now|date("Y") }} by chrosey</span>
<span>|</span>
<span>powered by <a href="http://picocms.org/">picoCMS</a></span>
<span>|
</span>
<span>
{% block footer %}
{% endblock %}
</span>
</div>
</footer>

View File

@ -1,15 +0,0 @@
<header clas="sticky container">
<div class="row">
<div class="col-md-offset-3">
<a href="{{ "index"|link }}"
class="logo">
<img src="{{ theme_url }}/img/logo.svg "
alt=""
height="32"
width="32" />
<span class="site-title">{{ site_title }}</span>
</a>
</div>
</div>
</header>

View File

@ -1,14 +0,0 @@
{% block navigation %}
<a class="nav-item"
href="{{ "index"|link }}">Startseite</a>
{% for page in pages("index") if not page.hidden %}
<a class="nav-item sublink-1"
href="{{ page.url }}">{{ page.title }}</a>
{% for subpage in pages(page.id) if not subpage.hidden and not subpage.meta.type == "news" %}
<a class="nav-item sublink-2"
href="{{ subpage.url }}">{{ subpage.title }}</a>
{% endfor %}
{% endfor %}
{% endblock %}

View File

@ -1,33 +0,0 @@
{% extends "templates/layout/base.twig" %}
{% block content %}
{{ parent() }}
{% if meta.embed %}
<iframe src="{{ meta.url }}"
frameborder="0"
style="width:100%; height:80vh;"></iframe>
{% endif %}
{% endblock %}
{% block aside %}
{% for image in images %}
{% if image.meta %}
<figure>
{% endif %}
<img class="rounded shadowed"
src="{{ image.url }}"
alt="{{ image.name }}"
{{ image.size }}>
{% if image.meta %}
<figcaption>{{ image.meta.title }} ({{ image.meta.year }})<br />{{ image.meta.description }}</figcaption>
</figure>
{% endif %}
{% endfor %}
{% endblock %}

View File

@ -1,11 +0,0 @@
<div class="card fluid">
<div class="section">
<h3>Letzte Blogeinträge</h3>
<ul>
{% for page in pages("blog", depth=3)|sort_by("time")|reverse|slice(0,5) if not page.hidden %}
<li>{{ page.title }}</li>
{% endfor %}
</ul>
</div>
</div>