-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add template for sidebar menu (#69)
- Loading branch information
Showing
11 changed files
with
113 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
title: "OSL Internship Program Guideline" | ||
description: "Internship Program Guideline" | ||
date: "2023-10-30" | ||
authors: ["OSL Team"] | ||
template: single-sidebar.html | ||
--- | ||
|
||
# Internship Program 2023 - 01 |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
title: "OSL Internship Program Guideline" | ||
description: "Internship Program Guideline" | ||
date: "2023-10-30" | ||
authors: ["OSL Team"] | ||
template: single-sidebar.html | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
title: "OSL Internship Program Guideline" | ||
description: "Internship Program Guideline" | ||
date: "2023-10-30" | ||
authors: ["OSL Team"] | ||
template: single-sidebar.html | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
{% extends "base.html" %} | ||
|
||
{% block header_extra %} | ||
<style> | ||
.main-nav>li>a { | ||
color: #000000 !important; | ||
} | ||
</style> | ||
{% endblock header_extra%} | ||
|
||
{% block content %} | ||
|
||
<section> | ||
<div class="row pt-5"> | ||
{% block side_menu %} | ||
|
||
{# prepare the nav3 content inside the side block -#} | ||
{% set nav3_selected = [] -%} | ||
{% for nav1 in nav -%} | ||
{% for nav2 in (nav1.children or []) -%} | ||
{% if nav2.active %} | ||
{% for nav3 in (nav2.children or []) -%} | ||
{% if nav3.title != "index" -%} | ||
{{ nav3_selected.append(nav3) or "" -}} | ||
{% endif %} | ||
{% endfor -%} | ||
{% endif -%} | ||
{% endfor -%} | ||
{% endfor %} | ||
|
||
<div class="col"> | ||
<!-- List group for sidebar menu --> | ||
<div class="list-group pt-4"> | ||
{% for nav3_item in nav3_selected %} | ||
<a | ||
href="/{{ nav3_item.url }}" | ||
class="list-group-item list-group-item-action{% if nav3_item.active %} active{% endif %}" | ||
{%- if nav3_item.active %} aria-current="true"{% endif -%} | ||
> | ||
{{ nav3_item.title }} | ||
</a> | ||
{% endfor %} | ||
</div> | ||
|
||
{% if menu_3rd_level_selected %} | ||
<div> | ||
{% for menu_item_3rd_level in menu_3rd_level_selected %} | ||
<p> | ||
<a href="{{ menu_item_3rd_level.url }}">{{ menu_item_3rd_level.title }}</a> | ||
</p> | ||
{% endfor %} | ||
</div> | ||
{% endif %} | ||
</div> | ||
{% endblock side_menu %} | ||
<div class="col-md-9 mx-auto"> | ||
{% block content_inner %} | ||
{{ page.content }} | ||
{% endblock content_inner %} | ||
</div> | ||
</div> | ||
</section> | ||
{% endblock content %} |