* Add: New Post: Update!

* Add: Changelog to README.md.
* Add: Social Media Links at Footer.
* Add: data.settings to manage settings.
* Fix: Linklog link did not work at blog overview.
* Fix: Pagination View - older was displayed on the left when no newer was there.
* Change: Header and Footer Navigation links work now with data yml files.
* Change: New Sort and some Content modification at Contact Page.
* Change: set sitemap false on 404 & 500 page.
* Change: new text on 404 & 500 page.
* Change: robots.txt now allow searchengines with settings.
* Change: some new meta tags
* Change: link style
* Change: remove Header Navigation
This commit is contained in:
Nico Jensen 2021-06-15 03:31:51 +02:00
parent 13f6b0af35
commit abdd659322
18 changed files with 176 additions and 54 deletions

View file

@ -2,13 +2,14 @@
layout: default layout: default
title: 404 - Page not found! title: 404 - Page not found!
permalink: /404.html permalink: /404.html
sitemap: false
--- ---
<article class="post"> <article class="post">
<header class="post-header wrapper"> <header class="post-header wrapper">
<h2 class="post-title">404 - Page not found!</h2> <h2 class="post-title">404</h2>
<h3>Irgendwas ist schiefgelaufen.</h3>
</header> </header>
<section class="post-content wrapper"> <section class="post-content wrapper">
<p>Looks like you've followed a broken link or entered a URL that doesn't exist on this site.</p> <p>Hier k&ouml;nnte jetzt ein kreativer Text stehen, tut es aber nicht.</p>
<p><a href="/">Back to my Site</a></p>
</section> </section>
</article> </article>

View file

@ -2,13 +2,14 @@
layout: default layout: default
title: 500 - Internal Server Error title: 500 - Internal Server Error
permalink: /500.html permalink: /500.html
sitemap: false
--- ---
<article class="post"> <article class="post">
<header class="post-header wrapper"> <header class="post-header wrapper">
<h2 class="post-title">500 - Internal Server Error</h2> <h2 class="post-title">500</h2>
<h3>Internal Server Error</h2>
</header> </header>
<section class="post-content wrapper"> <section class="post-content wrapper">
<p><a href="/">Back to my Site</a></p>
</section> </section>
</article> </article>

View file

