Added shortcodes, lots of improvements and content dump

This commit is contained in:
2022-06-07 13:54:07 +00:00
parent 6c98fcf57a
commit 9859c9e5ba
34 changed files with 448 additions and 59 deletions

View File

@@ -1,7 +1,9 @@
<nav id='navbar'>
<ul class='top-nav'>
<li><a href='/{{ .Language.Lang }}'>{{ site.Title }}</a></li>
<li><a href='/{{ if ne .Language.Lang "en" }}{{ .Language.Lang }}{{ end }}'>{{ site.Title }}</a></li>
{{ if gt (len .AllTranslations) 1 }}
{{ partial "i18n/nav.html" . }}
{{ end }}
<div class='link-group'>
{{ $currentPage := . }}
{{ range .Site.Menus.main }}

View File

@@ -1,14 +1,21 @@
<aside id='meta'>
<header>
<h4>{{ or (.Param "tit") .Title }}</h4>
<h4>{{ or (.Param "tit") .Title | humanize }}</h4>
<p>
{{ i18n "readingTime" .ReadingTime }}.
{{ i18n "wordCount" .WordCount }}.
</p>
{{ with .Param "git" }}
<p>Check out the git repo; <a href='{{ .url }}'>{{ .name }}</a>!</p>
{{ end }}
</header>
{{ if .Param "docs" }}
<h6>Documentation:</h6>
<ul>
{{ range .Param "docs" }}
<li><a href='{{ .url }}' target='_blank'>{{ .name }}</a></li>
{{ end }}</ul>{{ end }}
{{ with .Param "git" }}
<p>Check out the git repo; <a href='{{ .url }}'>{{ .name }}</a>!</p>
{{ end }}
<h6>Table of Contents:</h6>
{{ .TableOfContents }}
{{ partial "i18n/list.html" . }}
</aside>