Skip to content

Commit

Permalink
com
Browse files Browse the repository at this point in the history
  • Loading branch information
gogo2464 committed Oct 13, 2024
1 parent a0f1cb3 commit 9c012b8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion themes/hello-4s3ti/layouts/_default/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ <h1>{{ .Title }}</h1>
<div class="content">{{ .Content }}</div>
{{ end }}

{{ range $paginator.Pages.ByWeight }}
{{ range $paginator.Pages.GroupByDate "2006" }}
<div class="posts-group">
<div class="post-year">{{ .Key }}</div>

Expand Down
2 changes: 1 addition & 1 deletion themes/hello-4s3ti/layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ <h1>{{ .Site.Params.homeTitle }}</h1>
<div class="content">{{ .Content }}</div>
{{ end }}
<div class="posts">
{{ range $paginator.Pages }}
{{ range $paginator.Pages.Reverse }}
<div class="post on-list">
<h1 class="post-title"><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></h1>
<div class="post-meta">
Expand Down
7 changes: 2 additions & 5 deletions themes/hello-4s3ti/layouts/partials/menu.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<nav class="menu">
<ul class="menu__inner">
{{- $currentPage := . -}}
{{ range .Site.Menus.main }}
{{ range .Site.Menus.main.Reverse }}
{{ if .HasChildren }}
<div class="submenu">
<li class="dropdown">
Expand All @@ -28,8 +28,7 @@
{{ end }}
{{ end }}

{{ if .Site.IsMultiLingual }}
{{- if .Site.Params.EnableGlobalLanguageMenu }}

<div class="submenu">
<li class="dropdown">
{{ range first 1 (where $.Translations ".Lang" "!=" ".Lang") }}
Expand All @@ -42,7 +41,5 @@
</div>
</li>
</div>
{{- end }}
{{ end }}
</ul>
</nav>

0 comments on commit 9c012b8

Please sign in to comment.