Skip to content

Commit

Permalink
Fix the next links so that the respect the menu order
Browse files Browse the repository at this point in the history
Somehow "Tags" is always the first link with this theme. The
problem is described and fixed in a "closed" issue

digitalcraftsman/hugo-material-docs#68

Signed-off-by: Ian Allison <[email protected]>
  • Loading branch information
ianabc committed Oct 20, 2017
1 parent c300675 commit 9a5e645
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ baseurl = "http://syzygy-intro1.surge.sh/"
languageCode = "en-us"
title = "Introduction to Syzygy"
theme = "hugo-material-docs"
tags = ["syzygy", "jupyterhub", "material", "documentation"]
metadataformat = "yaml"
canonifyurls = true
# Enable Google Analytics by entering your tracking id
Expand Down
2 changes: 2 additions & 0 deletions content/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ to use these computing tools.
* [Get started](/getting-started/)

![Syzygy Astronomy](/img/syzygy.jpg)
(Image credit: [European Southern
Observatory](https://commons.wikimedia.org/wiki/File:Three_Planets_Dance_Over_La_Silla.jpg))

Syzygy is pronounced like the start of “Sizzle” – sizz eh gee. It means the
alignment of three or more celestial objects. In this book, it represents the
Expand Down
2 changes: 1 addition & 1 deletion content/troubleshooting/index.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
date: 2017-10-19T17:56:50+07:00
title: "Troubleshooting"
weight: 20
weight: 80
---

From time to time you might experience problems with the syzygy.ca service. The
Expand Down
4 changes: 2 additions & 2 deletions themes/hugo-material-docs/layouts/partials/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@
<div class="previous">
</div>

{{ $title := (index (.Site.Pages.ByDate) 1).Title }}
{{ $permalink := (index (.Site.Pages.ByDate) 1).Permalink }}
{{ $title := (index (.Site.Pages.ByWeight) 1).Title }}
{{ $permalink := (index (.Site.Pages.ByWeight) 1).Permalink }}
<div class="next">
<a href="{{ $permalink }}" title="{{ $title }}">
<span class="direction">
Expand Down

0 comments on commit 9a5e645

Please sign in to comment.