1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2026-03-24 09:41:53 +01:00
GTFOBins.github.io/_includes/page_title.html
Andrea Cardaci 15083f698d Add simple theme switcher
As mentioned in #552.
2026-02-03 19:07:04 +01:00

27 lines
3.1 KiB
HTML

<h1>
<div>
{%- if page.url != '/' -%}
<a href="{{ "/" | relative_url }}">..</a> /
{{ include.title }}
{%- else -%}
<span class="accent">GTFO</span>Bins
{%- endif -%}
</div>
<div class="buttons">
<div class="dark-theme"><a class="github-button" href="https://github.com/sponsors/GTFOBins" data-color-scheme="dark" data-icon="octicon-heart" data-size="large" aria-label="Sponsor @GTFOBins on GitHub">Sponsor</a></div>
<div class="dark-theme"><a class="github-button" href="https://github.com/GTFOBins/gtfobins.github.io/fork" data-color-scheme="dark" data-icon="octicon-repo-forked" data-size="large" aria-label="Fork GTFOBins/gtfobins.github.io on GitHub">Fork</a></div>
<div class="dark-theme"><a class="github-button" href="https://github.com/GTFOBins/gtfobins.github.io" data-color-scheme="dark" data-icon="octicon-star" data-size="large" data-show-count="true" aria-label="Star GTFOBins/gtfobins.github.io on GitHub">Star</a></div>
<div class="light-theme"><a class="github-button" href="https://github.com/sponsors/GTFOBins" data-color-scheme="light" data-icon="octicon-heart" data-size="large" aria-label="Sponsor @GTFOBins on GitHub">Sponsor</a></div>
<div class="light-theme"><a class="github-button" href="https://github.com/GTFOBins/gtfobins.github.io/fork" data-color-scheme="light" data-icon="octicon-repo-forked" data-size="large" aria-label="Fork GTFOBins/gtfobins.github.io on GitHub">Fork</a></div>
<div class="light-theme"><a class="github-button" href="https://github.com/GTFOBins/gtfobins.github.io" data-color-scheme="light" data-icon="octicon-star" data-size="large" data-show-count="true" aria-label="Star GTFOBins/gtfobins.github.io on GitHub">Star</a></div>
<div id="theme-switcher">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-sun-fill dark-theme" viewBox="0 0 16 16">
<path d="M8 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8M8 0a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 0m0 13a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 13m8-5a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2a.5.5 0 0 1 .5.5M3 8a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2A.5.5 0 0 1 3 8m10.657-5.657a.5.5 0 0 1 0 .707l-1.414 1.415a.5.5 0 1 1-.707-.708l1.414-1.414a.5.5 0 0 1 .707 0m-9.193 9.193a.5.5 0 0 1 0 .707L3.05 13.657a.5.5 0 0 1-.707-.707l1.414-1.414a.5.5 0 0 1 .707 0m9.193 2.121a.5.5 0 0 1-.707 0l-1.414-1.414a.5.5 0 0 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .707M4.464 4.465a.5.5 0 0 1-.707 0L2.343 3.05a.5.5 0 1 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .708"/>
</svg>
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-moon-fill light-theme" viewBox="0 0 16 16">
<path d="M6 .278a.77.77 0 0 1 .08.858 7.2 7.2 0 0 0-.878 3.46c0 4.021 3.278 7.277 7.318 7.277q.792-.001 1.533-.16a.79.79 0 0 1 .81.316.73.73 0 0 1-.031.893A8.35 8.35 0 0 1 8.344 16C3.734 16 0 12.286 0 7.71 0 4.266 2.114 1.312 5.124.06A.75.75 0 0 1 6 .278"/>
</svg>
</div>
</div>
</h1>