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

@@ -8,20 +8,6 @@ canonifyURLs: true
params: params:
format: format:
date: "January 02, 2006" date: "January 02, 2006"
navbar:
enable: true
links:
- name: Home
link: /
- name: Rates
link: /rates/
- name: Contact
link: /contact/
- name: About Us
link: /about/
- name: "(907) 519-8577"
phone: 19075198577
logo: logo:
text: The Bearded Tek text: The Bearded Tek
svg: /images/logo/no-padding.svg svg: /images/logo/no-padding.svg
@@ -31,26 +17,6 @@ params:
authors: William Kenny authors: William Kenny
social_image_path: /marketing-ui/demo/images/og-image.jpg social_image_path: /marketing-ui/demo/images/og-image.jpg
footer:
enable: true
links:
- name: About
href: "/about/"
- name: Support
href: "/contact?topic=support"
- name: Contact Us
href: "/contact"
- name: Blog
href: "/blog/"
- name: Terms
href: "/terms/"
- name: Privacy Policy
href: "/privacy/"
- name: Cookie Policy
href: "/cookies/"
- name: "(907) 519-8577"
href: "tel:9075198577"
markup: markup:
goldmark: goldmark:
renderer: renderer:

16
data/footer.yml Normal file
View File

@@ -0,0 +1,16 @@
enable: true
links:
- name: About
href: "/about/"
- name: Support
href: "/contact?topic=support"
- name: Contact Us
href: "/contact"
- name: Terms
href: "/terms/"
- name: Privacy Policy
href: "/privacy/"
- name: Cookie Policy
href: "/cookies/"
- name: "(907) 519-8577"
href: "tel:9075198577"

12
data/navbar.yml Normal file
View File

@@ -0,0 +1,12 @@
enable: true
links:
- name: Home
link: /
- name: Rates
link: /rates/
- name: Contact
link: /contact/
- name: About Us
link: /about/
- name: "(907) 519-8577"
phone: 19075198577

View File

@@ -17,7 +17,7 @@
</a> </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"> <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> <li>
<a href="{{ $value.href }}" class="hover:text-white mx-4">{{ $value.name }}</a> <a href="{{ $value.href }}" class="hover:text-white mx-4">{{ $value.name }}</a>
</li> </li>

View File

@@ -34,7 +34,7 @@
</div> </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"> <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"> <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> <li>
<a class="block py-2 pr-4 pl-3 border-b text-lg <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 border-gray-100 hover:bg-gray-100 lg:hover:bg-transparent lg:text-xl

Binary file not shown.

Before

Width:  |  Height:  |  Size: 553 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 547 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 680 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 395 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 226 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 388 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 553 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 521 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 476 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 366 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 295 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 318 KiB