Skip to content

Commit

Permalink
fix: header links
Browse files Browse the repository at this point in the history
  • Loading branch information
lastofpudge committed Feb 21, 2024
1 parent 981162f commit 48f0828
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "theme/blank",
"type": "wp-theme",
"version": "2.0.17",
"version": "2.0.18",
"description": "Wordpress starter theme with Timber/Twig",
"license": "GPL-3.0-or-later",
"authors": [
Expand Down
8 changes: 4 additions & 4 deletions resources/views/components/header.twig
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@
<div class="container">
<div class="row">
<div class="col-12">
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<nav class="navbar navbar-expand-lg navbar-light">
<ul class="navbar-nav mr-auto">
{% for item in left_menu.get_items %}
<li class="nav-item {{ item.classes|join(' ') }} {{ item.current
<li class="mx-2 nav-item{{ item.classes|join(' ') }} {{ item.current
? 'active'
: '' }}">
<a class="nav-main-link" href="{{ item.get_link }}">
<a class="nav-main-link" href="{{ item.link }}">
{{ item.title }}
</a>
{% if item.get_children %}
<ul class="nav-drop">
{% for child in item.get_children %}
<li class="nav-drop-item">
<a href="{{ child.get_link }}">{{ child.title }}</a>
<a href="{{ child.link }}">{{ child.title }}</a>
</li>
{% endfor %}
</ul>
Expand Down
2 changes: 1 addition & 1 deletion style.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
Theme Name: wp-theme
Theme URI:https://github.com/lastofpudge/wp-theme
Version: 2.0.17
Version: 2.0.18
License: GNU General Public License v3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Requires PHP: 8.0
Expand Down

0 comments on commit 48f0828

Please sign in to comment.