@ -1,18 +1,30 @@
# www.nicojensen.de # www.nicojensen.de
Repo zu meiner Webseite basierend auf [Jekyll](https://jekyllrb.com/). Repo zu meiner Webseite
Diese Webseite basiert auf [Jekyll](https://jekyllrb.com/).
## Changelog
### 2021-06-15
* Add: New Post: Update!
* Add: Changelog to README.md.
* Add: Social Media Links at Footer.
* Add: data.settings to manage settings.
* Fix: Linklog link did not work at blog overview.
* Fix: Pagination View - older was displayed on the left when no newer was there.
* Change: Header and Footer Navigation links work now with data yml files.
* Change: New Sort and some Content modification at Contact Page.
* Change: set sitemap false on 404 & 500 page.
* Change: new text on 404 & 500 page.
* Change: robots.txt now allow searchengines with settings.
* Change: some new meta tags
* Change: link style
* Change: remove Header Navigation
## bundle ## bundle
### install ### install
bundle install bundle install
### update ### update
bundle update bundle update
## page ## page
## to compile ## to compile
bundle exec jekyll serve bundle exec jekyll serve
## to Develop ## to Develop
JEKYLL_ENV=production bundle exec jekyll build JEKYLL_ENV=production bundle exec jekyll build

15
_data/footer-links.yml Normal file
View file

@ -0,0 +1,15 @@
contact:
title: 'Kontakt'
href: '/kontakt'
colophon:
title: 'Colophon'
href: '/colophon'
imprint:
title: 'Impressum'
href: '/impressum'
privacy:
title: 'Datenschutz'
href: '/datenschutzerklaerung'
rss:
title: 'RSS'
href: '/rss.xml'

View file

@ -0,0 +1,6 @@
about:
title: '&Uumlber mich'
href: '/nico'
pictures:
title: 'Fotos'
href: '/fotos'

View file

@ -0,0 +1 @@
1

15
_data/social-media.yml Normal file
View file

@ -0,0 +1,15 @@
twitter:
id: '_nyansen'
href: 'https://www.twitter.com/'
link: 'Twitter'
title: 'Mein Twitter Account'
github:
id: 'nyansen'
href: 'https://github.com/'
link: 'GitHub'
title: 'Mein GitHub Account'
instagram:
id: 'nyansen'
href: 'https://instagram.com/'
link: 'Instagram'
title: 'Mein Instagram Account'

View file

@ -1,8 +1,8 @@
{% for post in paginator.posts %} {% for post in paginator.posts %}
<article class="post"> <article class="post">
<header class="post-header wrapper"> <header class="post-header wrapper">
<h2 class="post-title"><a href="{{ post.url }}" rel="bookmark">{{ post.title }}</a></h2> <h2 class="post-title"><a href="{{post.url}}" rel="bookmark">{{post.title}}</a></h2>
<p class="public-date">vom <time class="post-date" datetime="{{ post.date | date: "%Y-%m-%d"}}"> <p class="public-date">vom <time class="post-date" datetime="{{post.date | date: "%Y-%m-%d"}}">
{% assign m = post.date | date: "%-m" %} {% assign m = post.date | date: "%-m" %}
{{ post.date | date: "%d" }} {{ post.date | date: "%d" }}
{% case m %} {% case m %}
@ -19,14 +19,13 @@
{% when '11' %}November {% when '11' %}November
{% when '12' %}Dezember {% when '12' %}Dezember
{% endcase %} {% endcase %}
{{ post.date | date: "%Y" }} {{ post.date | date: "%Y" }}</time>
</time>
{% if post.external-url %} {% if post.external-url %}
&nbsp;|&nbsp;<a href="{{ page.external-url }}">Org. Post</a> &nbsp;|&nbsp;<a href="{{post.external-url}}">Org. Post</a>
{% endif %}</p> {% endif %}</p>
</header> </header>
<div class="post-content wrapper"> <div class="post-content wrapper">
{{ post.content }} {{post.content}}
</div> </div>
</article> </article>
{% endfor %} {% endfor %}

View file

@ -1,11 +1,31 @@
<footer class="site-footer clearfix"> <footer class="site-footer clearfix">
<div class="wrapper"> <div class="wrapper">
<p> {% if site.data.footer-links %}
<a href="/kontakt">Kontakt</a>&nbsp;|&nbsp; <div id="footerlinks">
<a href="/colophon">Colophon</a>&nbsp;|&nbsp; {% assign footerlinks = site.data.footer-links %}
<a href="/impressum">Impressum</a>&nbsp;|&nbsp; {% for footerlink in footerlinks %}
<a href="/datenschutzerklaerung">Datenschutz</a>&nbsp;|&nbsp; {% assign fkey = footerlink | first %}
<a href="/feed.xml">RSS</a></p> <a href="{{footerlinks[fkey].href}}" title="{{footerlinks[fkey].title}}">{{footerlinks[fkey].title}}</a>
<p>Handmade with <span class="entypo red"></span> in Hamburg<br>&copy; {{ 'now' | date: "%Y" }} Nico Jensen</p> {% if fkey != 'rss' %}
</div> &nbsp;|&nbsp;
{% endif %}
{% endfor %}
</div>
{% endif %}
{% if site.data.social-media %}
<div id="social-media">
{% assign sm = site.data.social-media %}
{% for entry in sm %}
{% assign key = entry | first %}
{% if sm[key].id %}
<a href="{{sm[key].href}}{{sm[key].id}}" title="{{sm[key].title}}" rel="nofollow">{{sm[key].link}}</a>
{% if key != 'instagram' %}
&nbsp;|&nbsp;
{% endif %}
{% endif %}
{% endfor %}
</div>
{% endif %}
<p>Handmade with <span class="entypo red"></span> in Hamburg<br>&copy; {{'now' | date: "%Y"}} Nico Jensen</p>
</div>
</footer> </footer>

View file

@ -29,16 +29,17 @@
<link rel="stylesheet" href="{{ "/assets/css/styles.css" | prepend: site.baseurl }}"> <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 }}"> <link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
<link rel="author" href="humans.txt" />
<meta property="og:title" content="{{ title }}"> <meta property="og:title" content="{{ title }}">
{% if description %}<meta property="og:description" content="{{ description }}">{% endif %} {% 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:url" content="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
<meta property="og:type" content="website"> <meta property="og:type" content="webseite">
<meta name="twitter:card" content="summary_large_image">
<meta name="og:site_name" content="Nico Jensen"> <meta name="twitter:card" content="summary">
<meta name="twitter:site" content="@_nyansen"> <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="home" type="application/rss+xml" href="/feed.xml" />
<link rel="shortcut icon" type="image/png" href="/assets/images/logo.png"/> <link rel="shortcut icon" type="image/png" href="/assets/images/logo.png"/>

View file

@ -1,6 +1,15 @@
<nav> {% if site.data.header-links %}
<div class="wrapper"> <nav>
<a href="/nico">Über mich</a> | <a href="https://social.elbmatsch.de/@nyansen">Mastodon</a> | <a href="https://twitter.com/_nyansen" rel="nofollow">Twitter</a> | <a href="https://instagram.com/nyansen/" rel="nofollow">Instagram</a> <div class="wrapper">
<div id="navView" class="blank"></div> {% assign headerlinks = site.data.header-links %}
</div> {% for headerlink in headerlinks %}
</nav> {% assign hkey = headerlink | first %}
<a href="{{headerlinks[hkey].href}}" title="{{headerlinks[hkey].title}}">{{headerlinks[hkey].title}}</a>
{% if hkey != 'pictures' %}
&nbsp;|&nbsp;
{% endif %}
{% endfor %}
<div id="navView" class="blank"></div>
</div>
</nav>
{% endif %}

View file

@ -1,11 +1,13 @@
<!-- Pagination links --> <!-- Pagination links -->
<div class="pagination wrapper"> <div class="pagination wrapper">
<div class="pagination-inner"> <div class="pagination-inner">
{% if paginator.next_page %}
<a href="{{ paginator.next_page_path }}" class="next">&Auml;lter</a>
{% else %}
<span class="previous">&nbsp;</span>
{% endif %}
{% if paginator.previous_page %} {% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path }}" class="previous">Neuer</a> <a href="{{ paginator.previous_page_path }}" class="previous">Neuer</a>
{% endif %} {% endif %}
{% if paginator.next_page %}
<a href="{{ paginator.next_page_path }}" class="next">&Auml;lter</a>
{% endif %}
</div> </div>
</div> </div>

