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

github.com/mattstratton/castanet.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md1
-rw-r--r--exampleSite/config.toml1
-rw-r--r--layouts/partials/row.html32
3 files changed, 30 insertions, 4 deletions
diff --git a/README.md b/README.md
index 463183a..f04aa1f 100644
--- a/README.md
+++ b/README.md
@@ -43,6 +43,7 @@ You will need to add a handful of configuration items to your `config.toml` file
- `[params]`
- `site_theme` - the color scheme for the overall site. Currently the two options are `orange` and `blue`. Optional. Example: `"blue"`. Defaults to the `orange` theme if not set.
- `site_layout` - the layout to use. The optiions are `grid` or `row`. Optional. Example `"grid"`.
+ - `enable_jumbo` - When using the `row` layout, will set a jumbotron at the top intead of the sidebar. Optional. Can be "true" or "false".
- `custom_css` - array of custom CSS files for over-riding theme settings or adding your own classes. Example: `["custom.css", "other_custom.css"]`. These files should be put into your `static` directory (not the `static` directory of the theme).
- `about_logo` - the logo (250px x 250px) you would like to appear on your About page. Optional. If not set, this will default to your iTunes image.
- `copyright_notice` - Your copyright information for the footer of the page. Can contain Markdown. Example: `"Copyright 2016 [Matt Stratton](https://www.mattstrattion.io)"`
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 0870c74..9d639f6 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -41,6 +41,7 @@ themesdir = "../.."
[params]
site_theme = "orange"
site_layout = "row"
+enable_jumbo = "false"
# about_logo = "/img/hugocast.png"
copyright_notice = "Copyright 2016 [Matt Stratton](https://www.mattstrattion.io)"
itunes_subscribe = "http://itunes.apple.com/us/podcast/arrested-devops/id773888088?mt=2&uo=4&at=11lsCi"
diff --git a/layouts/partials/row.html b/layouts/partials/row.html
index 0d9c64b..42c37c8 100644
--- a/layouts/partials/row.html
+++ b/layouts/partials/row.html
@@ -1,4 +1,10 @@
+{{ if isset .Site.Params "enable_jumbo" }}
+ {{ if eq .Site.Params.enable_jumbo "true" }}
+ {{- partial "jumbotron.html" . }}
+ {{ end }}
+{{ end }}
<div class="row hero_container">
+
<div class="col-md-12">
<h2>
Latest Episode
@@ -72,7 +78,15 @@
{{ $list := (where .Data.Pages "Type" "episode") }}
{{ $len := (len $list)}}
<div class="row main_container">
-<div class="col-md-8">
+{{ with .Site.Params.enable_jumbo }}
+ {{ if eq . "true" }}
+ <div class = "col">
+ {{ else }}
+ <div class="col-md-8">
+ {{ end }}
+{{ else }}
+ <div class="col-md-8">
+{{ end }}
{{ if gt $len 1 }}
{{ range $paginator.Pages }}
<div class = "row homepage_episode_row">
@@ -112,9 +126,19 @@
{{ end }}
{{ end }}
</div>
-<div class="col-md-4 sidebar_col">
- {{ partial "sidebar.html" . }}
-</div>
+
+{{ if isset .Site.Params "enable_jumbo" }}
+ {{ if ne .Site.Params.enable_jumbo "true" }}
+ <div class="col-md-4 sidebar_col">
+ {{ partial "sidebar.html" . }}
+ </div>
+ {{ else }}
+ <div class="col-md-4 sidebar_col">
+ {{ partial "sidebar.html" . }}
+ </div>
+ {{ end }}
+{{ end }}
+
</div>
<div class="row">
<div class="col-md-12">