1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-09-19 18:38:58 +02:00

Add GitHub buttons

This commit is contained in:
Andrea Cardaci 2018-05-21 23:09:02 +02:00
parent d52ea95982
commit 80e5c2cac4
3 changed files with 14 additions and 0 deletions

View File

@ -3,4 +3,8 @@
<a href="/">..</a> /
{% endif %}
{{ include.title }}
<div class="github-buttons">
<a class="github-button" href="https://github.com/GTFOBins/GTFOBins.github.io" data-icon="octicon-star" data-show-count="true" aria-label="Star GTFOBins/GTFOBins.github.io on GitHub">Star</a>
<a class="github-button" href="https://github.com/GTFOBins/GTFOBins.github.io/fork" data-icon="octicon-repo-forked" aria-label="Fork GTFOBins/GTFOBins.github.io on GitHub">Fork</a>
</div>
</h1>

View File

@ -15,6 +15,7 @@
</title>
<link rel="stylesheet" href="/style.css" type="text/css"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0, user-scalable=yes">
<script async defer src="https://buttons.github.io/buttons.js"></script>
</head>
<body>
{{ content }}

View File

@ -115,3 +115,12 @@ a:hover {
font-size: 1.4rem;
font-weight: bold;
}
.github-buttons {
float: right;
// avoid displaying the link text during loading
a.github-button {
visibility: hidden;
}
}