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 ed2f4ab
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title = "CPE Blog"
languageCode = "en-us"
theme = "hello-4s3ti"
paginate = 10
IsMultiLingual = true

[params]
defaultTheme = "dark"
Expand Down
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
8 changes: 4 additions & 4 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 Down Expand Up @@ -33,11 +33,11 @@
<div class="submenu">
<li class="dropdown">
{{ range first 1 (where $.Translations ".Lang" "!=" ".Lang") }}
<a href="{{ .Permalink }}" class="flag flag-icon flag-icon-{{ index $.Site.Data.langFlags (.Lang) }} flag-icon-squared"></a>
<a href="{{ .Permalink }}" class="flag flag-icon flag-icon-{{ index $.Site.Data.langFlags (.Lang) }} flag-icon-squared">test1</a>
{{ end }}
<div class="dropdown-content">
{{ range after 1 (where $.Translations ".Lang" "!=" ".Lang") }}
<a title="{{ .Language }}" class="flag flag-icon flag-icon-{{ index $.Site.Data.langFlags (.Lang) }} flag-icon-squared" href="{{ .Permalink }}"></a>
{{ range after 1 (where $.Translations ".Lang" "!=" ".Lang").Reverse }}
<a title="{{ .Language }}" class="flag flag-icon flag-icon-{{ index $.Site.Data.langFlags (.Lang) }} flag-icon-squared" href="{{ .Permalink }}">test2</a>
{{ end }}
</div>
</li>
Expand Down

0 comments on commit ed2f4ab

Please sign in to comment.