diff --git a/exampleSite/config.toml b/exampleSite/config.toml old mode 100755 new mode 100644 index 85c6352..ae7f410 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -50,26 +50,6 @@ googleAnalytics = "" url = "/" weight = 0 -[[menu.main]] - name = "Getting started" - url = "getting-started/" - weight = 10 - -[[menu.main]] - name = "Adding content" - url = "adding-content/" - weight = 20 - -[[menu.main]] - name = "Roadmap" - url = "roadmap/" - weight = 30 - -[[menu.main]] - name = "License" - url = "license/" - weight = 40 - [blackfriday] smartypants = true diff --git a/exampleSite/content/adding-content/index.md b/exampleSite/content/adding-content.md similarity index 95% rename from exampleSite/content/adding-content/index.md rename to exampleSite/content/adding-content.md index 2fce91e..f8a5db4 100644 --- a/exampleSite/content/adding-content/index.md +++ b/exampleSite/content/adding-content.md @@ -1,8 +1,9 @@ ---- -date: 2016-03-09T19:56:50+01:00 -title: Adding content -weight: 20 ---- ++++ +date = 2016-12-25T19:56:50+01:00 +title = "Adding content" +[menu.main] + weight = 20 ++++ ## Hello world diff --git a/exampleSite/content/getting-started/index.md b/exampleSite/content/getting-started.md similarity index 98% rename from exampleSite/content/getting-started/index.md rename to exampleSite/content/getting-started.md index e501c04..cc6bc4f 100644 --- a/exampleSite/content/getting-started/index.md +++ b/exampleSite/content/getting-started.md @@ -1,8 +1,9 @@ ---- -date: 2016-03-09T00:11:02+01:00 -title: Getting started -weight: 10 ---- ++++ +date = 2016-12-26T00:11:02+01:00 +title = "Getting started" +[menu.main] + weight = 10 ++++ ## Installation diff --git a/exampleSite/content/index.md b/exampleSite/content/index.md index a48262e..f0bb276 100644 --- a/exampleSite/content/index.md +++ b/exampleSite/content/index.md @@ -1,5 +1,5 @@ --- -date: 2016-03-08T21:07:13+01:00 +date: 2016-12-27T21:07:13+01:00 title: Material for Hugo type: index weight: 0 @@ -30,7 +30,7 @@ git clone git@github.com:digitalcraftsman/hugo-material-docs.git themes/hugo-mat - Beautiful, readable and very user-friendly design based on Google's material design guidelines, packed in a full responsive template with a well-defined - and [easily customizable color palette]({{< relref "getting-started/index.md#changing-the-color-palette" >}}), great typography, as well as a + and [easily customizable color palette]({{< relref "getting-started.md#changing-the-color-palette" >}}), great typography, as well as a beautiful search interface and footer. - Well-tested and optimized Javascript and CSS including a cross-browser @@ -38,14 +38,14 @@ git clone git@github.com:digitalcraftsman/hugo-material-docs.git themes/hugo-mat the [checkbox hack](http://tutorialzine.com/2015/08/quick-tip-css-only-dropdowns-with-the-checkbox-hack/) with fallbacks, responsive tables that scroll when the screen is too small and well-defined print styles. -- Extra configuration options like a [project logo]({{< relref "getting-started/index.md#adding-a-logo" >}}), links to the authors - [GitHub and Twitter accounts]({{< relref "getting-started/index.md#adding-a-github-and-twitter-account" >}}) and display of the amount of stars the +- Extra configuration options like a [project logo]({{< relref "getting-started.md#adding-a-logo" >}}), links to the authors + [GitHub and Twitter accounts]({{< relref "getting-started.md#adding-a-github-and-twitter-account" >}}) and display of the amount of stars the project has on GitHub. - Web application capability on iOS – when the page is saved to the homescreen, it behaves and looks like a native application. -See the [getting started guide]({{< relref "getting-started/index.md" >}}) for instructions how to get +See the [getting started guide]({{< relref "getting-started.md" >}}) for instructions how to get it up and running. ## Acknowledgements diff --git a/exampleSite/content/license/index.md b/exampleSite/content/license.md similarity index 93% rename from exampleSite/content/license/index.md rename to exampleSite/content/license.md index 2758c65..cb9cc63 100644 --- a/exampleSite/content/license/index.md +++ b/exampleSite/content/license.md @@ -1,8 +1,9 @@ ---- -date: 2016-03-09T20:10:46+01:00 -title: License -weight: 40 ---- ++++ +date = 2016-12-23T20:10:46+01:00 +title = "License" +[menu.main] + weight = 40 ++++ Copyright (c) 2016 Digitalcraftsman
Copyright (c) 2016 Martin Donath @@ -24,4 +25,3 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - diff --git a/exampleSite/content/roadmap/index.md b/exampleSite/content/roadmap.md similarity index 94% rename from exampleSite/content/roadmap/index.md rename to exampleSite/content/roadmap.md index ea6f252..fbf90f9 100644 --- a/exampleSite/content/roadmap/index.md +++ b/exampleSite/content/roadmap.md @@ -1,8 +1,9 @@ ---- -date: 2016-03-09T20:08:11+01:00 -title: Roadmap -weight: 30 ---- ++++ +date = 2016-12-24T20:08:11+01:00 +title = "Roadmap" +[menu.main] + weight = 30 ++++ Quo vadis? The port of the original [Material theme](https://github.com/squidfunk/mkdocs-material) has replicated nearly all of its features. A few are still missing but I've good news: the Hugo community is actively working on this issues. Maybe with the next release of Hugo we can abandon this list. Stay tuned. diff --git a/layouts/_default/__list.html b/layouts/_default/list.html similarity index 100% rename from layouts/_default/__list.html rename to layouts/_default/list.html diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index c001754..810f620 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -50,8 +50,8 @@ - {{ $title := (index (.Site.Pages.ByDate) 1).Title }} - {{ $permalink := (index (.Site.Pages.ByDate) 1).Permalink }} + {{ $title := (index (.Site.Pages.ByWeight) 2).Title }} + {{ $permalink := (index (.Site.Pages.ByWeight) 2).Permalink }}