forked from dict/alar.ink
Change template URLs to relative.
This commit is contained in:
@@ -71,13 +71,13 @@
|
||||
{{ define "footer" }}
|
||||
<nav class="nav">
|
||||
{{ if .Consts.EnableSubmissions }}
|
||||
<a href="{{ $.Consts.RootURL }}/submit">{{- .L.T "public.submitEntry" -}}</a>
|
||||
<a href="/submit">{{- .L.T "public.submitEntry" -}}</a>
|
||||
{{ end }}
|
||||
{{ if .Consts.EnableGlossary }}
|
||||
{{ range $d := .Dicts }}
|
||||
{{ $from := index $d 0}}
|
||||
{{ $to := index $d 1}}
|
||||
<a href="{{ $.Consts.RootURL }}/glossary/{{ $from.ID }}/{{ $to.ID }}/*" class="tab">
|
||||
<a href="/glossary/{{ $from.ID }}/{{ $to.ID }}/*" class="tab">
|
||||
{{ $.L.Ts "public.glossary" "lang" $from.Name }}
|
||||
</a>
|
||||
{{ end }}
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
{{ else }}
|
||||
<ul class="noul words">
|
||||
{{ range $i, $w := $g.Words }}
|
||||
<li><a href="{{ $.Consts.RootURL }}/dictionary/{{ UnicodeURL $g.FromLang }}/{{ UnicodeURL $g.ToLang }}/{{ UnicodeURL (index $w.Content 0) }}">{{ $w.Content | join ", " }}</a></li>
|
||||
<li><a href="/dictionary/{{ UnicodeURL $g.FromLang }}/{{ UnicodeURL $g.ToLang }}/{{ UnicodeURL (index $w.Content 0) }}">{{ $w.Content | join ", " }}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ end }}
|
||||
|
||||
Reference in New Issue
Block a user