Skip to content

Commit

Permalink
Add some themes (plural)
Browse files Browse the repository at this point in the history
  • Loading branch information
bep committed Jun 10, 2018
1 parent 3e151bb commit e9f9a30
Show file tree
Hide file tree
Showing 11 changed files with 64 additions and 0 deletions.
8 changes: 8 additions & 0 deletions config.toml
@@ -1,4 +1,9 @@
baseURL = "http://hugotest.bep.is"

# A theme consists of any number of components, with presedence from left (the project) to right. Also note that it is also possible for a
# theme to define its own dependencies.
theme = ["mt1", "mt2"]

languageCode = "en-us"
title = "Hugo Test Site"
paginate = 4
Expand All @@ -20,6 +25,9 @@ quality = 75

anchor = "smart"

[params]
p1 = "Params from project."

[permalinks]
section3 = "/:sections/:year/:month/:slug/"

Expand Down
11 changes: 11 additions & 0 deletions content/scodes/regular.md
Expand Up @@ -2,6 +2,17 @@
title: A regular file in the scodes section
---


{{< mt1 >}}

{{< mt1_2 >}}


{{< mt2 >}}


{{< mt3 >}}

Content.

{{< current-page >}}
Expand Down
1 change: 1 addition & 0 deletions themes/mt1/layouts/shortcodes/mt1.html
@@ -0,0 +1 @@
<h3>MT1 shortcode in mt1 theme!</h3>
1 change: 1 addition & 0 deletions themes/mt1/layouts/shortcodes/mt1_2.html
@@ -0,0 +1 @@
<h3>MT1_2 shortcode in mt1 theme</h3>
14 changes: 14 additions & 0 deletions themes/mt2/archetypes/mt2.md
@@ -0,0 +1,14 @@
---
title: "{{ replace .TranslationBaseName "-" " " | title }}"
date: {{ .Date }}
description: ""
categories: []
keywords: []
slug: ""
aliases: []
toc: false
draft: true
---


This is from theme.
8 changes: 8 additions & 0 deletions themes/mt2/config.toml
@@ -0,0 +1,8 @@

# So, a theme can also be themed, but note that this will currently not be supported by the Hugo theme site.
# We will eventually get something ala `hugo get`, so we can use an URL scheme to import themes etc.
# Currently, the name used below must match /yoursite/themes/mt3
theme = ["mt3"]

[params]
mt2p = "Params from theme mt2."
1 change: 1 addition & 0 deletions themes/mt2/layouts/shortcodes/mt1.html
@@ -0,0 +1 @@
<b>MT1 shortcode in mt2 theme</b>
1 change: 1 addition & 0 deletions themes/mt2/layouts/shortcodes/mt2.html
@@ -0,0 +1 @@
<h3>MT2 shortcode in mt2 theme</h3>
14 changes: 14 additions & 0 deletions themes/mt3/archetypes/mt3.md
@@ -0,0 +1,14 @@
---
title: "{{ replace .TranslationBaseName "-" " " | title }}"
date: {{ .Date }}
description: ""
categories: []
keywords: []
slug: ""
aliases: []
toc: false
draft: true
---


This is from theme mt3.
4 changes: 4 additions & 0 deletions themes/mt3/config.toml
@@ -0,0 +1,4 @@


[params]
mt3p = "Params from theme mt3."
1 change: 1 addition & 0 deletions themes/mt3/layouts/shortcodes/mt3.html
@@ -0,0 +1 @@
<h3>MT3 shortcode in mt3 theme</h3>

0 comments on commit e9f9a30

Please sign in to comment.