Skip to content

Commit

Permalink
Merge pull request #98 from putnopvut/multilingual_deprecation
Browse files Browse the repository at this point in the history
hugo: Switch multilingual detection method.
  • Loading branch information
putnopvut authored Dec 2, 2024
2 parents 9cdc4a8 + de186a7 commit c28918e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Make the static files
run: make static

- uses: actions/upload-artifact@v1
- uses: actions/upload-artifact@v4
with:
name: static-website
path: output
4 changes: 2 additions & 2 deletions src/themes/hugo-theme-learn/layouts/partials/menu.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ <h3>{{ if not $disableShortcutsTitle}}{{ T "Shortcuts-Title"}}{{ end }}</h3>
</section>
{{end}}

{{ if or .Site.IsMultiLingual $showvisitedlinks }}
{{ if or hugo.IsMultilingual $showvisitedlinks }}
<section id="prefooter">
<hr/>
<ul>
{{ if and .Site.IsMultiLingual (not .Site.Params.DisableLanguageSwitchingButton)}}
{{ if and hugo.IsMultilingual (not .Site.Params.DisableLanguageSwitchingButton)}}
<li>
<a class="padding">
<i class="fas fa-language fa-fw"></i>
Expand Down
2 changes: 1 addition & 1 deletion src/themes/hugo-theme-learn/layouts/partials/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<script type="text/javascript" src="{{"js/lunr.min.js" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}"></script>
<script type="text/javascript" src="{{"js/auto-complete.js" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}"></script>
<script type="text/javascript">
{{ if .Site.IsMultiLingual }}
{{ if hugo.IsMultilingual }}
var baseurl = "{{.Site.BaseURL}}{{.Site.LanguagePrefix}}";
{{ else }}
var baseurl = "{{.Site.BaseURL}}";
Expand Down

0 comments on commit c28918e

Please sign in to comment.