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