Skip to content

Commit

Permalink
Update partials
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang committed Mar 10, 2021
1 parent 69ff527 commit 781115e
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion layouts/_default/archive.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ <h3 class="archive-title">{{ $currentYear }}</h3>
{{- end -}}
<li>
<a class="archive-post-title" href="{{ .Permalink }}">{{ .Title }}</a>
<span class="float-right archive-post-date">{{ .Date.Format (default "Jan 2" $.Site.Params.archive.dateFormat) }}</span>
<span class="float-end archive-post-date">{{ .Date.Format (default "Jan 2" $.Site.Params.archive.dateFormat) }}</span>
</li>
{{- if eq $idx (sub $count 1) -}}
{{/* Last item, close current ul tag */}}
Expand Down
2 changes: 1 addition & 1 deletion layouts/_default/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<input class="form-control rounded-pill ps-5" name="q" type="search" aria-label="Search">
</div>
</form>
<div class="search-stat mb-3 ml-1">
<div class="search-stat mb-3 me-1">
<i id="loadingSpinner" class="fas fa-fw fa-spin fa-spinner"></i>
<span id="searchStat"></span>
</div>
Expand Down
2 changes: 1 addition & 1 deletion layouts/_default/terms.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<h1>{{ .Title }}</h1>
<div>
{{- range .Data.Terms.ByCount -}}
<a href="{{ .Page.Permalink }}" class="post-taxonomy rounded-pill btn mr-3 mb-3" title="{{ .Page.Title }}">
<a href="{{ .Page.Permalink }}" class="post-taxonomy rounded-pill btn me-3 mb-3" title="{{ .Page.Title }}">
{{ .Page.Title }} <span class="badge rounded-pill">{{ .Count }}</span>
</a>
{{- end -}}
Expand Down
4 changes: 2 additions & 2 deletions layouts/partials/header/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-2 mb-2 mb-lg-0">
<ul class="navbar-nav me-1 mb-2 mb-lg-0">
{{- partial "header/search-bar" . -}}
</ul>
{{- $menusPosition := default "right" .Site.Params.menusPosition -}}
<ul class="navbar-nav mb-2 mb-lg-0 mr-2 {{ index $menusPositions $menusPosition }}">
<ul class="navbar-nav me-1 mb-2 mb-lg-0 me-1 {{ index $menusPositions $menusPosition }}">
{{- $currentPage := . -}}
{{- range .Site.Menus.main -}}
{{- $url := absLangURL .URL -}}
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/header/search-bar.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- if ne .Permalink (absLangURL "search/") -}}
<form class="search-bar d-flex me-1" action="{{ absLangURL "search" }}">
<form class="search-bar d-flex ms-1" action="{{ absLangURL "search" }}">
<div class="input-group input-group-sm">
<button class="btn btn-search disabled position-absolute left-0" type="submit"><i class="fas fa-fw fa-search"></i></button>
<input class="form-control rounded-pill" id="searchQuery" name="q" type="search" aria-label="Search">
Expand Down
4 changes: 2 additions & 2 deletions layouts/partials/post/meta.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<div class="post-meta mb-3">
<span class="post-date mr-2">
<span class="post-date me-2">
<i class="fas fa-fw fa-calendar-alt"></i>{{ .Date.Format (default "Jan 2, 2006" $.Site.Params.dateFormat) }}
</span>
<span class="poost-reading-time mr-2">
<span class="poost-reading-time me-2">
<i class="fas fa-fw fa-coffee"></i>{{ i18n "reading_time" . }}
</span>
{{- partial "post/translations" . -}}
Expand Down
4 changes: 2 additions & 2 deletions layouts/partials/post/translations.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{ if and .IsTranslated }}
<div class="post-translations nav-item dropdown mr-2 d-inline-flex">
<div class="post-translations nav-item dropdown me-2 d-inline-flex">
<a class="nav-link p-0" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">
<i class="fas fa-fw fa-language mr-1"></i>{{ $.Language.LanguageName }}
<i class="fas fa-fw fa-language me-1"></i>{{ $.Language.LanguageName }}
</a>
<div class="dropdown-menu">
{{- range .Translations -}}
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/sidebar/taxonomies.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ <h4>
<div>
{{- range $idx, $taxonomy := . -}}
{{- if lt $idx $taxonomyCount -}}
<a href="{{ $taxonomy.Page.Permalink }}" class="post-taxonomy rounded-pill btn btn-sm mr-2 mb-2" title="{{ $taxonomy.Page.Title }}">
<a href="{{ $taxonomy.Page.Permalink }}" class="post-taxonomy rounded-pill btn btn-sm me-2 mb-2" title="{{ $taxonomy.Page.Title }}">
{{ $taxonomy.Page.Title }} <span class="badge rounded-pill">{{ $taxonomy.Count }}</span>
</a>
{{- end -}}
Expand Down

0 comments on commit 781115e

Please sign in to comment.