Made testimonials great again
This commit is contained in:
15
pages/templates/partials/buttonlinks.html
Normal file
15
pages/templates/partials/buttonlinks.html
Normal file
@ -0,0 +1,15 @@
|
||||
{{define "buttonlinks"}}
|
||||
{{if eq true .Internal}}
|
||||
|
||||
<a class="btn btn-primary btn-outline btn-md lg:btn-lg" href={{.Href}}>
|
||||
{{.Name}}
|
||||
</a>
|
||||
|
||||
{{else}}
|
||||
|
||||
<a class="btn btn-primary btn-outline btn-md lg:btn-lg" href={{.Href}} target="_blank" rel="noreferrer">
|
||||
{{.Name}}
|
||||
</a>
|
||||
|
||||
{{end}}
|
||||
{{end}}
|
18
pages/templates/partials/iconlinks.html
Normal file
18
pages/templates/partials/iconlinks.html
Normal file
@ -0,0 +1,18 @@
|
||||
{{define "iconlinks"}}
|
||||
{{if eq .Name "Spotify"}}
|
||||
<div class="indicator indicator-top indicator-end">
|
||||
<div hx-ext="sse" sse-connect="/api/sse?channel=spotify" sse-swap="message">
|
||||
<span class="link link-hover link-success" hx-get="/api/spotify/nowplaying" hx-trigger="load" hx-swap="self">
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<a class="fill-white hover:fill-pink-500" href={{.Href}} target="_blank" rel="me" aria-label={{.Name}}>
|
||||
{{.Icon}}
|
||||
</a>
|
||||
</div>
|
||||
{{else}}
|
||||
<a class="fill-white hover:fill-pink-500" href={{.Href}} target="_blank" rel="me" aria-label={{.Name}}>
|
||||
{{.Icon}}
|
||||
</a>
|
||||
{{end}}
|
||||
{{end}}
|
@ -14,6 +14,11 @@
|
||||
Talks
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="no-underline" href="/testimonials">
|
||||
Testimonials
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="no-underline" href="/tools">
|
||||
Tools
|
||||
|
Reference in New Issue
Block a user