diff options
Diffstat (limited to 'documentation/themes/beastie/layouts/_shortcodes')
4 files changed, 44 insertions, 0 deletions
diff --git a/documentation/themes/beastie/layouts/_shortcodes/lang.html b/documentation/themes/beastie/layouts/_shortcodes/lang.html new file mode 100644 index 0000000000..e1a02d383e --- /dev/null +++ b/documentation/themes/beastie/layouts/_shortcodes/lang.html @@ -0,0 +1,2 @@ +{{ .Page.Language.Lang }} +{{- /* Chomp trailing newline */ -}} diff --git a/documentation/themes/beastie/layouts/_shortcodes/languages-selection.html b/documentation/themes/beastie/layouts/_shortcodes/languages-selection.html new file mode 100644 index 0000000000..bbfff53f3d --- /dev/null +++ b/documentation/themes/beastie/layouts/_shortcodes/languages-selection.html @@ -0,0 +1,7 @@ +<ul class="language-list"> + {{ range $.Site.Home.AllTranslations }} + <li> + <a href="{{ .RelPermalink }}" lang="{{ .Language.Params.languageCode }}">{{.Language.LanguageName }}</a> + </li> + {{ end }} +</ul>
\ No newline at end of file diff --git a/documentation/themes/beastie/layouts/_shortcodes/list-articles-directories.html b/documentation/themes/beastie/layouts/_shortcodes/list-articles-directories.html new file mode 100644 index 0000000000..33eab8f495 --- /dev/null +++ b/documentation/themes/beastie/layouts/_shortcodes/list-articles-directories.html @@ -0,0 +1,17 @@ +{{ partial "global-search.html" . }} + +<h1>{{ i18n "articles" }}</h1> + +<p>{{ i18n "list-desc-articles" }}</p> + +<hr class="line"/> + +<ul class="documents-list"> +{{ $articles := .Site.GetPage "section" "articles" }} +{{ range $articles.Sections }} + <li> + <a href="{{ .Permalink }}"><strong>{{ .Title }}</strong></a> + <p>{{ .Params.description }}</p> + </li> +{{ end }} +</ul> diff --git a/documentation/themes/beastie/layouts/_shortcodes/list-books-directories.html b/documentation/themes/beastie/layouts/_shortcodes/list-books-directories.html new file mode 100644 index 0000000000..d98353f942 --- /dev/null +++ b/documentation/themes/beastie/layouts/_shortcodes/list-books-directories.html @@ -0,0 +1,18 @@ +{{ partial "global-search.html" . }} + +<h1>{{ i18n "books" }}</h1> + +<p>{{ i18n "list-desc-books" }}</p> + +<hr class="line"/> + +<ul class="documents-list"> + +{{ $books := .Site.GetPage "section" "books" }} +{{ range $books.Sections }} + <li> + <a href="{{ .Permalink }}"><strong>{{ .Title }}</strong></a> + <p>{{ .Params.description }}</p> + </li> +{{ end }} +</ul> |
