mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-19 00:14:41 +00:00
feat: convert remaining Landing Page blocks from Go HTML to React
This commit is contained in:
1 parent
266d092fac
commit
ef8a34e33a
26 files changed
+1088
-1063
No files matched your search
@@ -1,11 +1,15 @@
|
||||
{{ $branding := partialCached "functions/get_branding" . "branding" }}
|
||||
{{ $logo := partialCached "functions/get_logo" (dict "constraint" "max_height" "size" 36) "navbar_logo" }}
|
||||
{{- $show_logo := site.Params.hugoblox.header.show_logo | default true -}}
|
||||
{{- $show_title := site.Params.hugoblox.header.show_title | default true -}}
|
||||
{{- $navbar_title := site.Params.hugoblox.header.title | default $branding.name -}}
|
||||
<header id="site-header" class="header">
|
||||
<nav class="navbar px-3 flex justify-start">
|
||||
<div class="order-0 h-full">
|
||||
<!-- Brand -->
|
||||
<a class="navbar-brand" href="{{ site.Home.RelPermalink }}" title="{{ $branding.site_title }}">
|
||||
{{/* Auto-detect logo from assets/media/logo.{svg,png} */}}
|
||||
{{ if $show_logo }}
|
||||
{{ with $logo.resource }}
|
||||
{{ if $logo.is_svg }}
|
||||
{{- .Content | safeHTML -}}
|
||||
@@ -20,8 +24,9 @@
|
||||
alt="{{ $branding.name }}" />
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{/* Display brand name */}}
|
||||
{{ $branding.name }}
|
||||
{{ if $show_title }}{{ $navbar_title }}{{ end }}
|
||||
</a>
|
||||
</div>
|
||||
<!-- Mobile menu -->
|
||||
|
||||
Reference in new issue
Block a user