feat(helper): add helper/icon

This commit is contained in:
Jimmy Cai
2020-10-10 00:27:56 +02:00
parent 4e646fe15e
commit 871e8c0bd5
6 changed files with 12 additions and 6 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
<section class="widget archives">
<div class="widget-icon">
{{ (resources.Get "icons/infinity.svg").Content | safeHTML }}
{{ partial "helper/icon" "infinity" }}
</div>
<h1 class="widget-title">{{ T "widgetArchivesTitle" }}</h1>
+1 -1
View File
@@ -1,6 +1,6 @@
<section class="widget tagCloud">
<div class="widget-icon">
{{ (resources.Get "icons/tag.svg").Content | safeHTML }}
{{ partial "helper/icon" "tag" }}
</div>
<h1 class="widget-title">{{ T "widgetTagCloudTitle" }}</h1>