Skip to content

Commit a762c11

Browse files
committed
Added syntax highlighting for code blocks
1 parent 56752f4 commit a762c11

File tree

507 files changed

+4022
-31388
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

507 files changed

+4022
-31388
lines changed

assets/css/custom.css

Lines changed: 14 additions & 354 deletions
Original file line numberDiff line numberDiff line change
@@ -1,359 +1,19 @@
1-
/* Pwnfuzz Custom Styles */
2-
3-
/* Desktop Menu Styles */
4-
@media screen and (min-width: 768px) {
5-
.menu {
6-
order: 2;
7-
margin-left: auto;
8-
}
9-
10-
.menu__btn {
11-
display: none;
12-
}
13-
14-
.menu__list {
15-
position: static;
16-
visibility: visible;
17-
transform: none;
18-
display: flex;
19-
flex-wrap: wrap;
20-
}
21-
22-
.menu__item {
23-
background: none;
24-
border: none;
25-
}
26-
27-
.menu__link {
28-
padding: 1.5rem 1rem;
29-
color: var(--text);
30-
font-weight: 700;
31-
text-transform: uppercase;
32-
font-size: 0.85rem;
33-
letter-spacing: 0.05em;
34-
}
35-
36-
.menu__link:hover,
37-
.menu__item--active .menu__link {
38-
color: var(--highlight);
39-
background: none;
40-
}
41-
}
42-
43-
/* View all tags link */
44-
.widget-taglist__link--all {
45-
display: block;
46-
text-align: center;
47-
margin-top: 1em;
48-
font-weight: bold;
49-
color: var(--highlight);
50-
}
51-
52-
/* Tags page styling */
53-
.terms {
54-
list-style: none;
55-
padding: 0;
56-
margin: 0;
57-
display: flex;
58-
flex-wrap: wrap;
59-
gap: 1em;
60-
}
61-
62-
.terms__item {
63-
flex: 1 1 300px;
64-
}
65-
66-
.terms__link {
67-
display: flex;
68-
justify-content: space-between;
69-
align-items: center;
70-
padding: 1em;
71-
background-color: var(--content-bg);
72-
border: 1px solid var(--border);
73-
border-radius: 5px;
74-
text-decoration: none;
75-
color: var(--text);
76-
transition: background-color 0.2s, border-color 0.2s;
77-
}
78-
79-
.terms__link:hover {
80-
background-color: #2a2a2a;
81-
border-color: var(--highlight);
82-
}
83-
84-
.terms__name {
85-
font-weight: bold;
86-
}
87-
88-
.terms__count {
89-
background-color: var(--highlight);
90-
color: white;
91-
padding: 0.2em 0.6em;
92-
border-radius: 10px;
93-
font-size: 0.9em;
94-
}
95-
/* Post Metadata Styling */
96-
.post-meta {
97-
color: var(--text-muted);
98-
font-size: 0.9em;
99-
margin: 0.5em 0;
100-
display: flex;
101-
flex-wrap: wrap;
102-
align-items: center;
103-
gap: 0.5em;
104-
}
105-
106-
.post-meta i {
107-
margin-right: 0.3em;
108-
color: var(--highlight);
109-
}
110-
111-
.meta-separator {
112-
color: var(--border);
113-
margin: 0 0.3em;
114-
}
115-
116-
.post-author, .post-date, .post-categories, .reading-time {
117-
display: inline-flex;
118-
align-items: center;
119-
}
120-
121-
.post-categories a {
122-
color: var(--highlight);
123-
text-decoration: none;
124-
margin-left: 0.3em;
125-
transition: color 0.2s;
126-
}
127-
128-
.post-categories a:hover {
129-
color: var(--highlight-hover);
130-
text-decoration: underline;
131-
}
132-
133-
.post-tags {
134-
margin: 0.5em 0;
135-
display: flex;
136-
flex-wrap: wrap;
137-
gap: 0.5em;
138-
}
139-
140-
.post-tags .tag {
141-
background-color: var(--highlight);
142-
color: white;
143-
padding: 0.2em 0.8em;
144-
border-radius: 15px;
145-
font-size: 0.8em;
146-
text-decoration: none;
147-
transition: background-color 0.2s;
148-
}
149-
150-
.post-tags .tag:hover {
151-
background-color: var(--highlight-hover);
152-
text-decoration: none;
153-
}
154-
155-
/* Ensure proper spacing for the summary */
156-
.post-summary {
157-
margin: 1em 0;
158-
line-height: 1.6;
159-
}
160-
161-
:root {
162-
--content-width: 90%;
163-
--content-max-width: 1400px;
164-
--content-padding: 0 2rem;
165-
--main-gap: 2.5rem;
166-
}
167-
168-
@media (min-width: 1200px) {
169-
.content {
170-
max-width: var(--content-max-width);
171-
margin: 0 auto;
172-
}
173-
174-
.sidebar {
175-
max-width: 300px;
176-
}
177-
178-
.main {
179-
display: grid;
180-
grid-template-columns: 1fr 300px;
181-
gap: var(--main-gap);
182-
max-width: calc(var(--content-max-width) + 300px + var(--main-gap));
183-
margin: 0 auto;
184-
padding: 0 2rem;
185-
}
186-
187-
.content__inner {
188-
max-width: 100%;
189-
}
190-
}
191-
192-
@media (min-width: 1600px) {
193-
:root {
194-
--content-max-width: 1600px;
195-
}
196-
}
197-
198-
/* Color Scheme */
199-
:root {
200-
--highlight: #9c1a1c; /* Darker red for better contrast */
201-
--highlight-hover: #c41f22;
202-
--background: #0a0a0a; /* Dark background */
203-
--content-bg: #121212; /* Slightly lighter background for content */
204-
--text: #e0e0e0; /* Light gray text */
205-
--text-muted: #9e9e9e;
206-
--border: #2a2a2a;
207-
}
208-
209-
/* Dark theme base */
210-
body {
211-
background-color: var(--background);
212-
color: var(--text);
213-
}
214-
215-
/* Header styling */
216-
.header {
217-
background-color: var(--content-bg);
218-
border-bottom: 1px solid var(--highlight);
219-
}
220-
221-
/* Navigation */
222-
.nav {
223-
background-color: var(--content-bg);
224-
}
225-
226-
.nav__item a {
227-
color: var(--text);
228-
transition: color 0.2s;
229-
}
230-
231-
.nav__item a:hover {
232-
color: var(--highlight);
233-
}
234-
235-
/* Content area */
236-
.content {
237-
background-color: var(--content-bg);
238-
border: 1px solid var(--border);
239-
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
240-
width: 100%;
241-
max-width: 100%;
242-
padding: 2rem 0;
243-
}
244-
245-
.content__inner {
246-
padding: 0 2rem;
247-
}
248-
249-
/* Links */
250-
a {
251-
color: var(--highlight);
252-
text-decoration: none;
253-
}
254-
255-
a:hover {
256-
color: var(--highlight-hover);
257-
text-decoration: underline;
258-
}
259-
260-
/* Code blocks */
261-
pre, code {
262-
background-color: #1e1e1e;
263-
border: 1px solid #333;
264-
border-radius: 3px;
265-
}
266-
267-
/* Buttons */
268-
.btn {
269-
background-color: var(--highlight);
270-
color: white;
271-
border: none;
272-
padding: 8px 16px;
273-
border-radius: 4px;
274-
transition: background-color 0.2s;
275-
}
276-
277-
.btn:hover {
278-
background-color: var(--highlight-hover);
279-
color: white;
280-
}
281-
282-
/* Sidebar */
283-
.sidebar {
284-
background-color: var(--content-bg);
285-
border: 1px solid var(--border);
286-
padding: 1.5rem;
287-
align-self: start;
288-
position: sticky;
289-
top: 2rem;
290-
}
291-
292-
/* Footer */
293-
.footer {
294-
background-color: var(--content-bg);
295-
border-top: 1px solid var(--border);
296-
color: var(--text-muted);
297-
}
298-
299-
/* Post meta */
300-
.post__meta {
301-
color: var(--text-muted);
302-
}
303-
304-
/* Tags */
305-
.tags__item {
306-
background-color: #2a2a2a;
307-
color: var(--text);
308-
border: 1px solid var(--border);
309-
padding: 2px 8px;
310-
border-radius: 3px;
311-
}
312-
313-
.tags__item:hover {
314-
background-color: var(--highlight);
315-
color: white;
316-
}
317-
318-
/* Terminal-like styling for code blocks */
319-
.highlight {
320-
position: relative;
321-
margin-bottom: 1.5em;
322-
border-radius: 4px;
323-
overflow: hidden;
324-
}
325-
326-
.highlight pre {
327-
margin: 0;
328-
padding: 1em;
329-
overflow-x: auto;
1+
/* Force override for Chroma/Monokai code block background and text color */
2+
pre.chroma, pre.chroma code, .highlight pre, .highlight code, pre, code, .chroma, .highlight {
3+
background: #f8f8f8 !important;
4+
color: #222 !important;
3305
}
3316

332-
/* Terminal header */
333-
.highlight::before {
334-
content: '';
335-
position: absolute;
336-
top: 0;
337-
left: 0;
338-
right: 0;
339-
height: 24px;
340-
background: #333;
341-
border-radius: 4px 4px 0 0;
342-
padding: 0 10px;
343-
box-sizing: border-box;
344-
display: flex;
345-
align-items: center;
7+
/* Target inline styles on <pre> */
8+
pre[style*="background-color"] {
9+
background: #f8f8f8 !important;
10+
color: #222 !important;
34611
}
34712

348-
/* Terminal buttons */
349-
.highlight::after {
350-
content: '•••';
351-
position: absolute;
352-
top: 6px;
353-
left: 10px;
354-
color: #ff5f56;
355-
text-shadow: 20px 0 0 #ffbd2e, 40px 0 0 #27c93f;
356-
font-size: 12px;
357-
line-height: 12px;
358-
letter-spacing: 2px;
13+
/* Optional: Improve code block appearance */
14+
.chroma code, pre code, .highlight code {
15+
background: none !important;
16+
color: inherit !important;
17+
font-family: SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
18+
font-size: 1em;
35919
}

config/_default/params.toml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,6 @@
22
[style]
33
vars = {}
44

5-
# Custom CSS file
6-
customCSS = ["css/custom.css"]
7-
8-
# Site parameters
9-
description = "Pwnfuzz - Exploring the world of fuzzing, binary exploitation, and exploit engineering"
10-
mainSections = ["posts"]
11-
showReadingTime = true
125

136
# Header configuration
147
[header]
@@ -62,4 +55,4 @@ showReadingTime = true
6255
home = ["HTML", "RSS", "JSON"]
6356
section = ["HTML", "RSS"]
6457
taxonomy = ["HTML", "RSS"]
65-
taxonomyTerm = ["HTML"]
58+
taxonomyTerm = ["HTML"]

0 commit comments

Comments
 (0)