modified banner button target

This commit is contained in:
somrat sorkar 2024-01-29 10:45:05 +06:00
parent b943dc7383
commit c225f20d54
2 changed files with 7 additions and 2 deletions

View File

@ -13,7 +13,12 @@
</p>
{{ with .button }}
{{ if .enable }}
<a class="btn btn-primary" href="{{ .link | absURL }}">
<a
class="btn btn-primary"
href="{{ .link | absURL }}"
{{ if strings.HasPrefix .link `http` }}
target="_blank" rel="noopener"
{{ end }}>
{{ .label }}
<i class="fa fa-arrow-right pl-2"></i>
</a>

View File

@ -1,7 +1,7 @@
{
"name": "hugoplate",
"description": "hugo tailwindcss boilerplate",
"version": "1.11.1",
"version": "1.11.2",
"license": "MIT",
"author": "zeon.studio",
"scripts": {