mirror of
https://github.com/TrezOne/congo-hindi-gujarati.git
synced 2026-07-20 18:01:36 -04:00
💄 Only output icon styles if there is an icon
This commit is contained in:
@@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Minor style issues
|
||||||
|
|
||||||
## [1.5.1] - 2021-11-04
|
## [1.5.1] - 2021-11-04
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<span class="relative inline-block align-text-bottom icon">
|
{{ $icon := resources.Get (print "icons/" . ".svg") }}
|
||||||
{{ $icon := resources.Get (print "icons/" . ".svg") }}
|
{{ if $icon }}
|
||||||
{{ if $icon }}
|
<span class="relative inline-block align-text-bottom icon">
|
||||||
{{ $icon.Content | safeHTML }}
|
{{ $icon.Content | safeHTML }}
|
||||||
{{ end }}
|
</span>
|
||||||
</span>
|
{{ end }}
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
<span class="relative inline-block align-text-bottom icon">
|
{{ $icon := resources.Get (printf "icons/%s.svg" ($.Get 0)) }}
|
||||||
{{ $icon := resources.Get (printf "icons/%s.svg" ($.Get 0)) }}
|
{{ if $icon }}
|
||||||
{{ if $icon }}
|
<span class="relative inline-block align-text-bottom icon">
|
||||||
{{ $icon.Content | safeHTML }}
|
{{ $icon.Content | safeHTML }}
|
||||||
{{ else }}
|
</span>
|
||||||
<em>{{ i18n "shortcode.icon_none" }}</em>
|
{{ else }}
|
||||||
{{ end }}
|
<em>{{ i18n "shortcode.icon_none" }}</em>
|
||||||
</span>
|
{{ end }}
|
||||||
|
|||||||
Reference in New Issue
Block a user