Skip to content

Commit

Permalink
Merge pull request #80 from lomion0815/multilang-2020-11-27
Browse files Browse the repository at this point in the history
Some multilanguage support improvements
  • Loading branch information
matsuyoshi30 authored Dec 10, 2020
2 parents a158561 + ac399da commit 682195e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{{ if .Params.tags }}
<div class="blog-tags">
{{ range .Params.tags }}
<a href="{{ $.Site.BaseURL }}tags/{{ . | urlize }}{{ if $.Site.Params.uglyurls }}.html{{else}}/{{ end }}">{{ . }}</a
<a href="{{ "" | absLangURL }}tags/{{ . | urlize }}{{ if $.Site.Params.uglyurls }}.html{{else}}/{{ end }}">{{ . }}</a
>&nbsp;
{{ end }}
</div>
Expand Down
10 changes: 9 additions & 1 deletion layouts/partials/footer.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
<footer>
{{ partial "social.html" . }}

{{ if .IsTranslated }}
<p>
{{ range .Translations }}
<a href="{{ .Permalink }}" name="{{ .Language.LanguageName }}">{{ .Language.LanguageName }}</a>
{{ end }}
</p>
{{ end }}
<div class="container">
<p class="credits copyright">
<a href="{{ .Site.BaseURL }}about">{{ .Site.Author.name }}</a>
<a href="{{ "" | absLangURL }}about">{{ .Site.Author.name }}</a>
&nbsp;&copy;
{{ .Site.LastChange.Format "2006" }}
{{ if .Site.Title }}
Expand Down
4 changes: 2 additions & 2 deletions layouts/partials/nav.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<nav class="navbar">
<div class="nav">
{{ if .Site.Params.logo }}
<a href="{{ .Site.BaseURL }}" class="nav-logo">
<a href="{{ "" | absLangURL }}" class="nav-logo">
<img
src="{{ .Site.BaseURL }}images/{{ .Site.Params.logo.url }}"
width="{{ .Site.Params.logo.width }}"
height="{{ .Site.Params.logo.height }}"
alt="{{ .Site.Params.logo.alt }}"
/>
</a>
</a>
{{ end }}

<ul class="nav-links">
Expand Down

0 comments on commit 682195e

Please sign in to comment.