mirror of
https://github.com/imfing/hextra.git
synced 2025-05-14 19:16:27 -04:00

* chore(css): improve not-prose tags styling * fix: typo * chore(style): improve appearance in prose * feat: support icon in callout shortcode * chore: add RSS badge to blog list page * chore: run build:css * chore: run build:css * chore: remove unused CSS * chore: add footer.enable explicitly to config * chore: use `where` pseudo class for more prose elements * chore: run build:css * chore: remove blank space * chore: rebuild css * chore: update figure css
16 lines
673 B
HTML
16 lines
673 B
HTML
{{- $link := .Get "link" -}}
|
|
{{- $text := .Get "text" -}}
|
|
{{- $style := .Get "style" -}}
|
|
|
|
{{- $external := hasPrefix $link "http" -}}
|
|
{{- $href := cond (hasPrefix $link "/") ($link | relURL) $link -}}
|
|
|
|
<a
|
|
href="{{ $href }}"
|
|
class="not-prose font-medium cursor-pointer px-6 py-3 rounded-full text-center text-white inline-block bg-primary-600 hover:bg-primary-700 focus:outline-none focus:ring-4 focus:ring-primary-300 dark:bg-primary-600 dark:hover:bg-primary-700 dark:focus:ring-primary-800 transition-all ease-in duration-200"
|
|
{{ with $style }}style="{{ . | safeCSS }}"{{ end }}
|
|
{{ if $external }}target="_blank" rel="noreferrer"{{ end -}}
|
|
>
|
|
{{- $text -}}
|
|
</a>
|