Skip to content

Commit

Permalink
Clean featured-image casestudies
Browse files Browse the repository at this point in the history
  • Loading branch information
sebousan committed Oct 18, 2023
1 parent 83975f1 commit f60b607
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 17 deletions.
3 changes: 0 additions & 3 deletions config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ params:
desktop: "416x179"
mobile: "300x129"
scrollsnap: "240x103"
image:
desktop: "856x"
mobile: "300x"

# Default
permalinks:
Expand Down
14 changes: 1 addition & 13 deletions layouts/partials/casestudies/featured-image.html
Original file line number Diff line number Diff line change
@@ -1,13 +1 @@
{{ with .Params.image}}
{{ $desktop := site.Params.casestudies.image.desktop | default false }}
{{ $mobile := site.Params.casestudies.image.mobile | default false }}
{{ partial "commons/image.html" (dict
"src" .src
"alt" .alt
"credit" .credit
"picture_class" "featured-image"
"desktop" $desktop
"mobile" $mobile
"lazy" false
) }}
{{ end }}
{{ partial "commons/featured-image" . }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hugolify-theme-casestudies",
"version": "1.0.9",
"version": "1.0.10",
"homepage": "https://www.hugolify.io",
"repository": "https://github.com/hugolify/hugolify-theme-casestudies",
"bugs": {
Expand Down

0 comments on commit f60b607

Please sign in to comment.