Skip to content

Commit 40a8d4f

Browse files
GSBPGSBP
authored andcommitted
Initial commit
1 parent 82293bd commit 40a8d4f

25 files changed

+1009
-0
lines changed

.DS_Store

6 KB
Binary file not shown.

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "themes/JuiceBar"]
2+
path = themes/JuiceBar
3+
url = https://github.com/hotjuicew/hugo-JuiceBar.git

.hugo_build.lock

Whitespace-only changes.

archetypes/default.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
+++
2+
date = '{{ .Date }}'
3+
draft = true
4+
title = '{{ replace .File.ContentBaseName "-" " " | title }}'
5+
+++

hugo.toml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
baseURL = 'http://example.org/'
2+
languageCode = 'en-us'
3+
theme = "JuiceBar"
4+
title = "GSBP's Blog"
5+
6+
[params]
7+
author = "GSBP"
8+
description = "A CTFER && JavaSecurity Researcher"
9+
authorImage = "resources/image/GSBP.jpg"
10+
paginate = 5
11+
Title = "GSBP's Blog"
12+
content = "Interesting in CyberSecurity"
13+
imageUrl = "/images/avatar.jpg"
14+
15+
# To add a new social icon
16+
# More social icons can be found in JuiceBar\layouts\partials\svg.html.
17+
[[params.social]]
18+
name = "Github"
19+
url = "https://github.com/GSBP0"
20+
#[[params.social]]
21+
#name = "twitter"
22+
#url = "https://twitter.com/hotjuicee"
23+
[[params.social]]
24+
name = "email"
25+
26+
27+
[taxonomies]
28+
category = "categories"
29+
tag = "tags"
30+
31+
# To add a new navigation link
32+
[[menu.main]]
33+
name = "About"
34+
url = "/about"
35+
[[menu.main]]
36+
name = "Blog"
37+
url = "/post"
38+
[[menu.main]]
39+
name = "Categories"
40+
url = "/categories"
41+
42+
# If using the giscus commenting system
43+
#[params.giscus]
44+
#repo = "ENTER REPO HERE"
45+
#repoID = "ENTER REPO ID HERE"
46+
#category = "ENTER CATEGORY NAME HERE"
47+
#categoryID = "ENTER CATEGORY ID HERE"
48+
#mapping = "og:title"
49+
#reactionsEnabled = "1"
50+
#emitMetadata = "0"
51+
#inputPosition = "bottom"
52+
#lang = "en"
53+
#loading = "lazy"
54+
55+
# Used for outputting the documentation (required).
56+
[outputs]
57+
home = ["HTML", "RSS", "JSON"]
58+

public/404.html

