mirror of
https://github.com/gcushen/hugo-academic.git
synced 2025-07-23 18:10:52 +02:00
feat(blox): support HTML & fix accessibility in case of Emerald bg
This commit is contained in:
parent
55b856df3a
commit
564bf13e6d
1 changed files with 3 additions and 3 deletions
|
@ -7,7 +7,7 @@
|
||||||
{{ $block := .wcBlock }}
|
{{ $block := .wcBlock }}
|
||||||
|
|
||||||
{{ $title := $block.content.title | emojify | $page.RenderString }}
|
{{ $title := $block.content.title | emojify | $page.RenderString }}
|
||||||
{{ $text := $block.content.text | emojify | $page.RenderString }}
|
{{ $text := $block.content.text | emojify | $page.RenderString | safeHTML }}
|
||||||
{{ $card_class := $block.design.card.css_class }}
|
{{ $card_class := $block.design.card.css_class }}
|
||||||
{{ $card_style := $block.design.card.css_style }}
|
{{ $card_style := $block.design.card.css_style }}
|
||||||
|
|
||||||
|
@ -17,9 +17,9 @@
|
||||||
<h2 class="text-white text-4xl md:text-6xl tracking-tight">
|
<h2 class="text-white text-4xl md:text-6xl tracking-tight">
|
||||||
{{ $title }}
|
{{ $title }}
|
||||||
</h2>
|
</h2>
|
||||||
<p class="text-slate-300 mt-4 text-lg md:text-xl">
|
<div class="text-gray-100 mt-4 text-lg md:text-xl prose">
|
||||||
{{ $text }}
|
{{ $text }}
|
||||||
</p>
|
</div>
|
||||||
{{ with $block.content.button }}
|
{{ with $block.content.button }}
|
||||||
<div class="flex mt-5">
|
<div class="flex mt-5">
|
||||||
<a href="{{.url}}" class="rounded text-center transition focus-visible:ring-2 ring-offset-2 ring-gray-200 px-5 py-2.5 bg-white hover:bg-gray-300 text-black border-2 border-transparent">
|
<a href="{{.url}}" class="rounded text-center transition focus-visible:ring-2 ring-offset-2 ring-gray-200 px-5 py-2.5 bg-white hover:bg-gray-300 text-black border-2 border-transparent">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue