Skip to content

Commit

Permalink
Layout cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jharper-sec committed Dec 7, 2024
1 parent df6a05b commit fec6374
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 46 deletions.
12 changes: 6 additions & 6 deletions _config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ nav_links:
- title: Home
url: /
description: Return to homepage
- title: Runbooks
url: /runbooks/
description: Browse all security runbooks
- title: About
url: /about/
description: Learn about this project
# - title: Runbooks
# url: /runbooks/
# description: Browse all security runbooks
# - title: About
# url: /about/
# description: Learn about this project

# Theme colors
colors:
Expand Down
23 changes: 23 additions & 0 deletions _includes/navigation.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<nav class="nav-wrapper" role="navigation" aria-label="Main navigation">
<div class="container">
<div class="nav-brand">
<a href="{{ '/' | relative_url }}" aria-label="Return to homepage">
<img src="{{ '/assets/images/contrast-logo.svg' | relative_url }}" alt="{{ site.title }}"
class="nav-logo" width="150" height="40">
</a>
</div>

<button class="nav-toggle" aria-label="Toggle navigation menu" aria-expanded="false">
<span class="nav-toggle-icon"></span>
</button>

<div class="nav-links">
{% for link in site.nav_links %}
<a href="{{ link.url | relative_url }}" {% if page.url==link.url %}aria-current="page" class="active" {%
endif %} title="{{ link.description }}">
{{ link.title }}
</a>
{% endfor %}
</div>
</div>
</nav>
27 changes: 1 addition & 26 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,33 +70,8 @@
</head>

<body>
<!-- Skip navigation -->
<a href="#main-content" class="skip-nav">Skip to main content</a>

<!-- Navigation -->
<nav class="nav-wrapper" role="navigation" aria-label="Main navigation">
<div class="container">
<div class="nav-brand">
<a href="{{ '/' | relative_url }}" aria-label="Return to homepage">
<img src="{{ site.logo | relative_url }}" alt="{{ site.title }}" class="nav-logo" width="150"
height="40">
</a>
</div>

<button class="nav-toggle" aria-label="Toggle navigation menu" aria-expanded="false">
<span class="nav-toggle-icon"></span>
</button>

<div class="nav-links">
{% for link in site.nav_links %}
<a href="{{ link.url | relative_url }}" {% if page.url==link.url %}aria-current="page" class="active" {%
endif %} title="{{ link.description }}">
{{ link.title }}
</a>
{% endfor %}
</div>
</div>
</nav>
{% include navigation.html %}

<!-- Main content -->
<main id="main-content" role="main">
Expand Down
16 changes: 2 additions & 14 deletions _layouts/runbook.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,8 @@
</head>

<body>
<div class="nav-wrapper">
<nav class="nav">
<div class="nav-brand">
<img src="{{ '/assets/images/contrast-logo.svg' | relative_url }}" alt="Contrast Security"
class="nav-logo">
</div>
<div class="nav-links">
{% for link in site.nav_links %}
<a href="{{ link.url | relative_url }}" {% if page.url==link.url %}class="active" {% endif %}>{{
link.title }}</a>
{% endfor %}
</div>
</nav>
</div>
<!-- Navigation -->
{% include navigation.html %}

<div class="container">
<div class="sidebar">
Expand Down

0 comments on commit fec6374

Please sign in to comment.