Skip to content

Commit

Permalink
feat: Add lastmod to header (#268)
Browse files Browse the repository at this point in the history
  • Loading branch information
peaceiris authored Jan 10, 2021
1 parent 8f31255 commit fbcf863
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
2 changes: 2 additions & 0 deletions assets/theme/scss/bulma.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

@import "../../mod/bulma/utilities/_all.sass";
@import "../../mod/bulma/base/_all.sass";
@import "../../mod/bulma/helpers/float.sass";
@import "../../mod/bulma/helpers/color.sass";

$tablet: 760px;
$dimensions: 16 24 32 48 64 96 128 180 256;
Expand Down
1 change: 0 additions & 1 deletion layouts/_default/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ <h2 class="title">{{ $title }}</h2>
{{ if .Params.math }}
{{ $math = true }}
{{ end }}
<!-- TODO: is-pulled-right does not work -->
<p>{{ .Date.Format "2006-01-02" }}{{ partial "badges/slide" . }}</p>
</div>
</div>
Expand Down
3 changes: 1 addition & 2 deletions layouts/partials/edit-button.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{{ with $.Site.Params.repo }}
<!-- TODO: is-pulled-right does not work -->
<a class="button is-pulled-right normal-link" href="{{ .URL }}/edit/{{ .branch }}/{{ .contentDir }}/{{ $.Lang }}/{{ $.File.Path }}">Edit</a>
<a class="button is-pulled-right normal-link" href="{{ .URL }}/edit/{{ .branch }}/{{ .contentDir }}/{{ $.Lang }}/{{ $.File.Path }}">Edit</a>
{{ end }}
1 change: 1 addition & 0 deletions layouts/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ <h1 class="title is-spaced">
{{ end }}
</p>
{{ partial "breadcrumb" . }}
<p class="has-text-grey-light is-pulled-right">Lastmod: {{ .Lastmod.Format "2006-01-02" }}</p>
</div>
</div>
</section>
Expand Down

Large diffs are not rendered by default.

0 comments on commit fbcf863

Please sign in to comment.