Skip to content

Commit b04e31f

Browse files
committed
Implement hiding Blog and About
1 parent 66360d5 commit b04e31f

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

_config.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ exclude: [README.md, Gemfile, Gemfile.lock, node_modules, gulpfile.js, package.j
2929
# if you don't need projects, comment the *projects* configs below
3030
projects: true
3131

32+
# if you don't need about or blog, comment them out below
33+
about: true
34+
blog: true
35+
3236
gems:
3337
- jemoji
3438
- jekyll-mentions

_includes/nav.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<nav class="{% if page.title == "Home" %}home__header-nav{% else %}nav{% endif %}">
22
<ul>
33
{% if page.title != "Home" %}<li><a href="{{ site.url }}/">Home</a></li>{% endif %}
4-
{% if page.title != "Blog" %}<li><a href="{{ site.url }}/blog">Blog</a></li>{% endif %}
4+
{% if site.blog == true %}{% if page.title != "Blog" %}<li><a href="{{ site.url }}/blog">Blog</a></li>{% endif %}{% endif %}
55
{% if site.projects == true %}{% if page.title != "Projects" %}<li><a href="{{ site.url }}/projects">Projects</a></li>{% endif %}{% endif %}
6-
{% if page.title != "About" %}<li><a href="{{ site.url }}/about">About</a></li>{% endif %}
6+
{% if site.about == true %}{% if page.title != "About" %}<li><a href="{{ site.url }}/about">About</a></li>{% endif %}{% endif %}
77
</ul>
88
</nav>

0 commit comments

Comments
 (0)