Skip to content

Commit

Permalink
feat: Put lang and edit buttons into hero-foot (#272)
Browse files Browse the repository at this point in the history
  • Loading branch information
peaceiris authored Jan 13, 2021
1 parent 7c55301 commit 8a1de98
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 7 deletions.
4 changes: 4 additions & 0 deletions assets/theme/scss/bulma.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
3 changes: 0 additions & 3 deletions layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
4 changes: 0 additions & 4 deletions layouts/partials/check-tools.html
Original file line number Diff line number Diff line change
Expand Up @@ -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();">
Expand Down Expand Up @@ -75,6 +73,4 @@
}
</script>

<br>

{{ end }}
10 changes: 10 additions & 0 deletions layouts/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand All @@ -30,5 +31,14 @@ <h1 class="title is-spaced">
<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>

1 comment on commit 8a1de98

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.