port to gitlab.

This commit is contained in:
Dave G
2018-07-16 21:46:31 -04:00
commit 2c3ba62ee1
231 changed files with 11557 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
{{ if or .Params.postMetaInFooter (and .Site.Params.postMetaInFooter (ne .Params.postMetaInFooter false)) -}}
<div class="post-copyright">
<p class="copyright-item">
<span class="item-title">{{ T "author" }}</span>
<span class="item-content">{{ if .Params.author }}{{ .Params.author | safeHTML }}{{ else }}{{ .Site.Author.name | safeHTML }}{{ end }}</span>
</p>
<!-- <p class="copyright-item">
<span class="item-title">{{ T "lastMod" }}</span>
<span class="item-content">{{ .Lastmod.Format (.Site.Params.dateFormatToUse | default "2006-01-02") }}</span>
</p> -->
<p class="copyright-item">
<span class="item-title">{{ T "postLink" }}</span>
<span class="item-content"><a href="{{ .Site.BaseURL }}{{ .URL }}" target="_blank">
<script>
document.write(decodeURI(location))
</script>
</a></span>
</p>
{{ if $.Site.Params.linkToMarkDown -}}
{{ with $.OutputFormats.Get "markdown" -}}
<p class="copyright-item">
<span class="item-title">{{ T "markdown" }}</span>
<span class="item-content"><a class="link-to-markdown" href="{{ .Permalink }}" target="_blank">{{ T "seeMarkDown" }}</a></span>
</p>
{{- end }}
{{- end }}
{{ if or .Params.contentCopyright (and .Site.Params.contentCopyright (ne .Params.contentCopyright false)) -}}
<p class="copyright-item">
<span class="item-title">{{ T "license" }}</span>
<span class="item-content">
{{- if .Params.contentCopyright -}}
{{ $Copyrigh := .Params.contentCopyright }}
{{ printf (T "licenseContent") $Copyrigh | safeHTML }}
{{- else -}}
{{ $Copyrigh := .Site.Params.contentCopyright }}
{{ printf (T "licenseContent") $Copyrigh | safeHTML }}
{{- end -}}
</span>
</p>
{{- end }}
</div>
{{- end }}

View File

@@ -0,0 +1,21 @@
{{ if or .Params.reward (and .Site.Params.reward.enable (ne .Params.reward false)) }}
<div class="post-reward">
<input type="checkbox" name="reward" id="reward" hidden />
<label class="reward-button" for="reward">{{ T "reward" }}</label>
<div class="qr-code">
{{ $qrCode := .Site.Params.reward }}
{{ with $qrCode.wechat }}
<label class="qr-code-image" for="reward">
<img class="image" src="{{ . }}">
<span>{{ T "rewardWechat" }}</span>
</label>
{{- end }}
{{ with $qrCode.alipay }}
<label class="qr-code-image" for="reward">
<img class="image" src="{{ . }}">
<span>{{ T "rewardAlipay" }}</span>
</label>
{{- end }}
</div>
</div>
{{- end }}

View File

@@ -0,0 +1,12 @@
{{ if or .Params.toc (and .Site.Params.toc (ne .Params.toc false)) }}
<div class="post-toc" id="post-toc">
<h2 class="post-toc-title">{{ T "toc" }}</h2>
{{ $globalAutoCollapseToc := .Site.Params.autoCollapseToc | default false }}
<div class="post-toc-content{{ if not (or .Params.autoCollapseToc (and $globalAutoCollapseToc (ne .Params.autoCollapseToc false))) }} always-active{{ end }}">
{{.TableOfContents}}
</div>
<div class="toc-taxonomy">
{{ partial "sidebar-taxonomy.html" . }}
</div>
</div>
{{ end }}