1
0
website/templates/components/metadata.tpl

16 lines
623 B
Smarty
Raw Normal View History

2022-08-14 13:46:46 +03:00
<ema:metadata>
<section
class="flex flex-wrap items-end justify-center my-4 space-x-2 space-y-2 font-mono text-sm">
<with var="tags">
<!-- FIXME: The use of -/tags is wrong, because we should use routeUrl using Ema's encoder
Perhaps Emanote should inject tagMetas with urls.
-->
<a title="Tag" class="px-1 bg-gray-800 rounded border-2 border-gray-700 hover:border-${theme}-700 hover:text-${theme}-500"
href="-/tags/${value}${ema:urlStrategySuffix}">
<!-- DoNotFormat -->
#<value />
<!-- DoNotFormat -->
</a>
</with>
</section>
</ema:metadata>