Commit 5c5b8741 authored by akwizgran's avatar akwizgran

Merge branch 'i18n' into 'master'

Make manual translatable

See merge request !10
parents 2d2cd3d8 cb4b2adf
[main]
host = https://www.transifex.com
[briar.manual]
source_file = content/_index.md
file_filter = content/_index.<lang>.md
type = GITHUBMARKDOWN
mode = developer
source_lang = en
minimum_perc = 100
\ No newline at end of file
baseURL = "https://briarproject.org/manual"
languageCode = "en-us"
title = "Briar User Manual"
theme = "briar-manual"
\ No newline at end of file
languageCode = "en"
DefaultContentLanguage = "en"
canonifyURLs = "true"
theme = "briar-manual"
[languages]
[languages.en]
languageName = "English"
This diff is collapsed.
translations:
other: "Übersetzungen"
toc:
other: "Inhaltsverzeichnis"
\ No newline at end of file
# Transifex support depends on https://github.com/gohugoio/hugo/issues/5242
translations:
other: "Translations"
toc:
other: "Table of Contents"
\ No newline at end of file
......@@ -2,7 +2,7 @@
<title>{{ block "title" . }}{{ with .Params.Title }}{{ . }} | {{ end }}{{ .Site.Title }}{{ end }}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link type="text/css" rel="stylesheet" href='{{ "css/style.css" }}'/>
<link type="text/css" rel="stylesheet" href='{{ "css/pilcrow.css" }}'/>
<link type="text/css" rel="stylesheet" href='{{ "css/hljs-github.min.css" }}'/>
<link type="text/css" rel="stylesheet" href='{{ "/css/style.css" }}'/>
<link type="text/css" rel="stylesheet" href='{{ "/css/pilcrow.css" }}'/>
<link type="text/css" rel="stylesheet" href='{{ "/css/hljs-github.min.css" }}'/>
</head>
\ No newline at end of file
<div id="toc">
<div id="toc-inner">
{{ if .IsTranslated }}
<h4>{{ i18n "translations" }}</h4>
<ul class="nav-list">
{{ range .Translations }}
<li>
<a href="{{ .Permalink }}">{{ .Language.LanguageName }}: {{ .Title }}</a>
</li>
{{ end }}
</ul>
{{ end }}
<h4>{{ i18n "toc" }}</h4>
{{ .TableOfContents }}
</div>
</div>
......
<div style="clear:both"></div>
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment