Skip to content

Commit

Permalink
Add external sites
Browse files Browse the repository at this point in the history
  • Loading branch information
sylhare committed Dec 10, 2023
1 parent f4c8006 commit f55d3a9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
10 changes: 10 additions & 0 deletions _data/menu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# To add links to the navigation bar.
- example:
title: Example
url: https://example.com
hide: true
position: 2
- type-on-strap:
title: "Type on Strap"
url: https://github.com/sylhare/Type-on-Strap
position: 1
3 changes: 1 addition & 2 deletions _includes/default/navbar.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@
<!-- Menu -->
<ul class="hide">
{% assign name_page = "" %}
{% assign pages = site.pages | sort: 'position' %}

{% assign pages = site.pages | concat: site.data.menu | sort: 'position' %}
{% for page in pages %}
{% unless page.title == null or page.hide or name_page contains page.title %}
<li class="separator"> | </li>
Expand Down

0 comments on commit f55d3a9

Please sign in to comment.