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

github.com/peaceiris/hugo-theme-iris.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShohei Ueda <30958501+peaceiris@users.noreply.github.com>2021-01-13 14:26:45 +0300
committerGitHub <noreply@github.com>2021-01-13 14:26:45 +0300
commit8a1de982ba31d4ca63f162a1dff3e0a4bf02c849 (patch)
tree6491ee5583789b3628a4221fb9a95bf9798d9c54
parent7c55301cad8e36d8db31164f62b4c730fb164c8b (diff)
feat: Put lang and edit buttons into hero-foot (#272)
-rw-r--r--assets/theme/scss/bulma.scss4
-rw-r--r--layouts/_default/baseof.html3
-rw-r--r--layouts/partials/check-tools.html4
-rw-r--r--layouts/partials/header.html10
4 files changed, 14 insertions, 7 deletions
diff --git a/assets/theme/scss/bulma.scss b/assets/theme/scss/bulma.scss
index b87bd0bb..945b6d30 100644
--- a/assets/theme/scss/bulma.scss
+++ b/assets/theme/scss/bulma.scss
@@ -2,6 +2,10 @@
@import "../../mod/bulma/utilities/_all.sass";
@import "../../mod/bulma/base/_all.sass";
+
+// ====================
+// helpers
+// ====================
@import "../../mod/bulma/helpers/float.sass";
@import "../../mod/bulma/helpers/color.sass";
@import "../../mod/bulma/helpers/typography.sass";
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 6e643514..9c004987 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -20,9 +20,6 @@
<section class="hero is-dark is-large">
<div class="columns">
<div class="column is-8 is-offset-2">
- {{ partial "check-tools" . }}
- {{ partial "lang-button" . }}
- {{ partial "edit-button" . }}
{{ block "main" . }}{{ end }}
</div>
</div>
diff --git a/layouts/partials/check-tools.html b/layouts/partials/check-tools.html
index 58a0bfa7..06dd6a88 100644
--- a/layouts/partials/check-tools.html
+++ b/layouts/partials/check-tools.html
@@ -5,8 +5,6 @@
{{ $targetURL = delimit (slice $.Site.Params.stagingURL $targetRelURL) "" }}
{{ end }}
-<span class="tag is-warning is-medium">Development</span>
-
<div class="dropdown" id="checkTools">
<div class="dropdown-trigger">
<button class="button is-warning" aria-haspopup="true" aria-controls="dropdown-menu" onclick="toggleDropdownCheckTools();">
@@ -75,6 +73,4 @@
}
</script>
-<br>
-
{{ end }}
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 651ed08f..8ec06977 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -10,6 +10,7 @@
<header>
<section class="hero is-dark is-bold">
+ <!-- Hero content: will be in the middle -->
<div class="hero-body columns is-desktop">
<div class="column is-8 is-offset-2">
<h1 class="title is-spaced">
@@ -30,5 +31,14 @@
<p class="has-text-grey-light is-pulled-right">{{ i18n "lastmod" . }}: {{ .Lastmod.Format "2006-01-02" }}</p>
</div>
</div>
+
+ <!-- Hero footer: will stick at the bottom -->
+ <div class="hero-foot columns is-desktop">
+ <div class="column is-8 is-offset-2">
+ {{ partial "lang-button" . }}
+ {{ partial "edit-button" . }}
+ {{ partial "check-tools" . }}
+ </div>
+ </div>
</section>
</header>