Move navbar config to /data/navbar.yml

Move footer config to /data/footer.yml
Remove unused blog
This commit is contained in:
2025-04-23 11:40:51 -08:00
parent 6673e5bf92
commit d30fca8d96
18 changed files with 30 additions and 36 deletions

View File

@@ -17,7 +17,7 @@
</a>
<ul class="flex flex-wrap justify-around items-center mb-6 text-sm font-medium text-gray-500 sm:mb-0 dark:text-gray-400">
{{ range $key, $value := .Site.Params.footer.links }}
{{ range $key, $value := .Site.Data.footer.links }}
<li>
<a href="{{ $value.href }}" class="hover:text-white mx-4">{{ $value.name }}</a>
</li>

View File

@@ -34,7 +34,7 @@
</div>
<div class="hidden justify-between items-center w-full lg:flex lg:w-auto lg:order-1 bg-white dark:bg-gray-800 lg:bg-transparent lg:dark:bg-transparent mt-2 lg:mt-0" id="mobile-menu-2">
<ul class="flex flex-col rounded-lg font-medium lg:flex-row lg:space-x-8 text-gray-900 dark:text-gray-300">
{{ range $index, $element := .Site.Params.navbar.links}}
{{ range $index, $element := .Site.Data.navbar.links}}
<li>
<a class="block py-2 pr-4 pl-3 border-b text-lg
border-gray-100 hover:bg-gray-100 lg:hover:bg-transparent lg:text-xl