Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rearrange landingpage #44

Merged
merged 5 commits into from
Oct 26, 2023
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ comments:
issue-term: # Issue term (e.g. "comment" consider issues with this word in the title as comments)

# PAGINATION
paginate: 5
paginate: 8
paginate_path: "/blog/page:num"

# PORTFOLIO
Expand Down
1 change: 1 addition & 0 deletions _data/language.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ str_no_result_found: "No result found"
str_cookie_approve: "Approve"
str_cookie_disclaimer: "We would like to use third party cookies and scripts to improve the functionality of this website."
str_months: [January, February, March, April, May, June, July, August, September, October, November, December]
str_more_blog_entries: "Mehr Blogeinträge..."

# Localization settings
cusdis_lang: # zh-cn, es, tr, pt-BR
41 changes: 41 additions & 0 deletions _includes/blog/small_blog.liquid
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<div class="posts">
{% unless site.posts %}
<article><section class="post-content"><p>There are no blog posts</p></section></article>
{% endunless %}
{% for post in site.posts limit:3 %}
<div class="post-teaser">
{% if post.thumbnail %}
<div class="post-img">
<a aria-label="{{ post.title }}" href="{{ post.url | relative_url }}">
<img alt="{{ post.title }}" src="{{ post.thumbnail | relative_url }}">
</a>
</div>
{% endif %}
<span>
<header>
<h2>
<a aria-label="{{ post.title }}" class="post-link" href="{{ post.url | relative_url }}">
{{ post.title }}
</a>
</h2>
{% include blog/post_info.liquid author=post.author date=post.date %}
</header>
{% if site.excerpt or site.theme_settings.excerpt %}
<div class="excerpt">
{% if site.excerpt == "truncate" %}
{{ post.content | strip_html | truncate: '250' | escape }}
{% else %}
{{ post.excerpt | strip_html | escape }}
{% endif %}
</div>
{% endif %}
</span>
</div>
{% endfor %}
<center>
<a aria-label="{{ site.data.language.str_more_blog_entries | default: 'More blog entries' }}" href="/blog"
{% unless site.posts %}style="visibility:hidden"{% endunless %} class="button">
{{ site.data.language.str_more_blog_entries | default: 'More blog entries' }}
</a>
</center>
</div>
9 changes: 9 additions & 0 deletions _layouts/full_blog.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
layout: default
---

<div class="home">
<div class="blog-links">
{% include blog/blog.liquid %}
</div>
</div>
16 changes: 13 additions & 3 deletions _layouts/home.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,20 @@ layout: default
}
{% endif %}
</style>
<div id="main" class="call-out call-out_img">
<div id="main" class="call-out call-out_img" style="padding: 2% 9%;">
<h1> {{ site.header_text | default: "Change <code>header_text</code> in <code>_config.yml</code>"}} </h1>
</div>
<article>
<div class="post-content">
<center><h2>Verein</h2></center>
<p>Netz39 ist der Hotspot für den Austausch von Technologie, Gesellschaft und Kultur im Bereich der informationsverarbeitenden Technologien. Wir bieten nicht nur Räumlichkeiten und Werkzeuge, sondern auch eine inspirierende Community in Magdeburg und Umgebung.</p>
<p>Bei uns ist alles möglich! Ob du an technischen oder künstlerischen Projekten arbeiten möchtest oder einfach nur dein Wissen erweitern willst – Netz39 ist der ideale Ort dafür. Wir unterstützen unsere Mitglieder und alle Interessierten dabei, ihre individuellen Ideen umzusetzen. Gleichzeitig bieten wir ein breites Spektrum an Weiterbildungsmöglichkeiten zu unseren Themen.</p>
<p>Also worauf wartest du? Starte jetzt dein Abenteuer bei Netz39!</p>
</div>
</article>

{% include blog/blog.liquid %}

<div class="blog-links">
<center><h2>Neuste Blogeinträge:</h2></center>
{% include blog/small_blog.liquid %}
</div>
</div>
6 changes: 6 additions & 0 deletions blog/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
layout: full_blog
title: Blog
---

<!-- this is needed for pagination plugin working correctly -->
6 changes: 6 additions & 0 deletions pages/03_blog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
layout: full_blog
title: Blog
permalink: /blog
pagination: true
---
13 changes: 0 additions & 13 deletions pages/03_verein.md

This file was deleted.