mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-09-19 10:08:03 +08:00
refactor and update i18n (template), to be continue
This commit is contained in:
@@ -418,15 +418,26 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<template id="template-normal">
|
||||
{{if eq .Lang "en-us"}}
|
||||
{{template "document/template_normal-en.tpl"}}
|
||||
{{else}}
|
||||
{{template "document/template_normal.tpl"}}
|
||||
{{end}}
|
||||
</template>
|
||||
<template id="template-api">
|
||||
{{if eq .Lang "en-us"}}
|
||||
{{template "document/template_api-en.tpl"}}
|
||||
{{else}}
|
||||
{{template "document/template_api.tpl"}}
|
||||
{{end}}
|
||||
</template>
|
||||
<template id="template-code">
|
||||
{{if eq .Lang "en-us"}}
|
||||
{{template "document/template_code-en.tpl"}}
|
||||
{{else}}
|
||||
{{template "document/template_code.tpl"}}
|
||||
{{end}}
|
||||
</template>
|
||||
<script src="{{cdnjs "/static/js/array.js" "version"}}" type="text/javascript"></script>
|
||||
<script src="{{cdnjs "/static/jquery/1.12.4/jquery.min.js"}}"></script>
|
||||
|
Reference in New Issue
Block a user