View file

@ -37,4 +37,3 @@ layout: default
{{ content }} {{ content }}
</div> </div>
</article> </article>
{% include post_pagination.html %}

View file

@ -0,0 +1,11 @@
---
title: Update!
layout: post
---
Moin!
Habe hier schon lange nix mehr gemacht oder geschrieben. Daher habe ich mein Urlaub mal genutzt und habe die Seite was modifiziert. Unter anderem habe ich ein paar Bugs im Design gefixt, die Navigation &uuml;berarbeitet und die Kontaktseite &uuml;berarbeitet.
Nicht, dass ich glaube, dass das hier jemand liest oder merkt &#128540;
Ich &uuml;berlege auch gerade, ob ich nicht wieder ein Flickr Account mache. Ich wollte hier zwar was eigenes machen, aber irgendwie habe ich dazu nicht so die Motivation zudem war ich da eigentlich immer recht zufrieden und weiß gar nicht mehr, warum ich da weg bin.

View file

@ -13,11 +13,13 @@ a {
color: #4A4A4A; color: #4A4A4A;
text-decoration: none; text-decoration: none;
background: linear-gradient(to bottom,transparent 0,transparent 85%,#FFC0CB 60%,#FFC0CB 100%); background: linear-gradient(to bottom,transparent 0,transparent 85%,#FFC0CB 60%,#FFC0CB 100%);
transition: all 0.15s linear;
} }
a:hover { a:hover {
color: #fff; //color: #fff;
background-color: #FFC0CB; //background-color: #FFC0CB;
background: none;
} }
header.header { header.header {
@ -112,12 +114,12 @@ article.post header.post-header p.public-date {
font-size: 0.8em; font-size: 0.8em;
} }
footer.site-footer div, article .post-header, .pagination { footer.site-footer div.wrapper, article .post-header, .pagination {
padding-top: 3.6rem; padding-top: 3.6rem;
border-top: #EBF2F6 1px solid; border-top: #EBF2F6 1px solid;
} }
footer.site-footer div:before, article.post header.post-header:before, .pagination:before { footer.site-footer div.wrapper:before, article.post header.post-header:before, .pagination:before {
display: block; display: block;
content: ""; content: "";
width: 7px; width: 7px;
@ -139,3 +141,9 @@ footer.site-footer {
line-height: 1.75em; line-height: 1.75em;
text-align: center; text-align: center;
} }
#contact ul {
list-style-type: none;
padding: 0;
margin: 0;
}

14
fotos.html Normal file
View file

@ -0,0 +1,14 @@
---
layout: default
title: Fotos
sitemap: false
---
<article class="post">
<header class="post-header wrapper">
<h2 class="post-title">Fotos</h2>
</header>
<div class="post-content wrapper">
<p>Moin,</p>
<p>hier kommt bald Inhalt oder ein verweis auf eine richtige Seite.</p>
</div>
</article>

View file

@ -2,7 +2,7 @@
layout: default layout: default
title: Kontakt title: Kontakt
--- ---
<article class="post"> <article class="post" id="contact">
<header class="post-header wrapper"> <header class="post-header wrapper">
<h2 class="post-title">Kontakt</h2> <h2 class="post-title">Kontakt</h2>
</header> </header>
@ -12,13 +12,13 @@ title: Kontakt
<p>moin@nicojensen.de<br> <p>moin@nicojensen.de<br>
PGP-Key: 04EE0F98<br> PGP-Key: 04EE0F98<br>
Fingerprint: 0FEC E173 375E 3DD2 5386 B023 923C 288E 04EE 0F98</p> Fingerprint: 0FEC E173 375E 3DD2 5386 B023 923C 288E 04EE 0F98</p>
<ul>
<p> <li><a href="https://wikipedia.org/wiki/Twitter" title="Wikipedia Artikel zu Twitter" rel="nofollow">Twitter</a>: <a href="https://www.twitter.com/_nyansen" title="Mein Twitter Account." rel="nofollow">@_nyansen</a></li>
<del><a href="https://de.wikipedia.org/wiki/Extensible_Messaging_and_Presence_Protocol" title="Wikipedia Artikel zu Jabber." rel="nofollow">Jabber</a>: nyansen@jabber.elbmatsch.de</del><br> <li><a href="https://wikipedia.org/wiki/Discord_(Software)" title="Wikipedia Artikel zu Discord" rel="nofollow">Discord</a>: <a href="https://discord.gg/YEjeHMZHeu" title="Discord Einladungslink" rel="nofollow">nyancord</a></li>
<a href="https://en.wikipedia.org/wiki/Matrix_(protocol)" title="Wikipedia Artikel zu Jabber." rel="nofollow">Matrix</a>: nyansen@matrix.elbmatsch.de<br> <li><del><a href="https://wikipedia.org/wiki/Extensible_Messaging_and_Presence_Protocol" title="Wikipedia Artikel zu Jabber." rel="nofollow">Jabber</a>: nyansen@jabber.elbmatsch.de</del></li>
Twitter: <a href="https://www.twitter.com/_nyansen" title="Mein Twitter Account." rel="nofollow">@_nyansen</a><br> <li><del><a href="https://wikipedia.org/wiki/Matrix_(protocol)" title="Wikipedia Artikel zu Jabber." rel="nofollow">Matrix</a>: nyansen@matrix.elbmatsch.de<br></del></li>
<a href="https://de.wikipedia.org/wiki/Mastodon_(Software)" title="Wikipedia Artikel zu Mastodon" rel="nofollow">Mastodon</a>: <a href="https://social.elbmatsch.de/@nyansen">@nyansen@social.elbmatsch.de</a> <li><del><a href="https://wikipedia.org/wiki/Mastodon_(Software)" title="Wikipedia Artikel zu Mastodon" rel="nofollow">Mastodon</a>: <a href="https://social.elbmatsch.de/@nyansen">@nyansen@social.elbmatsch.de</a></del></li>
</p> </ul>
</blockquote> </blockquote>
</div> </div>
</article> </article>

View file

@ -1,3 +1,11 @@
---
layout: null
---
User-agent: *
{% if site.data.settings.allow-searchengine %}Disallow:
{% else %}Disallow: /
{% endif %}
User-agent: Uptimebot User-agent: Uptimebot
Disallow: / Disallow: /