mirror of
https://github.com/SqrtMinusOne/sqrtminusone.github.io.git
synced 2025-12-10 15:53:03 +03:00
feat: star button for configs
This commit is contained in:
parent
9f0766a910
commit
c2572b6cc9
1 changed files with 24 additions and 0 deletions
24
layouts/configs/single.html
Normal file
24
layouts/configs/single.html
Normal file
|
|
@ -0,0 +1,24 @@
|
||||||
|
{{ define "main" }}
|
||||||
|
<script defer language="javascript" type="text/javascript" src="{{ "/js/dynamic-toc.js" | urlize | relURL }}"></script>
|
||||||
|
<div class="root">
|
||||||
|
<h1 id="title-small-screen">
|
||||||
|
{{ .Title }}
|
||||||
|
<iframe src="https://ghbtns.com/github-btn.html?user=SqrtMinusOne&repo=dotfiles&type=star&count=true" frameborder="0" scrolling="0" width="150" height="20" title="GitHub"></iframe>
|
||||||
|
</h1>
|
||||||
|
<div class="container" id="actual-content">
|
||||||
|
<h1 id="title-large-screen" class="dotfiles-title">
|
||||||
|
{{ .Title }}
|
||||||
|
<iframe src="https://ghbtns.com/github-btn.html?user=SqrtMinusOne&repo=dotfiles&type=star&count=true" frameborder="0" scrolling="0" width="150" height="20" title="GitHub"></iframe>
|
||||||
|
</h1>
|
||||||
|
{{ .Content }}
|
||||||
|
</div>
|
||||||
|
<div class="table-of-contents">
|
||||||
|
<div class="table-of-contents-text">
|
||||||
|
<b><a href="#">Table of Contents</a></b>
|
||||||
|
{{ .TableOfContents }}
|
||||||
|
</div>
|
||||||
|
<a id="unhide-all-button" class="hidden"><Expand></a>
|
||||||
|
<a id="hide-all-button" class="hidden"><Collapse></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{{ end }}
|
||||||
Loading…
Add table
Reference in a new issue