-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
140 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
+++ | ||
title = "Images From Space" | ||
weight = 10 | ||
sort_by = "weight" | ||
redirect_to = "/en/images/ifs/all/" | ||
template = "ifs/ifs-year.html" | ||
description = "List of all Images From Space grouped by year" | ||
+++ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
+++ | ||
title = "Images From Space" | ||
weight = 10 | ||
sort_by = "weight" | ||
redirect_to = "/images/ifs/all/" | ||
template = "ifs/ifs-year.html" | ||
description = "Liste aller Images From Space nach Jahr gruppiert" | ||
+++ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
+++ | ||
title = "All Images From Space" | ||
sort_by = "weight" | ||
weight = 10 | ||
template = "ifs/ifs-all.html" | ||
paginate_by = 50 | ||
paginate_by = 100 | ||
description = "List of all Images From Space" | ||
+++ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
+++ | ||
title = "All Images From Space" | ||
sort_by = "weight" | ||
weight = 10 | ||
template = "ifs/ifs-all.html" | ||
paginate_by = 50 | ||
paginate_by = 100 | ||
description = "Liste aller Images From Space" | ||
+++ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
{% extends "base.html" %} | ||
{% import "macros.html" as macros %} | ||
|
||
|
||
{% block extra_meta %} | ||
<meta property="og:type" content="article" /> | ||
|
||
{% set all_section = get_section(path="images/ifs/all/_index.md") %} | ||
|
||
{% set latest_page = all_section.pages | first %} | ||
{% set latest_page_data = get_page(path=latest_page.relative_path) %} | ||
|
||
{{ | ||
macros::sd_article( | ||
title=section.title, | ||
image_url=config.extra.resource_base ~ "/media/img/mainframe-logo.svg", | ||
created="2012-01-01T23:42", | ||
updated=latest_page_data.date, | ||
author=config.author, | ||
description=section.description | ||
) | ||
}} | ||
|
||
{{ | ||
macros::og_article( | ||
author=config.author, | ||
section="Images From Space", | ||
created="2012-01-01T23:42", | ||
updated=latest_page_data.date | ||
) | ||
}} | ||
|
||
{% endblock extra_meta %} | ||
|
||
{% block content %} | ||
{% set all_section = get_section(path="images/ifs/all/_index.md") %} | ||
|
||
{% for subsection in all_section.subsections | reverse %} | ||
{% set subsection_data = get_section(path=subsection) %} | ||
{% set latest_page = subsection_data.pages | first %} | ||
|
||
<div class="d-flex"> | ||
<a class="shadow m-2" href="{{subsection_data.path}}"> | ||
<h5> | ||
{{ subsection_data.title }} | ||
</h5> | ||
<img alt="{{ latest_page.title }}" | ||
class="w-100 img-thumbnail" | ||
style="max-height: 250px;" | ||
loading="lazy" | ||
decoding="async" | ||
src="{{ config.extra.ifs_base_path }}/.thumbs/750-{{ latest_page.extra.filename }}" | ||
/> | ||
</a> | ||
</div> | ||
|
||
|
||
{% endfor %} | ||
|
||
{% endblock content %} |