Skip to content

Commit 3c9a66f

Browse files
committed
Change the default menu and how previous/next work
1 parent fe7d7a1 commit 3c9a66f

33 files changed

+39
-44
lines changed

404.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: "Page Not Found"
33
search: exclude
4+
sidebar: main_sidebar
45
---
56

67
Sorry, but the page you were trying to view does not exist. Try searching for it or looking at the URL to see if it looks correct.

_config.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ defaults:
6666
layout: "page"
6767
comments: true
6868
search: true
69-
sidebar: docs_sidebar
69+
sidebar: main_sidebar
7070
-
7171
scope:
7272
path: ""
@@ -85,7 +85,7 @@ defaults:
8585
layout: "post"
8686
comments: true
8787
search: true
88-
sidebar: docs_sidebar
88+
sidebar: main_sidebar
8989

9090

9191
# these are defaults used for the frontmatter for these file types

_layouts/page.html

+5-12
Original file line numberDiff line numberDiff line change
@@ -43,30 +43,23 @@ <h1 class="post-title-main">{{ page.title }}</h1>
4343
<script>
4444
$(document).ready(function(){
4545

46-
var next = $("li.active").next().last().find('a').attr('href');
47-
var previous = $("li.active").prev().last().find('a').attr('href');
46+
var next = "{{ page.next }}";
47+
var previous = "{{ page.previous }}";
4848

4949
// NEXT BUTTON
50-
if (typeof next == 'undefined'){
50+
if (next == ''){
5151
console.log("disabling next button")
5252
$(".next-button").addClass("hidden")
53-
} else if (next == "#") {
54-
next = $("li.active").next().find("li").first().find('a').attr('href');
55-
$(".next-button").closest('a').attr('href', next)
56-
$(".next-button").removeClass('hidden')
5753
} else {
5854
$(".next-button").closest('a').attr('href', next)
55+
//$(".next-button").attr('href', next);
5956
$(".next-button").removeClass('hidden')
6057
}
6158

6259
// PREVIOUS BUTTON
63-
if (typeof previous == 'undefined'){
60+
if (previous == ''){
6461
console.log("disabling previous button")
6562
$(".previous-button").addClass("hidden")
66-
} else if (previous == "#") {
67-
previous = $("li.active").prev().find("li").last().find('a').attr('href')
68-
$(".previous-button").closest('a').attr('href', previous)
69-
$(".previous-button").removeClass('hidden')
7063
} else {
7164
$(".previous-button").closest('a').attr('href', previous)
7265
$(".previous-button").removeClass('hidden')

pages/docs/contributing/contributing-docs.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Contributing to Documentation
3-
sidebar: docs_sidebar
3+
sidebar: main_sidebar
44
permalink: contributing-docs
55
folder: releases
66
---

pages/docs/contributing/contributing-singularity.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Contributing to Singularity
3-
sidebar: docs_sidebar
3+
sidebar: main_sidebar
44
permalink: contributing-singularity
55
folder: docs
66
---

pages/docs/getting-started/bootstrap-image.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Getting Started with Bootstrap
3-
sidebar: docs_sidebar
3+
sidebar: main_sidebar
44
permalink: bootstrap-image
55
folder: docs
66
---

pages/docs/getting-started/create-an-image.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Create an Image
3-
sidebar: docs_sidebar
3+
sidebar: main_sidebar
44
permalink: create-image
55
folder: docs
66
---

pages/docs/getting-started/docker.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Singularity and Docker
3-
sidebar: docs_sidebar
3+
sidebar: main_sidebar
44
permalink: docker
55
folder: docs
66
---

pages/docs/getting-started/image-environment.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Image Environment
3-
sidebar: docs_sidebar
3+
sidebar: main_sidebar
44
permalink: image-environment
55
folder: docs
66
---

pages/docs/install/install-linux.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Install on Linux
3-
sidebar: docs_sidebar
3+
sidebar: main_sidebar
44
permalink: install-linux
55
folder: docs
66
---

pages/docs/install/install-mac.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Running Singularity with Vagrant (Mac)
3-
sidebar: docs_sidebar
3+
sidebar: main_sidebar
44
permalink: install-mac
55
folder: docs
66
---

pages/docs/install/install-vagrant.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Running Singularity with Vagrant
3-
sidebar: docs_sidebar
3+
sidebar: main_sidebar
44
permalink: install-vagrant
55
folder: docs
66
---

pages/docs/install/install-windows.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Running Singularity with Vagrant (Windows)
3-
sidebar: docs_sidebar
3+
sidebar: main_sidebar
44
permalink: install-windows
55
folder: docs
66
---

pages/docs/overview/about.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Introduction
3-
sidebar: docs_sidebar
3+
sidebar: main_sidebar
44
permalink: about
55
folder: docs
66
---

pages/docs/overview/faq.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Frequently Asked Questions
3-
sidebar: docs_sidebar
3+
sidebar: main_sidebar
44
permalink: faq
55
folder: docs
66
---

pages/docs/overview/start.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
---
22
title: Quick Start
33
sidebar: home_sidebar
4-
permalink: start
4+
permalink: quickstart
5+
next: hello
56
folder: docs
67
---
78

pages/docs/overview/support.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Support
3-
sidebar: docs_sidebar
3+
sidebar: main_sidebar
44
permalink: support
55
folder: docs
66
---

pages/docs/singularity/advanced-config.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: The Singularity Configuration File
3-
sidebar: docs_sidebar
3+
sidebar: main_sidebar
44
permalink: docs-config
55
folder: docs
66
---

pages/docs/singularity/docs-bootstrap.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Singularity Bootstrap
3-
sidebar: docs_sidebar
3+
sidebar: main_sidebar
44
permalink: docs-bootstrap
55
toc: false
66
folder: docs

pages/docs/singularity/docs-exec.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Singularity Exec
3-
sidebar: docs_sidebar
3+
sidebar: main_sidebar
44
permalink: docs-exec
55
folder: docs
66
toc: false

pages/docs/singularity/docs-export.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Singularity Export
3-
sidebar: docs_sidebar
3+
sidebar: main_sidebar
44
permalink: docs-export
55
toc: false
66
folder: docs

pages/docs/singularity/docs-hpc.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Singularity on HPC
3-
sidebar: docs_sidebar
3+
sidebar: main_sidebar
44
permalink: docs-hpc
55
folder: docs
66
toc: false

pages/docs/singularity/docs-import.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Singularity Import
3-
sidebar: docs_sidebar
3+
sidebar: main_sidebar
44
permalink: docs-import
55
toc: false
66
folder: docs

pages/docs/singularity/docs-license.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: License
3-
sidebar: docs_sidebar
3+
sidebar: main_sidebar
44
permalink: docs-license
55
folder: docs
66
toc: false

pages/docs/singularity/docs-overview.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Docs Overview
3-
sidebar: docs_sidebar
3+
sidebar: main_sidebar
44
permalink: docs-overview
55
folder: docs
66
---

pages/docs/singularity/docs-run.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Singularity Run
3-
sidebar: docs_sidebar
3+
sidebar: main_sidebar
44
permalink: docs-run
55
folder: docs
66
toc: false

pages/docs/singularity/docs-security.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Security
3-
sidebar: docs_sidebar
3+
sidebar: main_sidebar
44
permalink: docs-security
55
folder: docs
66
---

pages/docs/singularity/docs-shell.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Singularity Shell
3-
sidebar: docs_sidebar
3+
sidebar: main_sidebar
44
permalink: docs-shell
55
folder: docs
66
---

pages/docs/singularity/docs-usage.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Basic Command Usage
3-
sidebar: docs_sidebar
3+
sidebar: main_sidebar
44
permalink: docs-usage
55
folder: docs
66
---

pages/news/news.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: News
3-
sidebar: docs_sidebar
3+
sidebar: main_sidebar
44
keywords: news, blog, updates, release notes, announcements
55
permalink: blog
66
toc: false

pages/news/news_archive.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: News
3-
sidebar: docs_sidebar
3+
sidebar: main_sidebar
44
keywords: news, blog, updates, release notes, announcements
55
permalink: news_archive
66
toc: false

pages/recipes/recipes.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Recipes
3-
sidebar: docs_sidebar
3+
sidebar: main_sidebar
44
permalink: tutorials
55
folder: recipes
66
toc: false

pages/releases/releases.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Releases
3-
sidebar: docs_sidebar
3+
sidebar: main_sidebar
44
permalink: all-releases
55
keywords: news, blog, updates, release notes, announcements
66
folder: releases

0 commit comments

Comments
 (0)