Lines changed: 152 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,152 @@
1+
2+
<!DOCTYPE html>
3+
<html lang="en-us">
4+
<head><script src="/livereload.js?mindelay=10&amp;v=2&amp;port=1313&amp;path=livereload" data-no-instant defer></script>
5+
<meta charset="utf-8">
6+
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
7+
<title>404 Page not found | GSBP&#39;s Blog</title>
8+
<meta name="description"
9+
content="A CTFER &amp;&amp; JavaSecurity Researcher">
10+
<link rel="canonical" href="http://localhost:1313/404.html" />
11+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.4/css/bulma.min.css">
12+
13+
<link rel="stylesheet" href="http://localhost:1313/scss/style.min.aa7209164f013c6883aa54384ea45a46e582eacf9a17e9565badebd557dd1059.css">
14+
15+
<meta property="og:url" content="http://localhost:1313/404.html">
16+
<meta property="og:site_name" content="GSBP&#39;s Blog">
17+
<meta property="og:title" content="404 Page not found">
18+
<meta property="og:description" content="A CTFER &amp;&amp; JavaSecurity Researcher">
19+
<meta property="og:locale" content="en_us">
20+
<meta property="og:type" content="website">
21+
22+
23+
<meta name="twitter:card" content="summary">
24+
<meta name="twitter:title" content="404 Page not found">
25+
<meta name="twitter:description" content="A CTFER &amp;&amp; JavaSecurity Researcher">
26+
27+
28+
29+
</head>
30+
<body><nav class="navbar is-light" role="navigation">
31+
<div class="container">
32+
<div class="navbar-brand">
33+
<a href="/" title="home" class="navbar-item">
34+
<span class="logo">
35+
<h1>GSBP&#39;s Blog</h1>
36+
</span>
37+
</a>
38+
39+
40+
<a id="theme-toggle" class="theme-toggle" href="#">
41+
<img src="http://localhost:1313/svg/sun.svg" alt="sun icon" class="theme-icon" />
42+
</a>
43+
44+
<a role="button" class="navbar-burger" aria-label="menu" aria-expanded="false">
45+
<span aria-hidden="true"></span>
46+
<span aria-hidden="true"></span>
47+
<span aria-hidden="true"></span>
48+
</a>
49+
</div>
50+
51+
<div class="navbar-menu">
52+
<div class="navbar-start">
53+
54+
<a href="/about" class="navbar-item">About</a>
55+
56+
<a href="/post" class="navbar-item">Blog</a>
57+
58+
<a href="/categories" class="navbar-item">Categories</a>
59+
60+
</div>
61+
62+
</div>
63+
<div class="search">
64+
<div id="fastSearch">
65+
<input id="searchInput" tabindex="0" placeholder="Search..">
66+
<ul id="searchResults">
67+
68+
</ul>
69+
</div>
70+
<a id="search-btn" style="display: inline-block;" href="# ">
71+
<div class="icon-search"><svg class="search-svg" xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 24 24" fill="none" stroke="currentcolor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg></div>
72+
</a>
73+
</div>
74+
75+
<script src="/js/fuse.min.js"></script>
76+
<script src="/js/fastsearch.js"></script>
77+
78+
</div>
79+
</nav>
80+
81+
<script>
82+
83+
document.addEventListener('DOMContentLoaded', function() {
84+
var burger = document.querySelector('.navbar-burger');
85+
burger.addEventListener('click', function() {
86+
burger.classList.toggle('is-active');
87+
document.querySelector('.navbar-menu').classList.toggle('is-active');
88+
});
89+
});
90+
91+
92+
function setTheme(theme) {
93+
let body = document.body;
94+
let themeIcon = document.querySelector(".theme-icon");
95+
if (theme === "dark") {
96+
body.classList.add("dark-mode");
97+
themeIcon.src = "http:\/\/localhost:1313\/svg/moon.svg";
98+
themeIcon.alt = "moon icon";
99+
} else {
100+
body.classList.remove("dark-mode");
101+
themeIcon.src = "http:\/\/localhost:1313\/svg/sun.svg";
102+
themeIcon.alt = "sun icon";
103+
}
104+
105+
localStorage.setItem("theme", theme);
106+
}
107+
108+
109+
let theme = localStorage.getItem("theme") || "light";
110+
const isDarkMode = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches;
111+
if (isDarkMode) {
112+
113+
setTheme('dark');
114+
115+
} else {
116+
117+
setTheme('light');
118+
}
119+
setTheme(theme);
120+
121+
122+
document.getElementById("theme-toggle").addEventListener("click", function() {
123+
if (theme === "light") {
124+
theme = "dark";
125+
} else {
126+
theme = "light";
127+
}
128+
setTheme(theme);
129+
});
130+
131+
132+
133+
</script>
134+
135+
</header><main>
136+
<div class="container">
137+
<p>Page not found</p>
138+
<p><a href="/">Go to Home Page</a></p>
139+
</div>
140+
141+
</main><footer class="footer">
142+
<div class="content has-text-centered">
143+
<span>&copy; 2025 <a href="http://localhost:1313/">GSBP&#39;s Blog</a></span>
144+
<span>
145+
Powered by
146+
<a href="https://gohugo.io/" target="_blank">Hugo</a> &
147+
<a href="https://github.com/hotjuicew/hugo-JuiceBar" target="_blank">JuiceBar</a>
148+
</span>
149+
</div>
150+
</footer></body>
151+
</html>
152+

public/categories/index.html

