Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/4ever9/less.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/footer.html')
-rw-r--r--layouts/partials/footer.html29
1 files changed, 27 insertions, 2 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 74164f0..d9ad6cd 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -1,10 +1,35 @@
-
<div class="container">
<footer>
<div>Less is More</div>
- <span class="copyright">©2018-{{now.Year}}</span>
+ <span class="copyright">
+ {{ $year := "2020" }}
+ {{ $created := $.Site.Params.siteCreated }}
+ {{ if and $created (lt $created now.Year) }}
+ {{ $year = printf "%d - %d" $created now.Year }}
+ {{ else }}
+ {{ $year = printf "%d" now.Year }}
+ {{ end }}
+ © {{ $year }}
+ </span>
<a href="">粤ICP备120011798号</a>
</footer>
</div>
</body>
+<script src="https://cdn.staticfile.org/tocbot/4.11.2/tocbot.min.js"></script>
+<script>
+ tocbot.init({
+ // Where to render the table of contents.
+ tocSelector: '.single-toc',
+ // Where to grab the headings to build the table of contents.
+ contentSelector: '.single-content',
+ // Which headings to grab inside of the contentSelector element.
+ headingSelector: 'h1, h2, h3',
+ // For headings inside relative or absolute positioned containers within content.
+ hasInnerContainers: false,
+ collapseDepth: 4
+ });
+</script>
+<script crossorigin="anonymous" integrity="sha384-LVoNJ6yst/aLxKvxwp6s2GAabqPczfWh6xzm38S/YtjUyZ+3aTKOnD/OJVGYLZDl" src="https://lib.baomitu.com/jquery/3.5.0/jquery.min.js"></script>
+{{ $built := resources.Get "js/less.js" | js.Build "less.js" }}
+<script type="text/javascript" src="{{ $built.RelPermalink }}"></script>
</html> \ No newline at end of file