Skip to content

Commit

Permalink
Clean up nav bar styling for projects
Browse files Browse the repository at this point in the history
 - Move the title above nav bar
- Mirror styling for nav bar on main website
  • Loading branch information
Sean1572 committed Apr 3, 2024
1 parent 87eb953 commit 85779f2
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 26 deletions.
19 changes: 10 additions & 9 deletions _layouts/gallery.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,18 @@
---

<div class="feed">
{%- if page.title -%}
<h1 class="page-heading">{{ page.title }} Media</h1>
{%- endif -%}

{%- if page.enable_nav -%}
<nav id="project-navigation">
<ul id="menu-project-nav" class="menu-project">
<li id="" class="menu-projects">
<a href={{ "./" }}>
{{ page.title }}
</a>
</li>
<li id="" class="menu-projects">
<a href={{ "./update" }}>
Project Updates
Expand All @@ -17,19 +26,11 @@
Media
</a>
</li>
<li id="" class="menu-projects">
<a href={{ "./" }}>
{{ page.title }}
</a>
</li>

</ul>
</nav>
{%- endif -%}


{%- if page.title -%}
<h1 class="page-heading">{{ page.title }} Media</h1>
{%- endif -%}

{% include gallery_component.html media=page.media grid=page.grid %}
</div>
Expand Down
19 changes: 11 additions & 8 deletions _layouts/post_feed.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,18 @@
---

<div class="feed">
{%- if page.title -%}
<h1 class="page-heading">{{ page.title }} Posts</h1>
{%- endif -%}

{%- if page.enable_nav -%}
<nav id="project-navigation">
<ul id="menu-project-nav" class="menu-project">
<li id="" class="menu-projects">
<a href={{ "./" }}>
{{ page.title }}
</a>
</li>
<li id="" class="menu-projects">
<a aria-current="page">
Project Updates
Expand All @@ -16,19 +25,13 @@
Media
</a>
</li>
<li id="" class="menu-projects">
<a href={{ "./" }}>
{{ page.title }}
</a>
</li>

</ul>
</nav>
{%- endif -%}


{%- if page.title -%}
<h1 class="page-heading">{{ page.title }} Posts</h1>
{%- endif -%}

{%- if site.posts.size > 0 -%}
<ul class="post-list">
{%- for post in site.posts -%}
Expand Down
16 changes: 8 additions & 8 deletions _layouts/project.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,16 @@

<!-- TODO what is itemtype + itemscope-->
<article class="project h-entry" itemscope itemtype="http://schema.org/BlogPosting">
<h1 class="page-heading">{{ page.title }}</h1>

{%- if page.enable_nav -%}
<nav id="project-navigation">
<ul id="menu-project-nav" class="menu-project">
<li id="" class="menu-projects">
<a href={{ page.permalink }} aria-current="page">
{{ page.title }}
</a>
</li>
<li id="" class="menu-projects">
<a href={{ page.permalink | append: "/update" }}>
Project Updates
Expand All @@ -17,17 +24,10 @@
Media
</a>
</li>
<li id="" class="menu-projects">
<a href={{ page.permalink }} aria-current="page">
{{ page.title }}
</a>
</li>
</ul>
</nav>
{%- endif -%}
<header class="project-header">
<h1 class="project-title p-name" itemprop="name headline">{{ page.title | escape }}</h1>
</header>


<div class="project-content e-content" itemprop="articleBody">
{{ content }}
Expand Down
3 changes: 2 additions & 1 deletion _sass/minima.scss
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,6 @@ $on-laptop: 800px !default;
@import
"minima/base",
"minima/layout",
"minima/syntax-highlighting"
"minima/syntax-highlighting",
"minima/project_nav.scss"
;
11 changes: 11 additions & 0 deletions _sass/minima/_project_nav.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.menu-project {
display: flex;
flex-wrap: wrap;
flex-direction: row;
justify-content: space-evenly;
align-items: center;
}

.menu-projects {
list-style-type: none;
}

0 comments on commit 85779f2

Please sign in to comment.