mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-04 18:13:06 +00:00
feat(blox-tailwind): add support for Hugo v0.148
This commit is contained in:
1 parent
44e75541f7
commit
96c8bf099f
6 files changed
+20
-16
No files matched your search
@@ -4,7 +4,7 @@ markup:
|
||||
renderHooks:
|
||||
link:
|
||||
# Process backlinks hook
|
||||
enableDefault: true
|
||||
useEmbedded: fallback
|
||||
renderer:
|
||||
# Render HTML in Markdown
|
||||
unsafe: true
|
||||
@@ -58,7 +58,7 @@ sitemap:
|
||||
changefreq: weekly
|
||||
module:
|
||||
hugoVersion:
|
||||
min: '0.134.1'
|
||||
min: '0.148.2'
|
||||
extended: true
|
||||
imports:
|
||||
- path: github.com/HugoBlox/hugo-blox-builder/modules/blox-analytics
|
||||
|
||||
@@ -110,9 +110,11 @@
|
||||
{{ if $pub_type_display }}
|
||||
<div class="font-bold text-2xl">{{ i18n "publication_type" }}</div>
|
||||
<div>
|
||||
{{ if and .Params.publication_types (gt (len .Params.publication_types) 0) }}
|
||||
<a href="{{ range first 1 (.GetTerms "publication_types") }}{{.RelPermalink}}{{end}}">
|
||||
{{ $pub_type_display }}
|
||||
</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
|
||||
File renamed without changes.
@@ -1,8 +1,7 @@
|
||||
{{/* Display author list. */}}
|
||||
|
||||
{{- $taxonomy := "authors" }}
|
||||
{{ if .Param $taxonomy }}
|
||||
{{ range $index, $value := (.GetTerms $taxonomy) }}
|
||||
{{ if .Params.authors }}
|
||||
{{ range $index, $value := (.GetTerms "authors") }}
|
||||
{{- /* Highlight the author's name? */ -}}
|
||||
{{- $highlight_name := .Page.Params.highlight_name | default false -}}
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
{{ $taxonomy := "tags" }}
|
||||
{{ if .Param $taxonomy }}
|
||||
{{ if .Params.tags }}
|
||||
<div class="flex justify-center">
|
||||
{{ range $index, $value := (.GetTerms $taxonomy) }}
|
||||
{{ range $index, $value := (.GetTerms "tags") }}
|
||||
<a class="no-underline bg-primary-100 hover:bg-primary-300 text-primary-800 text-xs font-medium mr-2 px-2.5 py-0.5 lg:px-5 lg:py-2 rounded dark:bg-primary-900 dark:hover:bg-primary-700 dark:text-primary-300" href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
@@ -38,12 +38,14 @@
|
||||
{{end}}
|
||||
<div class="">
|
||||
<div class="">
|
||||
<div class="flex gap-3">
|
||||
{{ range $index, $value := first 1 ($item.GetTerms "tags") }}
|
||||
<a href="{{.RelPermalink}}"><span
|
||||
class="inline-block text-xs font-medium tracking-wider uppercase mt-5 text-primary-700 dark:text-primary-300">{{ .Page.LinkTitle }}</span></a>
|
||||
{{end}}
|
||||
</div>
|
||||
<div class="flex gap-3">
|
||||
{{ if and $item.Params.tags (gt (len $item.Params.tags) 0) }}
|
||||
{{ range $index, $value := first 1 ($item.GetTerms "tags") }}
|
||||
<a href="{{.RelPermalink}}"><span
|
||||
class="inline-block text-xs font-medium tracking-wider uppercase mt-5 text-primary-700 dark:text-primary-300">{{ .Page.LinkTitle }}</span></a>
|
||||
{{end}}
|
||||
{{ end }}
|
||||
</div>
|
||||
<!-- <div class="relative line-clamp-2" style="display: block; height: 4em">-->
|
||||
<h2 class="text-lg font-semibold leading-snug tracking-tight mt-2 dark:text-white"><a
|
||||
href="{{ $link }}" {{ $target | safeHTMLAttr }}><span
|
||||
@@ -63,8 +65,9 @@
|
||||
<!-- <a href="">-->
|
||||
{{ if $item.Params.authors }}
|
||||
<div class="flex items-center gap-3">
|
||||
{{ range $index, $value := first 1 ($item.GetTerms "authors") }}
|
||||
<div class="relative h-5 w-5 flex-shrink-0">
|
||||
{{ if and $item.Params.authors (gt (len $item.Params.authors) 0) }}
|
||||
{{ range $index, $value := first 1 ($item.GetTerms "authors") }}
|
||||
<div class="relative h-5 w-5 flex-shrink-0">
|
||||
{{ $avatar := (.Resources.ByType "image").GetMatch "*avatar*" }}
|
||||
{{ if $avatar }}
|
||||
{{ $authorImage := $avatar.Process "Fill 50x50 Center 95 webp" }}
|
||||
@@ -86,6 +89,7 @@
|
||||
</span>
|
||||
</div>
|
||||
{{end}}
|
||||
{{ end }}
|
||||
<!-- </a>-->
|
||||
<span class="text-xs text-gray-300 dark:text-gray-600">•</span>
|
||||
{{end}}
|
||||
|
||||
Reference in new issue
Block a user