Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
teckids.org
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Operate
Environments
Monitor
Incidents
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Teckids
Team PR
teckids.org
Merge requests
!38
Add blog post
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add blog post
add-clt-2024-blog-post
into
master
Overview
0
Commits
11
Pipelines
0
Changes
5
Merged
Tuxilio
requested to merge
add-clt-2024-blog-post
into
master
1 year ago
Overview
0
Commits
11
Pipelines
0
Changes
5
Expand
0
0
Merge request reports
Viewing commit
14a5c599
Prev
Next
Show latest version
5 files
+
39
−
19
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
5
Search (e.g. *.vue) (Ctrl+P)
Unverified
14a5c599
Allow multiple authors
· 14a5c599
Nik | Klampfradler
authored
1 year ago
templates/blog/author_media.html
0 → 100644
+
24
−
0
Options
{% set authors_data = load_data(path="authors.json") -%}
{% for author in post.authors -%}
<div
class=
"media"
>
<div
class=
"media-left"
>
<figure
class=
"image is-48x48"
>
{% set meta = get_image_metadata(path="authors/" ~ author ~ ".jpg", allow_missing=true) -%}
{% if meta -%}
{% set image = resize_image(path="authors/" ~ author ~ ".jpg", width=48, height=48) -%}
<img
class=
"is-rounded"
src=
"{{ image.url }}"
alt=
"Benutzerbild von {{ authors_data[post.authors.0].display_name }}"
/>
{% else -%}
<span
class=
"fa-stack fa-lg"
>
<i
class=
"fa-solid fa-circle fa-stack-2x"
></i>
<i
class=
"fa-solid fa-{{ author | truncate(length=1, end="
")
|
lower
()
}}
fa-stack-1x
fa-inverse
"
></i>
</span>
{% endif -%}
</figure>
</div>
<div
class=
"media-content"
>
<p
class=
"title is-4"
>
{{ authors_data[author].display_name }}
</p>
</div>
</div>
{% endfor %}
Loading