Skip to content

Commit

Permalink
Find SVGs using Page.Resources.Get
Browse files Browse the repository at this point in the history
  • Loading branch information
Perlence committed Dec 6, 2024
1 parent f905a44 commit 54c7bcd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions layouts/about/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ <h2 class="about--title">What our clients say</h2>
href="{{ .Params.linkedin }}"
target="_blank"
>{{ .Title }}{{
readFile "content/about/img/ico-instagram.svg"
($.Resources.Get "img/ico-linkedin.svg").Content
| strings.TrimSpace
| safeHTML
}}</a
Expand Down Expand Up @@ -198,7 +198,7 @@ <h2 class="about--title">Team</h2>
class="about--team-about-social-link"
target="_blank"
>{{
readFile "content/about/img/ico-instagram.svg"
($.Resources.Get "img/ico-instagram.svg").Content
| strings.TrimSpace
| safeHTML
}}ivelum_development</a
Expand Down
2 changes: 1 addition & 1 deletion layouts/contact/contact.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ <h3 class="contact--address-title">{{ .Title }}</h3>
<span x-bind:style="{ opacity: Number(!loading) }">Chat now</span>
<template x-if="loading">
<span class="contact--chatbox-loading">{{
readFile "content/contact/img/loading.svg"
($.Resources.Get "img/loading.svg").Content
| strings.TrimSpace
| safeHTML
}}</span>
Expand Down
2 changes: 1 addition & 1 deletion layouts/teamplify/teamplify.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<div class="container">
<h1 class="teamplify--title">
<span class="teamplify--title-ico">{{
readFile "content/teamplify/img/ico-teamplify.svg"
($.Resources.Get "img/ico-teamplify.svg").Content
| strings.TrimSpace
| safeHTML
}}</span>Teamplify
Expand Down

0 comments on commit 54c7bcd

Please sign in to comment.