-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
77d4617
commit f04b689
Showing
33 changed files
with
837 additions
and
676 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
base_url = "https://exploiitm.github.io/" | ||
title = "exploiitm blog" | ||
description = "Official blog of Cybersecurity Club, IIT Madras" | ||
compile_sass = false | ||
minify_html = true | ||
generate_feed = true | ||
default_language = "en" | ||
|
||
taxonomies = [ | ||
{name = "tags", feed = true}, | ||
] | ||
|
||
[markdown] | ||
render_emoji = true | ||
external_links_target_blank = true | ||
smart_punctuation = true | ||
highlight_code = false | ||
highlight_theme = "gruvbox-dark" | ||
|
||
[slugify] | ||
paths = "on" | ||
taxonomies = "on" | ||
anchors = "on" | ||
|
||
[link_checker] | ||
internal_level = "warn" | ||
|
||
[extra] | ||
author = "exploiitm" | ||
display_author = true | ||
|
||
favicon = "favicon.ico" | ||
image = "" | ||
|
||
default_theme = "light" | ||
list_pages = false | ||
twitter_card = true | ||
|
||
header_nav = [ | ||
{ url = "/", name_en = "/home/" }, | ||
] | ||
|
||
# Optional footer license text. It will only show, when using footer_content_license. | ||
#footer_content_license = "Creative Commons Attribution 4.0 International" | ||
#footer_content_license_link = "https://creativecommons.org/licenses/by/4.0/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
+++ | ||
+++ | ||
|
||
## Blog | ||
|
||
Official blog of Cybersecurity Club, IIT Madras. | ||
|
||
> *"It's not a bug, it's a feature"* | ||
## Posts | ||
|
||
|
||
- [First Post](./blog/first-post) | ||
|
||
## Tags | ||
|
||
Browse our posts by tags: | ||
|
||
- [example](./tags/example) | ||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
+++ | ||
title = "About" | ||
+++ | ||
This is an about page, nothing more nothing less `forget about it`. | ||
|
||
{{ youtube(id="pS6zJ7IsJkM" class="center") }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
+++ | ||
title = "First Post" | ||
[taxonomies] | ||
tags = ["example"] | ||
|
||
|
||
+++ | ||
|
||
Hi, | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
+++ | ||
paginate_by = 15 | ||
path = "blog" | ||
title = "All blog posts" | ||
sort_by = "date" | ||
page_template = "blog-page.html" | ||
+++ | ||
|
||
> List of all *[tags](/tags)* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
+++ | ||
title = "Personal journal" | ||
date = 2019-10-05 | ||
draft = false | ||
+++ | ||
|
||
## 2023-06-29 🔧 | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean dapibus dignissim nulla et ornare. Vestibulum porta, risus eu ultrices condimentum, quam ante mattis massa, eget laoreet neque nisl ullamcorper nibh. | ||
|
||
|
||
## 2023-06-28 😊 | ||
Etiam vulputate nibh in magna feugiat viverra. Donec ultricies sagittis justo vel facilisis. Nulla sollicitudin felis eu tortor consectetur, ac sodales odio faucibus. Vivamus id ultrices orci, ut luctus dolor. Sed sem nibh, semper in posuere eget, dictum eget dui. Praesent nunc dolor, lacinia at tortor eget, sollicitudin sagittis turpis. | ||
|
||
{{ img(id="https://uploads-ssl.webflow.com/5ff0b3326e5782a256714165/638b6f3a3d8d2e6bad1cb03b_Random22.1.jpg", alt="xfx6800xt", class="textCenter") }} | ||
|
||
## 2022-11-30 💀 | ||
Pellentesque iaculis diam leo, vel euismod libero finibus sed. Praesent ultrices libero nec lectus posuere euismod. Fusce lobortis elit dui. In non pulvinar ligula. Integer augue mauris, condimentum vitae ante sit amet, consectetur scelerisque lectus. Sed dignissim vitae magna et volutpat. Integer vel risus sagittis | ||
|
||
## 2022-11-11 😐 | ||
Vivamus molestie, ipsum id ullamcorper facilisis, velit neque elementum metus, quis lacinia ligula felis et metus. Quisque at condimentum tellus, id venenatis turpis. Integer accumsan metus non mauris vulputate pretium. | ||
|
||
## 2022-10-29 🍿 | ||
vel mollis varius. Aenean non bibendum dui, eget facilisis turpis. Cras eleifend mi vel leo malesuada, ac vestibulum est condimentum. Aenean accumsan felis elit, sed porttitor nulla volutpat nec. In leo purus, condimentum ut augue sed, imperdiet dapibus sapien. Proin id ullamcorper nisi. | ||
|
||
## 2022-10-27 💢 | ||
facilisis sapien, quis faucibus leo urna ut diam. Etiam eu dolor vestibulum, cursus odio at, aliquam nibh. Donec molestie metus non purus facilisis euismod. In interdum luctus libero, in mollis est tincidunt at. Nam congue, nibh nec tempus elementum, nunc sapien placerat felis, id dignissim sapien tellus a libero. Nunc at elementum tortor, eget scelerisque elit. Donec ultricies mi at accumsan semper. Pellentesque vehicula leo sed urna dapibus, quis feugiat arcu auctor. |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
#nav-bar { | ||
padding: .625rem 0 0 0; | ||
display: flex; | ||
flex-direction: row; | ||
gap: .25rem; | ||
flex-wrap: wrap; | ||
justify-content: flex-end; | ||
align-items: center; | ||
align-content: flex-end | ||
} | ||
|
||
#footer-container { | ||
display: flex; | ||
flex-wrap: wrap; | ||
justify-content: space-between; | ||
align-items: center; | ||
} | ||
|
||
.accent-data { | ||
color: var(--accent); | ||
} | ||
|
||
.theme-transition { | ||
transition: color 0.3s ease, background-color 0.3s ease; | ||
} | ||
|
||
.tags-data { | ||
display: flex; | ||
flex-direction: column; | ||
flex-wrap: wrap; | ||
justify-content: flex-end; | ||
align-items: flex-start; | ||
align-content: flex-end | ||
} | ||
|
||
.title-list li { | ||
margin-bottom: .375rem; | ||
} | ||
|
||
/* icons settings */ | ||
.icons { | ||
width: 1.3rem; | ||
height: 1.3rem; | ||
aspect-ratio: 1/1; | ||
display: inline-block; | ||
vertical-align: middle; | ||
color: var(--text); | ||
fill: var(--text); | ||
background-color: transparent; | ||
cursor: pointer; | ||
} | ||
|
||
.icons:hover { | ||
background-color: transparent; | ||
color: var(--accent); | ||
} | ||
|
||
/* footnotes */ | ||
.footnote-definition { | ||
margin: 0 0 0 .125rem; | ||
} | ||
|
||
.footnote-definition-label { | ||
color: var(--accent); | ||
} | ||
|
||
.footnote-definition p { | ||
display: inline; | ||
margin: .625rem 0 0 .625rem; | ||
} | ||
|
||
/* general classes */ | ||
.no-style { | ||
padding: 0; | ||
margin: 0; | ||
border: none; | ||
border-radius: 0 | ||
} | ||
|
||
.no-style:hover { | ||
background-color: transparent; | ||
color: var(--accent); | ||
} | ||
|
||
.center { | ||
text-align: center; | ||
} | ||
|
||
.center img { | ||
display: block; | ||
margin: 1rem auto; | ||
} | ||
|
||
.float-right { | ||
float: right | ||
} | ||
|
||
.float-left { | ||
float: left | ||
} | ||
|
||
/* shortcodes css */ | ||
.webring { | ||
margin: .375rem; | ||
} |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
const toggleButton = document.getElementById('theme-toggle'); | ||
const themeIcon = document.getElementById('theme-icon'); | ||
const themeSound = document.getElementById('theme-sound'); | ||
|
||
// Function to update the theme icon based on the current theme | ||
const updateThemeIcon = (isDarkMode) => { | ||
const themeMode = isDarkMode ? 'darkMode' : 'lightMode'; | ||
const iconPath = themeIcon.querySelector('use').getAttribute('href').replace(/#.*$/, `#${themeMode}`); | ||
themeIcon.querySelector('use').setAttribute('href', iconPath); | ||
}; | ||
|
||
// Function to update the theme based on the current mode | ||
const updateTheme = (isDarkMode) => { | ||
const theme = isDarkMode ? 'dark' : 'light'; | ||
document.documentElement.setAttribute('data-theme', theme); | ||
updateThemeIcon(isDarkMode); | ||
}; | ||
|
||
// Function to toggle the theme | ||
const toggleTheme = () => { | ||
const isDarkMode = toggleButton.checked; | ||
updateTheme(isDarkMode); | ||
themeSound.play(); | ||
localStorage.setItem('theme', isDarkMode ? 'dark' : 'light'); | ||
|
||
// Add transition class to body for smooth transition | ||
document.body.classList.add('theme-transition'); | ||
setTimeout(() => { | ||
document.body.classList.remove('theme-transition'); | ||
}, 300); | ||
}; | ||
|
||
// Event listener for theme toggle | ||
toggleButton.addEventListener('change', toggleTheme); | ||
|
||
// Function to initialize the theme based on the stored preference | ||
const initializeTheme = () => { | ||
const storedTheme = localStorage.getItem('theme'); | ||
const prefersDark = window.matchMedia('(prefers-color-scheme: dark)').matches; | ||
const isDarkMode = storedTheme === 'dark' || (!storedTheme && prefersDark); | ||
toggleButton.checked = isDarkMode; | ||
updateTheme(isDarkMode); | ||
}; | ||
|
||
// Initialize the theme | ||
initializeTheme(); | ||
|
||
// Listen for changes in system preference | ||
window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', initializeTheme); |
Binary file not shown.
Oops, something went wrong.