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
Commits
8a802a32
Commit
8a802a32
authored
11 months ago
by
codecraft
Browse files
Options
Downloads
Patches
Plain Diff
introduce overlapping author images
parent
e78fdc42
No related branches found
Branches containing commit
No related tags found
1 merge request
!45
Author cards
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
templates/blog/author_media.html
+10
-8
10 additions, 8 deletions
templates/blog/author_media.html
templates/blog/card.html
+1
-1
1 addition, 1 deletion
templates/blog/card.html
with
11 additions
and
9 deletions
templates/blog/author_media.html
+
10
−
8
View file @
8a802a32
<div
class=
"columns"
>
<div
class=
"column"
>
{% set authors_data = load_data(path="authors.json") -%}
{% set authors_data = load_data(path="authors.json") -%}
{% for author in post.authors -%}
{% for author in post.authors -%}
<div
class=
"media"
>
<figure
class=
"image is-48x48 is-inline-block"
style=
"margin-right: -30px;"
>
<div
class=
"media-left"
>
<figure
class=
"image is-48x48"
>
{% set meta = get_image_metadata(path="authors/" ~ author ~ ".jpg", allow_missing=true) -%}
{% set meta = get_image_metadata(path="authors/" ~ author ~ ".jpg", allow_missing=true) -%}
{% if meta -%}
{% if meta -%}
{% set image = resize_image(path="authors/" ~ author ~ ".jpg", width=48, height=48) -%}
{% set image = resize_image(path="authors/" ~ author ~ ".jpg", width=48, height=48) -%}
...
@@ -14,11 +14,13 @@
...
@@ -14,11 +14,13 @@
</span>
</span>
{% endif -%}
{% endif -%}
</figure>
</figure>
{% endfor %}
</div>
</div>
<div
class=
"media-content"
>
<ul
class=
"column is-three-fifths"
>
<p
class=
"title is-4"
>
{% for author in post.authors -%}
<li
class=
"title is-5 is-inline mr-3"
>
{{ authors_data[author].display_name }}
{{ authors_data[author].display_name }}
</p>
</li>
</div>
</div>
{% endfor %}
{% endfor %}
</ul>
</div>
This diff is collapsed.
Click to expand it.
templates/blog/card.html
+
1
−
1
View file @
8a802a32
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
</div>
</div>
<div
class=
"card-footer"
>
<div
class=
"card-footer"
>
<div
class=
"card-footer-item"
>
<div
class=
"card-footer-item"
>
<div
class=
""
>
<div
class=
"
is-fullwidth
"
>
{% include "blog/author_media.html" -%}
{% include "blog/author_media.html" -%}
</div>
</div>
</div>
</div>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment