Skip to content

Commit 29b1b9f

Browse files
committed
updated
1 parent 9d2e300 commit 29b1b9f

File tree

4 files changed

+33
-263
lines changed

4 files changed

+33
-263
lines changed

docs/CNAME

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
exploit-notes.hdks.org

mkdocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ site_url: https://exploit-notes.hdks.org
33
repo_url: https://github.com/hdks-bug/exploit-notes
44
theme:
55
name: material
6-
# custom_dir: overrides
6+
custom_dir: overrides
77
favicon: assets/logo.png
88
logo: assets/logo.png
99
font:

overrides/base.html

Lines changed: 0 additions & 262 deletions
This file was deleted.

overrides/partials/toc.html

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{% set title = lang.t("toc") %}
2+
{% if config.mdx_configs.toc and config.mdx_configs.toc.title %}
3+
{% set title = config.mdx_configs.toc.title %}
4+
{% endif %}
5+
<nav class="md-nav md-nav--secondary" aria-label="{{ title | e }}">
6+
{% set toc = page.toc %}
7+
{% set first = toc | first %}
8+
{% if first and first.level == 1 %}
9+
{% set toc = first.children %}
10+
{% endif %}
11+
{% if toc %}
12+
<label class="md-nav__title" for="__toc">
13+
<span class="md-nav__icon md-icon"></span>
14+
{{ title }}
15+
</label>
16+
<ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
17+
{% for toc_item in toc %}
18+
{% include "partials/toc-item.html" %}
19+
{% endfor %}
20+
</ul>
21+
<div style="margin: 12px 0;">
22+
<div id="carbonads"></div>
23+
<script
24+
async
25+
type="text/javascript"
26+
src="//cdn.carbonads.com/carbon.js?serve=CWYDE53L&placement=exploit-noteshdksorg&format=cover"
27+
id="_carbonads_js">
28+
</script>
29+
</div>
30+
{% endif %}
31+
</nav>

0 commit comments

Comments
 (0)