Skip to content

Commit

Permalink
REmove field article_image
Browse files Browse the repository at this point in the history
  • Loading branch information
pktiuk committed Mar 24, 2024
1 parent 322274f commit a6c940a
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 16 deletions.
1 change: 0 additions & 1 deletion content/project/okon.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: Łódz Podwodna OKOŃ
short_title: OKOŃ
main_project_image: "/images/okon/okonV2.jpg"
# article_image: "/images/okon/2.jpg"
main_site: false
start_date: 2018.12
end_date: 2023
Expand Down
5 changes: 0 additions & 5 deletions layouts/project/project.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@
{{ with $image }}
<img src="{{ ( $image.Fit `390x250 q75` ).RelPermalink }}" alt="{{ .Params.title }}">
{{ end }}
{{else if .Params.article_image}}
{{ $image := resources.GetMatch .Params.article_image }}
{{ with $image }}
<img src="{{ ( $image.Fit `390x250 q75` ).RelPermalink }}" alt="{{ .Params.title }}">
{{ end }}
{{else}}
{{ $image := resources.GetMatch .Params.main_project_image }}
{{ with $image }}
Expand Down
10 changes: 0 additions & 10 deletions layouts/project/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@
</div>
<div class="container">
<div class="project__wrapper">
{{ if .Params.article_image}}
<div class="project__block">
<img class="project__image" src="{{ .Params.article_image}}" alt="hal" />
</div>
{{ end }}
<div class="project__block">
<div class="project__dates">
<p>
Expand All @@ -36,11 +31,6 @@
</p>
</div>
<div class="project__descr-title">Kilka słów więcej</div>
{{ if .Params.article_image}}
<div class="project__descr">
{{.Params.short_description | safeHTML }}
</div>
{{ end }}
</div>
</div>

Expand Down

0 comments on commit a6c940a

Please sign in to comment.