sort sub pages and sections init product

This commit is contained in:
gws 2024-11-06 14:41:37 +01:00
parent 5607e42cc1
commit a7494ff14a
6 changed files with 30 additions and 12 deletions

View file

@ -26,9 +26,9 @@ juice_logo_path = "flat_blocks.svg"
slogan = "Let's Build Something Together!"
intro = "Need help with Product development or IT? \n You have come to right place"
juice_extra_menu = [
{ title = "Github", link = "https://github.com/glennwso"}
]
# juice_extra_menu = [
# { title = "Github", link = "https://github.com/glennwso"}
# ]
repository_url = "https://github.com/huhu/juice"
# meta_title = "The cool TeX automation tool"

View file

@ -1,5 +1,5 @@
+++
sort_by = "weight"
+++

View file

@ -1,5 +1,6 @@
+++
title = "Blog"
sort_by = "date"
weight = 5
+++

View file

@ -1,7 +1,7 @@
+++
title = "Contact"
description = "How to get in contact"
weight = 2
weight = 10
template = "contact.html"
[extra]
disable_toc = true

14
content/product.md Normal file
View file

@ -0,0 +1,14 @@
+++
title = "Product Development"
description = "Software Development Consulting"
weight = 3
+++
## TODO
```rust
fn main() {
println!("Hello, World!");
}
```

View file

@ -8,18 +8,21 @@
</a>
<nav>
{% for page in section.pages %}
<a class="nav-item subtitle-text" href="{{ page.permalink | safe }}">{{ page.title }}</a>
{% endfor %}
{% for path in section.subsections %}
{% set child = get_section(path=path) %}
<a class="nav-item subtitle-text" href="{{ child.permalink }}">{{ child.title }}</a>
{% endfor %}
{% if config.extra.juice_extra_menu %}
{% for menu in config.extra.juice_extra_menu %}
<a class="nav-item subtitle-text" href="{{ menu.link | safe }}">{{ menu.title }}</a>
{% endfor %}
{% endif %}
{% for page in section.pages %}
<a class="nav-item subtitle-text" href="{{ page.permalink | safe }}">{{ page.title }}</a>
{% endfor %}
{% for path in section.subsections %}
{% set child = get_section(path=path) %}
<a class="nav-item subtitle-text" href="{{ child.permalink }}">{{ child.title }}</a>
{% endfor %}
</nav>