Skip to content

Commit

Permalink
Merge pull request #289 from danmacpherson/remove-menu-title
Browse files Browse the repository at this point in the history
Removing "Menu" title from menus and correcting CSS
  • Loading branch information
danmacpherson authored Jul 20, 2023
2 parents 437511b + 6c16083 commit 199e84a
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 45 deletions.
33 changes: 13 additions & 20 deletions layouts/blog/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,19 @@
{{ $section := .Site.GetPage "section" .Section }}
<div class="pf-c-page__sidebar">
<div class="pf-c-page__sidebar-body">
<div class="pf-l-flex filter-title-div">
<span class="pf-c-title pf-m-md filter-title pf-l-flex__item pf-m-grow">Menu</span>
</div>
<div class="pf-c-select pf-m-expanded">
<div class="pf-c-select__menu">
<div class="pf-c-nav pf-m-light">
<ul class="pf-c-nav__list">
<li class="pf-c-nav__item">
<a href="/blog/" class="pf-c-nav__link">
<span class="pf-c-icon pf-m-md pf-m-inline">
<span class="pf-c-icon__content">
<i class="fas fa-angle-left" aria-hidden="true"></i>
</span>
</span>
<span style="padding-left: 10px;">Back to Blog</span>
</a>
</li>
</ul>
</div>
</div>
<div class="pf-c-nav pf-m-light">
<ul class="pf-c-nav__list">
<li class="pf-c-nav__item">
<a href="/blog/" class="pf-c-nav__link">
<span class="pf-c-icon pf-m-md pf-m-inline">
<span class="pf-c-icon__content">
<i class="fas fa-angle-left" aria-hidden="true"></i>
</span>
</span>
<span style="padding-left: 10px;">Back to Blog</span>
</a>
</li>
</ul>
</div>
</div>
</div>
Expand Down
3 changes: 3 additions & 0 deletions layouts/ci/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
{{ $section := .Site.GetPage "section" .Section }}
<div class="pf-c-page__sidebar">
<div class="pf-c-page__sidebar-body">
<div class="pf-l-flex filter-title-div">
<span class="pf-c-title pf-m-md filter-title pf-l-flex__item pf-m-grow">Filter by</span>
</div>
{{ partial "menu-ci.html" . }}
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/menu-ci.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{ $currentPage := . }}
<div class="pf-c-select">
<div class="pf-c-select pf-m-expanded">
<div class="pf-c-select__menu">
<div class="pf-c-nav pf-m-light">
<ul class="pf-c-nav__list">
Expand Down
7 changes: 0 additions & 7 deletions layouts/partials/menu-contribute.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
{{ $currentPage := . }}
<div class="pf-l-flex filter-title-div">
<span class="pf-c-title pf-m-md filter-title pf-l-flex__item pf-m-grow">Menu</span>
</div>
<div class="pf-c-select pf-m-expanded">
<div class="pf-c-select__menu">
<div class="pf-c-nav pf-m-light">
<ul class="pf-c-nav__list">
{{ range .Site.Menus.contribute }}
Expand Down Expand Up @@ -49,5 +44,3 @@
{{ end }}
</ul>
</div>
</div>
</div>
8 changes: 1 addition & 7 deletions layouts/partials/menu-learn.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
{{ $currentPage := . }}
<div class="pf-l-flex filter-title-div">
<span class="pf-c-title pf-m-md filter-title pf-l-flex__item pf-m-grow">Menu</span>
</div>
<div class="pf-c-select pf-m-expanded">
<div class="pf-c-select__menu">

<div class="pf-c-nav pf-m-light">
<ul class="pf-c-nav__list">
{{ range .Site.Menus.learn }}
Expand Down Expand Up @@ -57,5 +53,3 @@
{{ end }}
</ul>
</div>
</div>
</div>
7 changes: 0 additions & 7 deletions layouts/partials/menu-patterns.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
{{ $currentlink := .RelPermalink }}
<div class="pf-l-flex filter-title-div">
<span class="pf-c-title pf-m-md filter-title pf-l-flex__item pf-m-grow">Menu</span>
</div>
<div class="pf-c-select pf-m-expanded">
<div class="pf-c-select__menu">
<div class="pf-c-nav pf-m-light">
<ul class="pf-c-nav__list">
<li class="pf-c-nav__item">
Expand Down Expand Up @@ -45,5 +40,3 @@
{{ end }}
</ul>
</div>
</div>
</div>
3 changes: 0 additions & 3 deletions layouts/partials/tags-blog.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,3 @@
</div>
</div>
</div>



0 comments on commit 199e84a

Please sign in to comment.