Skip to content

Commit

Permalink
Merge pull request #44 from netz39/rearrange-landingpage
Browse files Browse the repository at this point in the history
Rearrange landingpage
  • Loading branch information
MG-5 authored Oct 26, 2023
2 parents 4667456 + ecd6328 commit 130a255
Show file tree
Hide file tree
Showing 8 changed files with 77 additions and 17 deletions.
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: [Januar, Februar, März, April, Mai, Juni, Juli, August, September, Oktober, November, Dezember]
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.

0 comments on commit 130a255

Please sign in to comment.