Skip to content
Snippets Groups Projects
Commit dd48671c authored by Lukas Ruge's avatar Lukas Ruge
Browse files

more stuff with images

parent 70b53835
No related branches found
No related tags found
No related merge requests found
Pipeline #7000 passed
...@@ -5,8 +5,12 @@ ...@@ -5,8 +5,12 @@
{% for project in sorted_projects reversed %} {% for project in sorted_projects reversed %}
<div class="box"> <div class="box">
<p> <p>
{% if project.image != "/assets/default-social-image.png" %} {% if project.image contains '://' %}
<img src="{{ site.baseurl }}/images/thumbnails/{{ project.image }}" alt=""> <img src="{{project.image}}" alt="">
{% else %}
{% if project.image != "/assets/default-social-image.png" %}
<img src="{{ site.baseurl }}/images/thumbnails/{{ project.image }}" alt="">
{% endif %}
{% endif %} {% endif %}
<h2><a href="{{ site.baseurl }}{{ project.url }}">{{ project.title }}</a></h2> <h2><a href="{{ site.baseurl }}{{ project.url }}">{{ project.title }}</a></h2>
{{ project.short | markdownify | truncatewords: 20 }} {{ project.short | markdownify | truncatewords: 20 }}
......
...@@ -8,8 +8,12 @@ ...@@ -8,8 +8,12 @@
{% assign i = i | plus:1 %} {% assign i = i | plus:1 %}
<div class="pin"> <div class="pin">
<p> <p>
{% if project.image != "/assets/default-social-image.png" %} {% if project.image contains '://' %}
<img src="{{ site.baseurl }}/images/thumbnails/{{ project.image }}" alt=""> <img src="{{project.image}}" alt="">
{% else %}
{% if project.image != "/assets/default-social-image.png" %}
<img src="{{ site.baseurl }}/images/thumbnails/{{ project.image }}" alt="">
{% endif %}
{% endif %} {% endif %}
<h2><a href="{{ site.baseurl }}{{ project.url }}">{{ project.title }}</a></h2> <h2><a href="{{ site.baseurl }}{{ project.url }}">{{ project.title }}</a></h2>
{{ project.short | markdownify | truncatewords: 20 }} {{ project.short | markdownify | truncatewords: 20 }}
......
...@@ -33,9 +33,13 @@ ...@@ -33,9 +33,13 @@
{% endfor %} {% endfor %}
</ul> </ul>
{% if page.image %} {% if page.image %}
<div class=projectthumbnail style="background-image: url({{site.baseurl}}/images/thumbnails/{{page.image}}); height: 200px; width: 200px; margin-right: auto; margin-left: auto; margin-top: 10px;"> {% if page.image contains '://' %}
<div class=projectthumbnail style="background-image: url({{page.image}}); height: 200px; width: 200px; margin-right: auto; margin-left: auto; margin-top: 10px;">
{% else %}
<div class=projectthumbnail style="background-image: url({{site.baseurl}}/images/thumbnails/{{page.image}}); height: 200px; width: 200px; margin-right: auto; margin-left: auto; margin-top: 10px;">
</div> </div>
{% endif %} {% endif %}
{% endif %}
<h3>Artikel</h3> <h3>Artikel</h3>
{% for post in site.posts %} {% for post in site.posts %}
{% if post.categories contains 'blog' %} {% if post.categories contains 'blog' %}
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
layout: project layout: project
name: "Nachtlicht" name: "Nachtlicht"
date: 2020-01-30 00:00:00 +0200 date: 2020-01-30 00:00:00 +0200
image: nachtlicht.jpg image: https://chaotikum.org/images/thumbnails/nachtlicht.jpg
tag: nachtlicht tag: nachtlicht
contact: contact:
- "Leo" - "Leo"
......
...@@ -3,7 +3,7 @@ layout: verein ...@@ -3,7 +3,7 @@ layout: verein
title: Geräte ausleihen title: Geräte ausleihen
permalink: /verein/ausleihen/ permalink: /verein/ausleihen/
aside: true aside: true
feature_image: "https://wiki.chaotikum.org/_media/hackerspace:nbsp:ima_9982022.jpeg" image: "https://wiki.chaotikum.org/_media/hackerspace:nbsp:ima_9982022.jpeg"
--- ---
Inhalt folgt bald. Inhalt folgt bald.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment