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

github.com/geschke/hugo-tikva.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalf Geschke <ralf@kuerbis.org>2018-11-06 22:24:37 +0300
committerRalf Geschke <ralf@kuerbis.org>2018-11-06 22:24:37 +0300
commitd275cd86bdadf950ef9b1a2270087869395ebb6b (patch)
tree249cc54138ebe6664b0d442bfc58d00888e1fecc
parente2aaa34907df9afbf9fb911a6e601b57478e4f2a (diff)
Add footer and subfooter content from their named folders
-rw-r--r--README.md2
-rw-r--r--layouts/_default/baseof.html9
-rw-r--r--layouts/partials/footer_column.html2
-rw-r--r--layouts/partials/footer_container.html10
-rw-r--r--layouts/partials/header.html6
-rw-r--r--layouts/partials/subfooter_container.html12
-rw-r--r--static/css/custom.css80
-rw-r--r--theme.toml2
8 files changed, 70 insertions, 53 deletions
diff --git a/README.md b/README.md
index 55c6a8d..e02a85a 100644
--- a/README.md
+++ b/README.md
@@ -8,6 +8,8 @@ It's also possible to edit some color options by config option.
## Demo
+### todo...
+
You can find a demo [here](https://themes.gohugo.io/theme/hugo-tikva/).
## Screenshots
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 09e9d8a..aa0a673 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -4,8 +4,13 @@
<body>
{{- partial "header.html" . -}}
- <div id="content">
- {{- block "main" . }}{{- end }}
+ <div class="container">
+ <div class="row">
+ <div class="col-md" id="content">
+ {{- block "main" . }}{{- end }}
+ </div>
+
+ </div>
</div>
{{ block "footer" . }}
diff --git a/layouts/partials/footer_column.html b/layouts/partials/footer_column.html
index eb2060d..570d790 100644
--- a/layouts/partials/footer_column.html
+++ b/layouts/partials/footer_column.html
@@ -1,3 +1,3 @@
<div class="col">
- Test output
+ {{ .Content }}
</div> \ No newline at end of file
diff --git a/layouts/partials/footer_container.html b/layouts/partials/footer_container.html
index aec387a..5b2498e 100644
--- a/layouts/partials/footer_container.html
+++ b/layouts/partials/footer_container.html
@@ -4,10 +4,12 @@
<div class="row">
- {{ partial "footer_column.html" . }}
- {{ partial "footer_column.html" . }}
- {{ partial "footer_column.html" . }}
-
+
+ {{ range first .Site.Params.Theme.Footer.NumberColumns (where .Site.Pages "Section" "footer") }}
+
+ {{ partial "footer_column.html" . }}
+ {{ end }}
+
</div>
</footer>
</div>
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 1aeeae2..fa03063 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -23,13 +23,15 @@
{{ end }}
</div>
</li>
+ <span class="mx-2"></span>
{{ else }}
- <li>
+ <li class="nav-item">
<a class="nav-link" href="{{ .URL }}">
{{ .Pre }}
- <span>{{ .Name }}</span>
+ {{ .Name }}
</a>
</li>
+ <span class="mx-2"></span>
{{ end }}
{{ end }}
diff --git a/layouts/partials/subfooter_container.html b/layouts/partials/subfooter_container.html
index 028a8ff..a6ff2ed 100644
--- a/layouts/partials/subfooter_container.html
+++ b/layouts/partials/subfooter_container.html
@@ -1,15 +1,15 @@
-{{ .Site.Params.Tikva.Subfooter.Content }}
-{{ .Site.Params.Meta.Description }}
-{{ .Site.Params.BootstrapTheme }}
-
-{{ if .Site.Params.Tikva.Subfooter.Enabled }}
+{{ if .Site.Params.Theme.Subfooter.Enabled }}
<div class="subfooter-container" style="">
<div class="container">
<div class="footer">
<div class="row wrapper padding">
<div class="col-xs-12 col-md-12">
- {{ .Site.Params.Tikva.Subfooter.Content }}
+ {{ range first 1 (where .Site.Pages "Section" "subfooter") }}
+
+ {{ .Content }}
+ {{ end }}
+
</div>
</div>
</div>
diff --git a/static/css/custom.css b/static/css/custom.css
index c64f87b..ff019f0 100644
--- a/static/css/custom.css
+++ b/static/css/custom.css
@@ -1,83 +1,87 @@
+/* Move down content because we have a fixed navbar that is 50px tall */
+body {
+ padding-top: 60px;
+}
-
-/* Menu Settings */
+/* Menu Settings - later... */
.main-nav ul {
- text-align: center;
- letter-spacing: -1em;
- margin: 0;
- padding: 0;
+ text-align: center;
+ letter-spacing: -1em;
+ margin: 0;
+ padding: 0;
}
.main-nav ul li {
- display: inline-block;
- letter-spacing: normal;
+ display: inline-block;
+ letter-spacing: normal;
}
.main-nav ul li a {
- position: relative;
- display: block;
- line-height: 45px;
- color: #fff;
- padding: 0 20px;
- white-space: nowrap;
+ position: relative;
+ display: block;
+ line-height: 45px;
+ color: #fff;
+ padding: 0 20px;
+ white-space: nowrap;
}
.main-nav > ul > li > a {
- border-radius: 2px;
+ border-radius: 2px;
}
/*Active dropdown nav item */
.main-nav ul li:hover > a {
- background-color: #175E91;
+ background-color: #175e91;
}
/* Selected Dropdown nav item */
.main-nav ul li.selected > a {
- background-color: #fff;
- color: #175E91;
+ background-color: #fff;
+ color: #175e91;
}
-
/* Dropdown CSS */
-.main-nav ul li {position: relative;}
+.main-nav ul li {
+ position: relative;
+}
.main-nav ul li ul {
- position: absolute;
- background-color: #1F8DD6;
- min-width: 100%;
- text-align: left;
- z-index: 999;
+ position: absolute;
+ background-color: #1f8dd6;
+ min-width: 100%;
+ text-align: left;
+ z-index: 999;
- display: none;
+ display: none;
}
.main-nav ul li ul li {
- display: block;
+ display: block;
}
/* Dropdown CSS */
.main-nav ul li ul ul {
- left: 100%;
- top: 0;
+ left: 100%;
+ top: 0;
}
/* Active on Hover */
.main-nav li:hover > ul {
- display: block;
+ display: block;
}
/* Child Indicator */
.main-nav .has-children > a {
- padding-right: 30px;
+ padding-right: 30px;
}
.main-nav .has-children > a:after {
- font-family: FontAwesome;
- content: '\f107';
- position: absolute;
- display: inline-block;
- right: 8px;
- top: 0;
+ font-family: FontAwesome;
+ content: "\f107";
+ position: absolute;
+ display: inline-block;
+ right: 8px;
+ top: 0;
}
.main-nav .has-children .has-children > a:after {
- content: '\f105';
+ content: "\f105";
}
diff --git a/theme.toml b/theme.toml
index 4b1c473..aa08033 100644
--- a/theme.toml
+++ b/theme.toml
@@ -19,3 +19,5 @@ min_version = "0.41"
name = "Tikva theme for Grav CMS"
homepage = "https://www.kuerbis.org/tikva-theme-for-grav-cms/"
repo = "https://github.com/geschke/grav-theme-tikva"
+
+# cookie consent stuff, maybe use https://cookieconsent.insites.com/download/