New Index, move blog to underpage
This commit is contained in:
parent
5d2692316c
commit
47e41741f1
7 changed files with 48 additions and 112 deletions
|
@ -46,12 +46,13 @@ compress_html:
|
||||||
|
|
||||||
defaults:
|
defaults:
|
||||||
- scope:
|
- scope:
|
||||||
type: "posts"
|
path: "" # An empty string here means all files in the project
|
||||||
|
type: posts
|
||||||
values:
|
values:
|
||||||
layout: "default"
|
layout: post
|
||||||
|
|
||||||
paginate: 5
|
paginate: 5
|
||||||
paginate_path: "/page/:num/"
|
paginate_path: "/blog/page/:num/"
|
||||||
permalink: /:year/:month/:day/:title/
|
permalink: /:year/:month/:day/:title/
|
||||||
|
|
||||||
mastodon:
|
mastodon:
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
blog:
|
||||||
|
title: "Blog"
|
||||||
|
href: "/blog"
|
||||||
colophon:
|
colophon:
|
||||||
title: "Colophon"
|
title: "Colophon"
|
||||||
href: "/colophon"
|
href: "/colophon"
|
||||||
|
|
|
@ -1,54 +0,0 @@
|
||||||
<div id="post-container">
|
|
||||||
{% for post in paginator.posts %}
|
|
||||||
<article class="post">
|
|
||||||
<header class="post-header wrapper">
|
|
||||||
<div class="post-title">
|
|
||||||
<h2 class="post-title">
|
|
||||||
{% if post.external-url %}
|
|
||||||
<a href="{{post.external-url}}">{{post.title}}</a>
|
|
||||||
{% else %}
|
|
||||||
<a href="{{post.url}}" rel="bookmark">{{post.title}}</a>
|
|
||||||
{% endif %}
|
|
||||||
</h2>
|
|
||||||
<p class="public-date">vom <time class="post-date" datetime="{{post.date | date: "%Y-%m-%d"}}">
|
|
||||||
{% assign m = post.date | date: "%-m" %}
|
|
||||||
{{ post.date | date: "%d" }}
|
|
||||||
{% case m %}
|
|
||||||
{% when '1' %}Januar
|
|
||||||
{% when '2' %}Februar
|
|
||||||
{% when '3' %}März
|
|
||||||
{% when '4' %}April
|
|
||||||
{% when '5' %}Mai
|
|
||||||
{% when '6' %}Juni
|
|
||||||
{% when '7' %}Juli
|
|
||||||
{% when '8' %}August
|
|
||||||
{% when '9' %}September
|
|
||||||
{% when '10' %}Oktober
|
|
||||||
{% when '11' %}November
|
|
||||||
{% when '12' %}Dezember
|
|
||||||
{% endcase %}
|
|
||||||
{{ post.date | date: "%Y" }}</time>
|
|
||||||
{% if post.external-url %}
|
|
||||||
| <a href="{{post.url}}">Post Link</a>
|
|
||||||
{% endif %}
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</header>
|
|
||||||
<div class="post-content wrapper">
|
|
||||||
{{post.content}}
|
|
||||||
</div>
|
|
||||||
{% if post.layout == 'review' %}
|
|
||||||
<div class="reviewRating wrapper">
|
|
||||||
{% for counter in (1..5) %}
|
|
||||||
{% if counter <= post.rating %}
|
|
||||||
<span class="ratingSet">★</span>
|
|
||||||
{% else %}
|
|
||||||
<span class="ratingUnset">★</span>
|
|
||||||
{% endif %}
|
|
||||||
{% endfor %}
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
|
||||||
</article>
|
|
||||||
{% endfor %}
|
|
||||||
</div>
|
|
||||||
{% include pagination.html %}
|
|
|
@ -13,7 +13,7 @@
|
||||||
{% assign sm = site.data.social-media %} {% for entry in sm%} {% assign
|
{% assign sm = site.data.social-media %} {% for entry in sm%} {% assign
|
||||||
key = entry | first %} {% if sm[key].footer %} {% if sm[key].id %}
|
key = entry | first %} {% if sm[key].footer %} {% if sm[key].id %}
|
||||||
<a
|
<a
|
||||||
href="{{sm[key].href}}{{sm[key].id}}"
|
href="{{sm[key].href}}"
|
||||||
title="{{sm[key].title}}"
|
title="{{sm[key].title}}"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener {{sm[key].rel}}"
|
rel="noopener {{sm[key].rel}}"
|
||||||
|
|
|
@ -1,47 +0,0 @@
|
||||||
{% capture title %}
|
|
||||||
{% if page.title and page.title != "Home" %}
|
|
||||||
{{ page.title }} · {{ site.title }}
|
|
||||||
{% else %}
|
|
||||||
{{ site.title }}
|
|
||||||
{% endif %}
|
|
||||||
{% endcapture %}
|
|
||||||
|
|
||||||
{% capture description %}
|
|
||||||
{% if page.date %}
|
|
||||||
{{ page.date | date: "%d.%m.%Y" }}
|
|
||||||
{% endif %}
|
|
||||||
{% if page.location %}
|
|
||||||
/ {{ page.location }}
|
|
||||||
{% endif %}
|
|
||||||
{% endcapture %}
|
|
||||||
{% if description == "" %}
|
|
||||||
{% assign description = site.description %}
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
||||||
<meta name="referrer" content="no-referrer">
|
|
||||||
|
|
||||||
<title>{{ title }}</title>
|
|
||||||
<meta name="description" content="{{ description }}">
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="{{ "/assets/css/styles.css" | prepend: site.baseurl }}">
|
|
||||||
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
|
|
||||||
|
|
||||||
<meta property="og:title" content="{{ title }}">
|
|
||||||
{% if description %}<meta property="og:description" content="{{ description }}">{% endif %}
|
|
||||||
<meta property="og:url" content="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
|
|
||||||
<meta property="og:type" content="webseite">
|
|
||||||
|
|
||||||
<meta name="twitter:card" content="summary">
|
|
||||||
<meta name="twitter:site" content="@_nyansen">
|
|
||||||
<meta name="twitter:domain" content="nicojensen.de">
|
|
||||||
<meta name="twitter:creator" content="@_mnyansen">
|
|
||||||
<meta name="twitter:title" content="{{title}}">
|
|
||||||
<meta name="twitter:card" content="summary_large_image">
|
|
||||||
|
|
||||||
<link rel="home" type="application/rss+xml" href="/feed.xml" />
|
|
||||||
<link rel="shortcut icon" type="image/png" href="/assets/images/logo.png"/>
|
|
||||||
</head>
|
|
|
@ -4,11 +4,9 @@ layout: compress
|
||||||
|
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="de" class="no-js page-home">
|
<html lang="de" class="no-js page-home">
|
||||||
{% include head.html %}
|
{% include htmlheader.html %}
|
||||||
<body>
|
<body>
|
||||||
{% include header.html %}
|
{% include header.html %} {% include navigation.html %} {{content}} {%
|
||||||
{% include navigation.html %}
|
include footer.html %}
|
||||||
{{content}}
|
|
||||||
{% include footer.html %}
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
37
index.html
37
index.html
|
@ -3,4 +3,39 @@ layout: default
|
||||||
title: Home
|
title: Home
|
||||||
---
|
---
|
||||||
|
|
||||||
<main id="posts">{% include blog.html %}</main>
|
<main id="main">
|
||||||
|
<div class="content">
|
||||||
|
<div class="wrapper">
|
||||||
|
<h2>Moin ⚓</h2>
|
||||||
|
<p>
|
||||||
|
Minions ipsum dolore reprehenderit chasy. Tempor bappleees butt
|
||||||
|
incididunt adipisicing aute adipisicing. Ullamco butt po kass daa. Ti
|
||||||
|
aamoo! sit amet belloo! Quis baboiii me want bananaaa! Bananaaaa daa.
|
||||||
|
Poopayee velit dolore hahaha ullamco tatata bala tu cillum potatoooo
|
||||||
|
pepete dolore poulet tikka masala. Aute underweaaar hana dul sae
|
||||||
|
gelatooo. Hahaha para tú me want bananaaa! Hahaha baboiii underweaaar ut
|
||||||
|
bee do bee do bee do pepete tatata bala tu uuuhhh. Et laboris ullamco
|
||||||
|
elit irure bappleees wiiiii incididunt. Ut para tú elit qui.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Magna sit amet bee do bee do bee do tulaliloo la bodaaa consequat
|
||||||
|
baboiii sit amet exercitation consequat. Elit irure poulet tikka masala
|
||||||
|
aaaaaah butt underweaaar dolore hana dul sae poopayee officia. Me want
|
||||||
|
bananaaa! consequat poulet tikka masala hana dul sae qui officia dolore
|
||||||
|
la bodaaa. La bodaaa nostrud sit amet elit et hahaha. Tatata bala tu
|
||||||
|
potatoooo belloo! Adipisicing laboris magna nisi. Potatoooo nisi
|
||||||
|
incididunt elit magna. Qui eiusmod tatata bala tu belloo! Aute potatoooo
|
||||||
|
quis la bodaaa baboiii tatata bala tu qui.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Ullamco cillum nostrud exercitation qui nisi consectetur. Sed nisi para
|
||||||
|
tú la bodaaa. Commodo bappleees duis potatoooo enim tank yuuu! Jiji
|
||||||
|
potatoooo gelatooo pepete. Veniam veniam exercitation incididunt.
|
||||||
|
Bappleees jeje esse la bodaaa irure sit amet. Consectetur bappleees butt
|
||||||
|
aute consectetur.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
|
Loading…
Add table
Reference in a new issue