Skip to content
This repository has been archived by the owner on Jul 8, 2021. It is now read-only.

Theme adaptation to hugo 0.18 #53

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 0 additions & 20 deletions exampleSite/config.toml
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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

Expand Down
Original file line number Diff line number Diff line change
@@ -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

Expand Down
10 changes: 5 additions & 5 deletions exampleSite/content/index.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -30,22 +30,22 @@ git clone [email protected]: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
fixed/sticky header, a drawer that even works without Javascript using
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
Expand Down
Original file line number Diff line number Diff line change
@@ -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 <[email protected]><br>
Copyright (c) 2016 Martin Donath <[email protected]>
Expand All @@ -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.

Original file line number Diff line number Diff line change
@@ -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.

Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions 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) 2).Title }}
{{ $permalink := (index (.Site.Pages.ByWeight) 2).Permalink }}
<div class="next">
<a href="{{ $permalink }}" title="{{ $title }}">
<span class="direction">
Expand Down