-
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.
Signed-off-by: Henrik Gerdes <henrik.gerdes@ares-consulting.de>
- Loading branch information
Showing
11 changed files
with
182 additions
and
23 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
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,48 @@ | ||
.tag-card { | ||
max-width: $lg; | ||
padding-top: 0 !important; | ||
padding-bottom: 0 !important; | ||
background-color: $grey-light !important; | ||
|
||
a, | ||
img { | ||
max-width: 250px; | ||
margin-left: auto; | ||
margin-right: auto; | ||
} | ||
|
||
a { | ||
text-decoration: none; | ||
|
||
} | ||
|
||
h1, | ||
h2 { | ||
padding: 0; | ||
} | ||
} | ||
|
||
|
||
@media (max-width: $lg) { | ||
|
||
.tag-card { | ||
margin-right: 2rem !important; | ||
margin-left: 2rem !important; | ||
padding-top: 2rem !important; | ||
padding-bottom: 2rem !important; | ||
padding-left: 1rem !important; | ||
padding-right: 1rem !important; | ||
|
||
h1, | ||
h2 { | ||
font-size: larger; | ||
} | ||
|
||
img { | ||
width: 150px; | ||
margin-left: auto; | ||
margin-right: auto; | ||
} | ||
} | ||
|
||
} |
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
Empty file.
Empty file.
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,29 @@ | ||
{% extends "base.html" %} | ||
|
||
{% import "macros/shared.html" as shared %} | ||
{% import "macros/navbar.html" as nav %} | ||
{% import "macros/footer.html" as foot %} | ||
|
||
|
||
{% block body %} | ||
|
||
<body> | ||
{{ nav::navbar() }} | ||
|
||
{% block content %} | ||
<div class="flex items-center flex-col mt-10 px-4"> | ||
<h1 class="text-2xl text-bold"> | ||
Tags | ||
</h1> | ||
<p class="text-bold text-xl mt-4">{{ terms | length }} tags</p> | ||
<div class="flex flex-wrap sm:flex-row flex-col sm:gap-x-7 gap-y-5 mt-6"> | ||
{% for tag in terms %} | ||
<a href="{{ tag.permalink | safe }}" class="flex items-center space-x-2"> | ||
<span class="text-bold">{{tag.name}} <sup>{{ tag.pages | length }}</sup></span> | ||
</a> | ||
{% endfor %} | ||
</div> | ||
{% endblock content %} | ||
{{ foot::footer() }} | ||
</body> | ||
{% endblock body %} |
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,76 @@ | ||
{% extends "base.html" %} | ||
|
||
{% import "macros/shared.html" as shared %} | ||
{% import "macros/navbar.html" as nav %} | ||
{% import "macros/footer.html" as foot %} | ||
|
||
|
||
{% block body %} | ||
|
||
<body> | ||
{{ nav::navbar() }} | ||
|
||
{% block content %} | ||
<div class="container"> | ||
<h1 class="text-center"> | ||
Tag : {{ term.name }} | ||
</h1> | ||
<div class=" flex-col"> | ||
{% set pages = term.pages %} | ||
|
||
{% for page in pages %} | ||
<div class="card border border-4 border-gray-200 p-5 my-4 mx-auto tag-card text-dark bg-light"> | ||
<div class="row"> | ||
<div class="col-md-4 d-flex align-items-center "> | ||
<a href="{{ page.permalink }}"> | ||
<img src='{{ get_url(path=page.extra.pic | default(value="/img/image-not-found-fallback-2.jpeg") | safe) }}' | ||
class="img-fluid rounded-start" alt="..."> | ||
</a> | ||
</div> | ||
<div class="col-md-8"> | ||
<div class="card-body"> | ||
<h2><a href='{{ page.permalink }}'>{{ page.title }}</a></h2> | ||
<p>{{ page.description }}</p> | ||
<!-- Read time and word count --> | ||
<div class="post-info"> | ||
<p style="text-align: right;"> | ||
<i class="fas fa-pen"></i> {% if page.date %}Published: {{ page.date | | ||
date(format='%B %d, %Y') | ||
}} {%endif %}<br> | ||
<i class="fab fa-readme"></i> {{ page.reading_time }} minute read | ||
</p> | ||
</div> | ||
|
||
|
||
<div> | ||
<a href="{{ page.permalink }}" class="btn btn-primary">Read More</a> | ||
</div> | ||
|
||
<!-- Categories and Tags --> | ||
<div> | ||
{% if page.taxonomies.tags %} | ||
<p> | ||
Tags: | ||
{% for tag in page.taxonomies.tags %} | ||
<a href="{{ get_taxonomy_url(kind='tags', name=tag)}}"> | ||
<button type="button" class="btn rounded-pill btn-sm my-1 btn-primary"> | ||
{{ tag }} <span class="badge text-bg-secondary"></span> | ||
</button> | ||
</a> | ||
{% endfor %} | ||
</p> | ||
{% endif %} | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
{% endfor %} | ||
</div> | ||
</div> | ||
|
||
{% endblock content %} | ||
{{ foot::footer() }} | ||
</body> | ||
|
||
{% endblock body %} |