Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/spookey/slick.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrieder Griesshammer <frieder.griesshammer@der-beweis.de>2018-12-18 16:28:10 +0300
committerFrieder Griesshammer <frieder.griesshammer@der-beweis.de>2018-12-18 16:28:10 +0300
commit2c7756e6770d974ce83b0bf491ead6dff2ffb102 (patch)
tree3fd571b1a0dd1c1595b0aba1a23a5f581a478418 /exampleSite
parent0a7f5f798196d0e85d91bafac391fe069ff4e546 (diff)
Replace Page header with a menu on two lines
It is fully customizable (via config or post metadata) Insert examples into config file Change all example content to reflect changes Simplify media breakpoints (drops them in custom.css completely) Index page now lists all types Revert back to posts instead of post datatype Add some failsafe css helpers
Diffstat (limited to 'exampleSite')
-rw-r--r--exampleSite/config.toml64
-rw-r--r--exampleSite/content/about.md5
-rw-r--r--exampleSite/content/posts/basic-elements.md (renamed from exampleSite/content/post/basic-elements.md)2
-rw-r--r--exampleSite/content/posts/creating-a-new-theme.md (renamed from exampleSite/content/post/creating-a-new-theme.md)0
-rw-r--r--exampleSite/content/posts/goisforlovers.md (renamed from exampleSite/content/post/goisforlovers.md)1
-rw-r--r--exampleSite/content/posts/hugoisforlovers.md (renamed from exampleSite/content/post/hugoisforlovers.md)1
-rw-r--r--exampleSite/content/posts/migrate-from-jekyll.md (renamed from exampleSite/content/post/migrate-from-jekyll.md)4
7 files changed, 51 insertions, 26 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index c3eb477..65b3646 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -12,17 +12,18 @@ copyright = "Some Author — All rights reserved."
pygmentsCodeFencesGuessSyntax = true
pygmentsStyle = "manni"
+canonifyurls = "true"
[params]
+ # Site subtitle
+ subtitle = "Just another site"
+
# Site description
description = "Example site for Slick Temple Hugo theme"
# Favicon file (relative to baseURL)
favicon = "img/favicon.png"
- # Enables the topmenu, which pulls from categories
- topmenu = "categories"
-
# Enables custom date format (optional, the default is MM-DD-YYYY)
# For reference to date and time templating, see:
# https://gohugo.io/functions/format/#hugo-date-and-time-templating-reference
@@ -46,17 +47,46 @@ pygmentsStyle = "manni"
email = "some@email.com"
-[[menu.footer]]
-name = "GitHub"
-url = "https://github.com/someauthor"
-weight = 1
-
-[[menu.footer]]
-name = "Medium"
-url = "https://medium.com/@someauthor"
-weight = 3
-
-[[menu.footer]]
-name = "Twitter"
-url = "https://twitter.com/someauthor"
-weight = 2
+[menu]
+
+ # Configure main menu entries (header)
+ # Currently set to list all taxonomies and posts
+ [[menu.main]]
+ identifier = "post"
+ name = "Posts"
+ url = "/posts/"
+ weight = 1
+
+ [[menu.main]]
+ identifier = "categories"
+ name = "Categories"
+ url = "/categories/"
+ weight = 2
+
+ [[menu.main]]
+ identifier = "tags"
+ name = "Tags"
+ url = "/tags/"
+ weight = 2
+
+ [[menu.main]]
+ identifier = "series"
+ name = "Series"
+ url = "/series/"
+ weight = 2
+
+ # Add some footer links to your likings
+ [[menu.footer]]
+ name = "GitHub"
+ url = "https://github.com/someauthor"
+ weight = 1
+
+ [[menu.footer]]
+ name = "Medium"
+ url = "https://medium.com/@someauthor"
+ weight = 3
+
+ [[menu.footer]]
+ name = "Twitter"
+ url = "https://twitter.com/someauthor"
+ weight = 2
diff --git a/exampleSite/content/about.md b/exampleSite/content/about.md
index c2db0eb..0bccdd9 100644
--- a/exampleSite/content/about.md
+++ b/exampleSite/content/about.md
@@ -5,7 +5,10 @@ description: Hugo is a static site engine written in Go.
date: 2017-11-23T23:42:05+01:00
type: page
draft: false
-menu: main
+menu:
+ main:
+ name: About
+ weight: 999
categories: null
tags:
- hugo
diff --git a/exampleSite/content/post/basic-elements.md b/exampleSite/content/posts/basic-elements.md
index 5c1a18c..15a887d 100644
--- a/exampleSite/content/post/basic-elements.md
+++ b/exampleSite/content/posts/basic-elements.md
@@ -2,9 +2,7 @@
title: Basic HTML Elements
description: Example test article that contains basic HTML elements for text formatting on the Web.
date: 2018-04-16
-type: post
draft: false
-menu: main
categories:
- Development
tags:
diff --git a/exampleSite/content/post/creating-a-new-theme.md b/exampleSite/content/posts/creating-a-new-theme.md
index adc775f..adc775f 100644
--- a/exampleSite/content/post/creating-a-new-theme.md
+++ b/exampleSite/content/posts/creating-a-new-theme.md
diff --git a/exampleSite/content/post/goisforlovers.md b/exampleSite/content/posts/goisforlovers.md
index 59d01d7..e73ac47 100644
--- a/exampleSite/content/post/goisforlovers.md
+++ b/exampleSite/content/posts/goisforlovers.md
@@ -1,7 +1,6 @@
---
title: "(Hu)go Template Primer"
date: 2014-04-02
-menu: main
categories:
- Development
- golang
diff --git a/exampleSite/content/post/hugoisforlovers.md b/exampleSite/content/posts/hugoisforlovers.md
index 9680981..4139f38 100644
--- a/exampleSite/content/post/hugoisforlovers.md
+++ b/exampleSite/content/posts/hugoisforlovers.md
@@ -1,7 +1,6 @@
---
title: Getting Started with Hugo
date: 2014-04-02T23:42:05+01:00
-menu: main
categories:
- Development
- golang
diff --git a/exampleSite/content/post/migrate-from-jekyll.md b/exampleSite/content/posts/migrate-from-jekyll.md
index 396af87..35167e8 100644
--- a/exampleSite/content/post/migrate-from-jekyll.md
+++ b/exampleSite/content/posts/migrate-from-jekyll.md
@@ -1,10 +1,6 @@
---
title: Migrate to Hugo from Jekyll
date: 2014-03-10
-menu:
- main:
- name: Jekyll migration
- weight: 10
---
## Move static content to `static`