Lines changed: 163 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,163 @@
1+
2+
<!DOCTYPE html>
3+
<html lang="en-us">
4+
<head><script src="/livereload.js?mindelay=10&amp;v=2&amp;port=1313&amp;path=livereload" data-no-instant defer></script>
5+
<meta charset="utf-8">
6+
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
7+
<title>Categories | GSBP&#39;s Blog</title>
8+
<meta name="description"
9+
content="A CTFER &amp;&amp; JavaSecurity Researcher">
10+
<link rel="canonical" href="http://localhost:1313/categories/" />
11+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.4/css/bulma.min.css">
12+
13+
<link rel="stylesheet" href="http://localhost:1313/scss/style.min.aa7209164f013c6883aa54384ea45a46e582eacf9a17e9565badebd557dd1059.css">
14+
15+
<meta property="og:url" content="http://localhost:1313/categories/">
16+
<meta property="og:site_name" content="GSBP&#39;s Blog">
17+
<meta property="og:title" content="Categories">
18+
<meta property="og:description" content="A CTFER &amp;&amp; JavaSecurity Researcher">
19+
<meta property="og:locale" content="en_us">
20+
<meta property="og:type" content="website">
21+
22+
23+
<meta name="twitter:card" content="summary">
24+
<meta name="twitter:title" content="Categories">
25+
<meta name="twitter:description" content="A CTFER &amp;&amp; JavaSecurity Researcher">
26+
27+
28+
29+
</head>
30+
<body><nav class="navbar is-light" role="navigation">
31+
<div class="container">
32+
<div class="navbar-brand">
33+
<a href="/" title="home" class="navbar-item">
34+
<span class="logo">
35+
<h1>GSBP&#39;s Blog</h1>
36+
</span>
37+
</a>
38+
39+
40+
<a id="theme-toggle" class="theme-toggle" href="#">
41+
<img src="http://localhost:1313/svg/sun.svg" alt="sun icon" class="theme-icon" />
42+
</a>
43+
44+
<a role="button" class="navbar-burger" aria-label="menu" aria-expanded="false">
45+
<span aria-hidden="true"></span>
46+
<span aria-hidden="true"></span>
47+
<span aria-hidden="true"></span>
48+
</a>
49+
</div>
50+
51+
<div class="navbar-menu">
52+
<div class="navbar-start">
53+
54+
<a href="/about" class="navbar-item">About</a>
55+
56+
<a href="/post" class="navbar-item">Blog</a>
57+
58+
<a href="/categories" class="navbar-item">Categories</a>
59+
60+
</div>
61+
62+
</div>
63+
<div class="search">
64+
<div id="fastSearch">
65+
<input id="searchInput" tabindex="0" placeholder="Search..">
66+
<ul id="searchResults">
67+
68+
</ul>
69+
</div>
70+
<a id="search-btn" style="display: inline-block;" href="# ">
71+
<div class="icon-search"><svg class="search-svg" xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 24 24" fill="none" stroke="currentcolor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg></div>
72+
</a>
73+
</div>
74+
75+
<script src="/js/fuse.min.js"></script>
76+
<script src="/js/fastsearch.js"></script>
77+
78+
</div>
79+
</nav>
80+
81+
<script>
82+
83+
document.addEventListener('DOMContentLoaded', function() {
84+
var burger = document.querySelector('.navbar-burger');
85+
burger.addEventListener('click', function() {
86+
burger.classList.toggle('is-active');
87+
document.querySelector('.navbar-menu').classList.toggle('is-active');
88+
});
89+
});
90+
91+
92+
function setTheme(theme) {
93+
let body = document.body;
94+
let themeIcon = document.querySelector(".theme-icon");
95+
if (theme === "dark") {
96+
body.classList.add("dark-mode");
97+
themeIcon.src = "http:\/\/localhost:1313\/svg/moon.svg";
98+
themeIcon.alt = "moon icon";
99+
} else {
100+
body.classList.remove("dark-mode");
101+
themeIcon.src = "http:\/\/localhost:1313\/svg/sun.svg";
102+
themeIcon.alt = "sun icon";
103+
}
104+
105+
localStorage.setItem("theme", theme);
106+
}
107+
108+
109+
let theme = localStorage.getItem("theme") || "light";
110+
const isDarkMode = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches;
111+
if (isDarkMode) {
112+
113+
setTheme('dark');
114+
115+
} else {
116+
117+
setTheme('light');
118+
}
119+
setTheme(theme);
120+
121+
122+
document.getElementById("theme-toggle").addEventListener("click", function() {
123+
if (theme === "light") {
124+
theme = "dark";
125+
} else {
126+
theme = "light";
127+
}
128+
setTheme(theme);
129+
});
130+
131+
132+
133+
</script>
134+
135+
</header><main>
136+
<div class="container">
137+
<div class="section">
138+
<div class="content">
139+
<h1>Categories</h1>
140+
141+
</div>
142+
</div>
143+
</div>
144+
145+
<section class="card-container" >
146+
147+
148+
149+
</section>
150+
151+
152+
</main><footer class="footer">
153+
<div class="content has-text-centered">
154+
<span>&copy; 2025 <a href="http://localhost:1313/">GSBP&#39;s Blog</a></span>
155+
<span>
156+
Powered by
157+
<a href="https://gohugo.io/" target="_blank">Hugo</a> &
158+
<a href="https://github.com/hotjuicew/hugo-JuiceBar" target="_blank">JuiceBar</a>
159+
</span>
160+
</div>
161+
</footer></body>
162+
</html>
163+

public/categories/index.xml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
2+
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
3+
<channel>
4+
<title>Categories on GSBP&#39;s Blog</title>
5+
<link>http://localhost:1313/categories/</link>
6+
<description>Recent content in Categories on GSBP&#39;s Blog</description>
7+
<generator>Hugo</generator>
8+
<language>en-us</language>
9+
<atom:link href="http://localhost:1313/categories/index.xml" rel="self" type="application/rss+xml" />
10+
</channel>
11+
</rss>

0 commit comments

Comments
 (0)