Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
hifis.net
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
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
HIFIS
Overall
hifis.net
Merge requests
!47
Redesign post cards on frontpage
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Redesign post cards on frontpage
redesign-news-card
into
master
Overview
16
Commits
2
Pipelines
0
Changes
6
Merged
Huste, Tobias
requested to merge
redesign-news-card
into
master
4 years ago
Overview
16
Commits
2
Pipelines
0
Changes
6
Expand
Use default font instead of Hermann
Reduce size by removing the image and some metainformation
Relates to
#47 (closed)
and
!46 (closed)
0
0
Merge request reports
Compare
master
version 1
c88467b2
4 years ago
master (base)
and
latest version
latest version
ed227da2
2 commits,
4 years ago
version 1
c88467b2
1 commit,
4 years ago
6 files
+
114
−
64
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
6
Search (e.g. *.vue) (Ctrl+P)
_includes/cards/post_card.html
0 → 100644
+
35
−
0
Options
{%- comment -%}
This is a card displaying post title and date.
Parameters:
post: The post which sould be displayed on the card
{%- endcomment -%}
{%- if include.post.title_image == "default" %}
{%- assign img_url = site.directory.images
| append: 'HIFIS_LOGO_news_cards_equal.svg'
| strip
| relative_url -%}
{%- else -%}
{%- assign img_url = site.directory.large_images
| append: "phone/"
| append: include.post.title_image
| strip
| relative_url -%}
{%- endif -%}
<div
class=
"card image-card bg-primary"
>
<img
src=
"{{ img_url }}"
class=
"card-img"
alt=
"Title image for {{ post.title }}"
>
<div
class=
"card-img-overlay"
>
<div
class=
"card-title"
>
<span
class=
"badge badge-secondary"
>
<i
class=
"fas fa-calendar-day"
aria-hidden=
"true"
></i>
{{ include.post.data | date: "%d.
 
%b.
 
%y" }}
</span>
</div>
<div
class=
"card-text"
>
<a
href=
"{{ include.post.url | relative_url }}"
class=
"stretched-link"
>
<h4>
{{ include.post.title }}
</h4>
</a>
</div>
</div>
</div>
Loading