mirror of
https://github.com/andwati/andwati.com.git
synced 2026-11-20 23:48:49 +00:00
switched theme
This commit is contained in:
+31
-36
@@ -1,40 +1,35 @@
|
||||
{% extends "index.html" %}
|
||||
{% extends "base.html" %}
|
||||
|
||||
{# Override base title to use a 404-specific title. #}
|
||||
{% block title %}404 Not Found{% endblock title %}
|
||||
{% block title %}404 — command not found | {{ config.title }}{% endblock title %}
|
||||
{% block description %}The page you requested could not be found.{% endblock description %}
|
||||
|
||||
{# Override base meta tags to use 404-specific ones. I can't set an og:url
|
||||
because I don't know what URL will be served this template. #}
|
||||
{% block meta %}
|
||||
<meta name="description" content="404 Not Found">
|
||||
<meta property="og:site_name" content="andwati.github.io">
|
||||
<meta property="og:locale" content="en-us">
|
||||
<meta property="og:title" content="404 Not Found">
|
||||
<meta property="og:description" content="404 Not Found">
|
||||
<meta property="og:image" content="https://andwati.github.io/self.webp">
|
||||
<meta property="twitter:card" content="summary">
|
||||
<meta property="twitter:site" content="@andwati_">
|
||||
<meta property="twitter:title" content="404 Not Found">
|
||||
<meta property="twitter:description" content="404 Not Found">
|
||||
<meta property="twitter:image" content="https://andwati.github.io/self.webp">
|
||||
{% endblock meta %}
|
||||
|
||||
{# Again, since I dont't know ahead of time what page will be served the this
|
||||
template. Best we can do is replace the canonical link with a blank. #}
|
||||
{% block links %}{% endblock links %}
|
||||
|
||||
{# Override base content to use 404-specific content. #}
|
||||
{% block content %}
|
||||
<main id="content">
|
||||
<header>
|
||||
<h1>404 Not Found</h1>
|
||||
</header>
|
||||
<figure>
|
||||
<video src="404.mp4" type="video/mp4" autoplay loop controls></video>
|
||||
<figcaption>
|
||||
Video from <a href="https://www.sakugabooru.com/post/show/165603">sakugabooru</a>
|
||||
</figcaption>
|
||||
</figure>
|
||||
</main>
|
||||
{% include "_partials/footer.html" %}
|
||||
<div class="notfound-wrap">
|
||||
<div class="term-window" role="main" aria-label="404 error terminal">
|
||||
|
||||
<div class="term-titlebar" aria-hidden="true">
|
||||
<div class="term-dots">
|
||||
<span class="dot-red"></span>
|
||||
<span class="dot-yellow"></span>
|
||||
<span class="dot-green"></span>
|
||||
</div>
|
||||
<span class="term-titlebar-label">bash — {{ config.extra.terminal_hostname | default(value="pwnbox") }}</span>
|
||||
</div>
|
||||
|
||||
<div class="term-body" id="term-body"
|
||||
data-link-home="{{ get_url(path="") }}"
|
||||
data-link-posts="{{ get_url(path="/posts") }}"
|
||||
data-link-tags="{{ get_url(path="/tags") }}"
|
||||
data-prompt="{{ config.extra.terminal_prompt_user | default(value="user@pwnbox") }}"
|
||||
data-hostname="{{ config.extra.terminal_hostname | default(value="pwnbox") }}"
|
||||
data-whoami="{{ config.extra.terminal_whoami | default(value="l0st_r3ader") }}">
|
||||
<!-- lines injected by 404.js -->
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
{% endblock content %}
|
||||
|
||||
{% block scripts %}
|
||||
<script defer src="{{ get_url(path="js/404.js") }}"></script>
|
||||
{% endblock scripts %}
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
<div>
|
||||
<script src="https://utteranc.es/client.js"
|
||||
repo="andwati/andwati.xyz"
|
||||
issue-term="title"
|
||||
theme="gruvbox-dark"
|
||||
crossorigin="anonymous"
|
||||
async>
|
||||
</script>
|
||||
</div>
|
||||
@@ -1,20 +0,0 @@
|
||||
<footer>
|
||||
<nav>
|
||||
<a href="/">Home</a>
|
||||
⬡
|
||||
<a href="/posts">Posts</a>
|
||||
⬡
|
||||
<a href="/tags">Tags</a>
|
||||
|
||||
⬡
|
||||
<a href="/archive">Archive</a>
|
||||
|
||||
</nav>
|
||||
<p>
|
||||
© 2022 - {{ now() | date(format="%Y") }} 0xmockingspectre ⬡
|
||||
<a href="https://github.com/andwati/andwati.xyz">Source</a>
|
||||
⬡
|
||||
<a href="/rss.xml">Feed</a>
|
||||
<a rel="me" href="https://twitter.com/mockinspectre" style="display: none">Twitter</a>
|
||||
</p>
|
||||
</footer>
|
||||
@@ -1,83 +0,0 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
{% if page.extra.meta %}
|
||||
<!-- the meta data config goes here -->
|
||||
{% for data in page.extra.meta %}
|
||||
<meta
|
||||
{% for key, value in data%}
|
||||
{% if key == "property" and value == "og:title"%}
|
||||
{% set_global page_has_og_title = true -%}
|
||||
{% endif %}
|
||||
{% if key == "property" and value == "og:description"%}
|
||||
{% set_global page_has_og_description = true -%}
|
||||
{% endif %}
|
||||
{% if key == "name" and value == "description"%}
|
||||
{% set_global page_has_description = true -%}
|
||||
{% endif %}
|
||||
{{ key }}="{{ value }}"
|
||||
{% endfor %}
|
||||
/>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
{% if current_path == "/" %}
|
||||
<title>
|
||||
{{ config.title | default(value="Home") }}
|
||||
</title>
|
||||
{% if not page_has_og_title %}
|
||||
<meta property="og:title" content="{{ config.title | default(value="Home") }}" />
|
||||
{% endif %}
|
||||
{% else %}
|
||||
<title>
|
||||
{% if page.title %} {{ page.title }}
|
||||
{% elif config.title %} {{ config.title }}
|
||||
{% else %} Post {% endif %}
|
||||
</title>
|
||||
|
||||
{% if not page_has_og_title %}
|
||||
<meta property="og:title" content="{% if page.title -%}{{ page.title }}{% elif config.title -%}{{ config.title }}{% else -%}Post{% endif -%}" />
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
{% if not page_has_og_description %}
|
||||
{% if page.description %}
|
||||
<meta property="og:description" content="{{ page.description }}" />
|
||||
{% elif config.description %}
|
||||
<meta property="og:description" content="{{ config.description }}" />
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
{% if not page_has_description %}
|
||||
{% if page.description %}
|
||||
<meta name="description" content="{{ page.description }}" />
|
||||
{% elif config.description %}
|
||||
<meta name="description" content="{{ config.description }}" />
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
{% if config.extra.favicon %}
|
||||
<link rel="icon" type="image/png" href={{ config.extra.favicon }} />
|
||||
{% endif %}
|
||||
|
||||
{# opengraph, twitter_cards #}
|
||||
|
||||
|
||||
{% if config.extra.useCDN | default(value=false) %}
|
||||
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@1,500&display=swap" rel="stylesheet">
|
||||
<link href="https://fonts.googleapis.com/css2?family=Fira+Sans&display=swap" rel="stylesheet">
|
||||
<link href="https://fonts.googleapis.com/css?family=Roboto+Mono" rel="stylesheet">
|
||||
{% else %}
|
||||
<link href={{ get_url(path="css/fonts.css") }} rel="stylesheet" />
|
||||
{% endif %}
|
||||
|
||||
<link rel="stylesheet" type="text/css" media="screen" href={{ get_url(path="/main.css") }} />
|
||||
|
||||
|
||||
|
||||
|
||||
<script data-goatcounter="https://andwati.goatcounter.com/count" async src="//gc.zgo.at/count.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@@ -1 +0,0 @@
|
||||
<a href="#{{ id }}" aria-label='Anchor link for: {{ id }}'></a>
|
||||
+50
-25
@@ -1,26 +1,51 @@
|
||||
{% extends "section.html" %}
|
||||
{% block content %}
|
||||
<main id="content">
|
||||
<header>
|
||||
<h1>Archive</h1>
|
||||
</header>
|
||||
{% set section = get_section(path="posts/_index.md") %}
|
||||
{% for year, posts in section.pages
|
||||
| sort(attribute="date")
|
||||
| reverse
|
||||
| group_by(attribute="year") %}
|
||||
<div class="archive">
|
||||
<h2>{{ year }}</h2>
|
||||
<ul>
|
||||
{% for post in posts %}
|
||||
<li>
|
||||
<time>{{ post.date | date(format="%d-%h") }}</time>
|
||||
<a href="{{ post.permalink }}">{{ post.title }}</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
{% extends "base.html" %} {% block title %}{{ section.title }} | {{ config.title }}{% endblock title
|
||||
%} {% block content %}
|
||||
<div class="post-detail">
|
||||
<header class="post-header" style="margin-bottom: 3rem">
|
||||
<h1 class="post-title" style="font-size: clamp(2.5rem, 5vw, 4.5rem)">Archive</h1>
|
||||
</header>
|
||||
|
||||
<div class="archive-list" style="max-width: 65ch; margin: 0 auto">
|
||||
{% set section = get_section(path="posts/_index.md") %} {% for year, posts in section.pages |
|
||||
sort(attribute="date") | reverse | group_by(attribute="year") %}
|
||||
<div class="archive" style="margin-bottom: 2rem">
|
||||
<h2
|
||||
style="font-size: 1.5rem; color: var(--text-color); margin-bottom: 1rem; margin-top: 2rem"
|
||||
>
|
||||
{{ year }}
|
||||
</h2>
|
||||
<ul
|
||||
style="
|
||||
list-style-type: none;
|
||||
padding-left: 1rem;
|
||||
margin: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.75rem;
|
||||
"
|
||||
>
|
||||
{% for post in posts %}
|
||||
<li class="hover-scale" style="display: flex; gap: 1rem; align-items: baseline">
|
||||
<time
|
||||
datetime="{{ post.date }}"
|
||||
style="
|
||||
color: var(--text-muted);
|
||||
font-size: 0.95rem;
|
||||
white-space: nowrap;
|
||||
font-family: var(--font-mono);
|
||||
"
|
||||
>{{ post.date | date(format="%d-%b") }}</time
|
||||
>
|
||||
<a
|
||||
href="{{ post.permalink }}"
|
||||
style="color: var(--accent-color); font-weight: 500; font-size: 1.05rem"
|
||||
>{{ post.title }}</a
|
||||
>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</main>
|
||||
{% include "_partials/footer.html" %}
|
||||
{% endblock content %}
|
||||
</ul>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
{% endblock content %}
|
||||
|
||||
@@ -0,0 +1,285 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>{% block title %}{{ config.title }}{% endblock title %}</title>
|
||||
<meta name="description" content="{% block description %}{{ config.description }}{% endblock description %}">
|
||||
<meta name="view-transition" content="same-origin">
|
||||
|
||||
<!-- Canonical URL -->
|
||||
<link rel="canonical" href="{% block canonical %}{{ config.base_url }}/{% endblock canonical %}">
|
||||
|
||||
<!-- Open Graph -->
|
||||
<meta property="og:site_name" content="{{ config.title }}">
|
||||
<meta property="og:title" content="{% block og_title %}{{ config.title }}{% endblock og_title %}">
|
||||
<meta property="og:description" content="{% block og_description %}{{ config.description }}{% endblock og_description %}">
|
||||
<meta property="og:url" content="{% block og_url %}{{ config.base_url }}/{% endblock og_url %}">
|
||||
<meta property="og:type" content="{% block og_type %}website{% endblock og_type %}">
|
||||
<meta property="og:locale" content="en_US">
|
||||
<meta property="og:image" content="{% block og_image %}{{ config.base_url }}/images/og-image.png{% endblock og_image %}">
|
||||
<meta property="og:image:width" content="1200">
|
||||
<meta property="og:image:height" content="630">
|
||||
<meta property="og:image:alt" content="{{ config.title }} — {{ config.description }}">
|
||||
{% block og_extra %}{% endblock og_extra %}
|
||||
|
||||
<!-- Twitter Card -->
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<meta name="twitter:site" content="{{ config.extra.twitter_handle | default(value="@andwati_") }}">
|
||||
<meta name="twitter:title" content="{% block twitter_title %}{{ config.title }}{% endblock twitter_title %}">
|
||||
<meta name="twitter:description" content="{% block twitter_description %}{{ config.description }}{% endblock twitter_description %}">
|
||||
<meta name="twitter:image" content="{% block twitter_image %}{{ config.base_url }}/images/og-image.png{% endblock twitter_image %}">
|
||||
{% block twitter_extra %}{% endblock twitter_extra %}
|
||||
|
||||
<!-- Theme initializer (runs before paint to avoid flash) -->
|
||||
<script>
|
||||
(function() {
|
||||
try {
|
||||
var storedTheme = localStorage.getItem('theme');
|
||||
var prefersDark = window.matchMedia('(prefers-color-scheme: dark)').matches;
|
||||
var shouldUseDark = storedTheme ? storedTheme === 'dark' : prefersDark;
|
||||
if (shouldUseDark) {
|
||||
document.documentElement.classList.add('dark');
|
||||
} else {
|
||||
document.documentElement.classList.remove('dark');
|
||||
}
|
||||
} catch (e) {
|
||||
document.documentElement.classList.add('dark');
|
||||
}
|
||||
})();
|
||||
</script>
|
||||
|
||||
<!-- SEO: WebSite + Person JSON-LD (sitewide graph) -->
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@graph": [
|
||||
{
|
||||
"@type": "WebSite",
|
||||
"@id": "{{ config.base_url }}/#website",
|
||||
"url": "{{ config.base_url }}/",
|
||||
"name": "{{ config.title }}",
|
||||
"description": "{{ config.description }}",
|
||||
"inLanguage": "en-US"
|
||||
},
|
||||
{
|
||||
"@type": "Person",
|
||||
"@id": "{{ config.base_url }}/#author",
|
||||
"name": "{{ config.extra.author | default(value="mockingspectre") }}",
|
||||
"url": "{{ config.base_url }}/about/",
|
||||
"sameAs": [
|
||||
{% if config.extra.github_url %}"{{ config.extra.github_url }}"{% if config.extra.twitter_url or config.extra.youtube_url %},{% endif %}{% endif %}
|
||||
{% if config.extra.twitter_url %}"{{ config.extra.twitter_url }}"{% if config.extra.youtube_url %},{% endif %}{% endif %}
|
||||
{% if config.extra.youtube_url %}"{{ config.extra.youtube_url }}"{% endif %}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
</script>
|
||||
|
||||
{% if config.extra.google_analytics %}
|
||||
<!-- Google Analytics — loaded only after cookie consent -->
|
||||
<script>
|
||||
// GA loader called by cookieconsent on consent
|
||||
function loadGoogleAnalytics() {
|
||||
if (window._gaLoaded) return;
|
||||
window._gaLoaded = true;
|
||||
var s = document.createElement('script');
|
||||
s.async = true;
|
||||
s.src = 'https://www.googletagmanager.com/gtag/js?id={{ config.extra.google_analytics }}';
|
||||
document.head.appendChild(s);
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){dataLayer.push(arguments);}
|
||||
window.gtag = gtag;
|
||||
gtag('js', new Date());
|
||||
gtag('config', '{{ config.extra.google_analytics }}', { anonymize_ip: true });
|
||||
}
|
||||
</script>
|
||||
{% endif %}
|
||||
|
||||
<!-- CookieConsent v3 (self-hosted) -->
|
||||
<link rel="stylesheet" href="{{ get_url(path="css/cookieconsent.css") }}">
|
||||
<script defer src="{{ get_url(path="js/cookieconsent.umd.js") }}"></script>
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
if (typeof CookieConsent === 'undefined') return;
|
||||
|
||||
CookieConsent.run({
|
||||
cookie: { name: 'cc_cookie' },
|
||||
|
||||
// Mirror the site's html.dark class — banner switches with the theme toggle
|
||||
darkMode: ['class', 'dark'],
|
||||
|
||||
guiOptions: {
|
||||
consentModal: {
|
||||
layout: 'bar inline',
|
||||
position: 'bottom',
|
||||
flipButtons: false,
|
||||
equalWeightButtons: false
|
||||
},
|
||||
preferencesModal: {
|
||||
layout: 'box',
|
||||
position: 'right'
|
||||
}
|
||||
},
|
||||
|
||||
onConsent: function() {
|
||||
if (CookieConsent.acceptedCategory('analytics')) {
|
||||
if (typeof loadGoogleAnalytics === 'function') loadGoogleAnalytics();
|
||||
}
|
||||
},
|
||||
onChange: function() {
|
||||
if (CookieConsent.acceptedCategory('analytics')) {
|
||||
if (typeof loadGoogleAnalytics === 'function') loadGoogleAnalytics();
|
||||
}
|
||||
},
|
||||
|
||||
categories: {
|
||||
necessary: { enabled: true, readOnly: true },
|
||||
analytics: {
|
||||
enabled: false,
|
||||
readOnly: false,
|
||||
autoClear: { cookies: [{ name: /^(_ga|_gid|_gat)/ }] }
|
||||
}
|
||||
},
|
||||
|
||||
language: {
|
||||
default: 'en',
|
||||
translations: {
|
||||
en: {
|
||||
consentModal: {
|
||||
title: 'We use cookies',
|
||||
description: 'This site uses Google Analytics to understand how visitors interact with content. No personal data is sold or shared.',
|
||||
acceptAllBtn: 'Accept',
|
||||
acceptNecessaryBtn: 'Reject',
|
||||
showPreferencesBtn: 'Manage preferences'
|
||||
},
|
||||
preferencesModal: {
|
||||
title: 'Cookie preferences',
|
||||
acceptAllBtn: 'Accept all',
|
||||
acceptNecessaryBtn: 'Reject all',
|
||||
savePreferencesBtn: 'Save preferences',
|
||||
closeIconLabel: 'Close',
|
||||
sections: [
|
||||
{
|
||||
title: 'Strictly necessary',
|
||||
description: 'Required for the site to function. Cannot be disabled.',
|
||||
linkedCategory: 'necessary'
|
||||
},
|
||||
{
|
||||
title: 'Analytics',
|
||||
description: 'Google Analytics — helps understand which content is most useful. No personal data sold.',
|
||||
linkedCategory: 'analytics'
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<!-- CookieConsent: accent colors pulled from CSS custom properties -->
|
||||
<style>
|
||||
/* Light mode */
|
||||
#cc-main {
|
||||
--cc-btn-primary-bg: var(--accent-color);
|
||||
--cc-btn-primary-color: #ffffff;
|
||||
--cc-btn-primary-border-color: var(--accent-color);
|
||||
--cc-btn-primary-hover-bg: var(--accent-hover);
|
||||
--cc-btn-primary-hover-border-color: var(--accent-hover);
|
||||
--cc-toggle-on-bg: var(--accent-color);
|
||||
--cc-font-family: 'Outfit', sans-serif;
|
||||
--cc-btn-border-radius: 6px;
|
||||
--cc-modal-border-radius: 10px;
|
||||
}
|
||||
|
||||
/* Dark mode — synced with html.dark via darkMode: ['class', 'dark'] */
|
||||
#cc-main.cc--darkmode {
|
||||
--cc-bg: #111111;
|
||||
--cc-primary-color: #f4f4f5;
|
||||
--cc-secondary-color: #a1a1aa;
|
||||
--cc-btn-primary-bg: var(--accent-color);
|
||||
--cc-btn-primary-color: #ffffff;
|
||||
--cc-btn-primary-border-color: var(--accent-color);
|
||||
--cc-btn-primary-hover-bg: var(--accent-hover);
|
||||
--cc-btn-primary-hover-border-color: var(--accent-hover);
|
||||
--cc-btn-secondary-bg: rgba(255,255,255,0.06);
|
||||
--cc-btn-secondary-color: #a1a1aa;
|
||||
--cc-btn-secondary-border-color: rgba(255,255,255,0.1);
|
||||
--cc-btn-secondary-hover-bg: rgba(255,255,255,0.12);
|
||||
--cc-btn-secondary-hover-color: #f4f4f5;
|
||||
--cc-separator-border-color: rgba(255,255,255,0.1);
|
||||
--cc-cookie-category-block-bg: rgba(255,255,255,0.04);
|
||||
--cc-cookie-category-block-border: rgba(255,255,255,0.08);
|
||||
--cc-toggle-on-bg: var(--accent-color);
|
||||
--cc-footer-bg: #0a0a0a;
|
||||
--cc-footer-border-color: rgba(255,255,255,0.08);
|
||||
}
|
||||
|
||||
/* Accent top border, no default box-shadow */
|
||||
#cc-main .cm,
|
||||
#cc-main .pm { box-shadow: none !important; }
|
||||
#cc-main .cm { border-top: 2px solid var(--accent-color) !important; }
|
||||
</style>
|
||||
|
||||
{% block head %}{% endblock head %}
|
||||
|
||||
<!-- Font preloads (eliminate FOUT on first paint) -->
|
||||
<link rel="preload" href="{{ get_url(path="fonts/outfit/outfit-v15-latin-regular.woff2") }}" as="font" type="font/woff2" crossorigin>
|
||||
<link rel="preload" href="{{ get_url(path="fonts/jetbrains-mono/JetBrainsMono-Regular.woff2") }}" as="font" type="font/woff2" crossorigin>
|
||||
|
||||
<!-- CSS -->
|
||||
<link rel="stylesheet" href="{{ get_url(path="main.css") }}">
|
||||
<link rel="stylesheet" href="{{ get_url(path="css/syntax.css") }}">
|
||||
|
||||
<!-- Fonts (self-hosted) -->
|
||||
<link rel="stylesheet" href="{{ get_url(path="css/fonts.css") }}">
|
||||
|
||||
<!-- RSS Feed -->
|
||||
<link rel="alternate" type="application/rss+xml" title="{{ config.title }} RSS Feed" href="{{ get_url(path="rss.xml") }}">
|
||||
|
||||
</head>
|
||||
<body class="smooth-scroll">
|
||||
<div class="site-container">
|
||||
{% include "partials/header.html" %}
|
||||
|
||||
<main class="main-content">
|
||||
{% block content %}{% endblock content %}
|
||||
</main>
|
||||
|
||||
{% include "partials/footer.html" %}
|
||||
</div>
|
||||
<button id="scroll-to-top" class="scroll-to-top" aria-label="Scroll to top">
|
||||
<svg viewBox="0 0 24 24" width="24" height="24" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round">
|
||||
<polyline points="18 15 12 9 6 15"></polyline>
|
||||
</svg>
|
||||
</button>
|
||||
<!-- Search Modal Overlay -->
|
||||
<div id="search-overlay" class="search-overlay" aria-hidden="true">
|
||||
<div class="search-modal" role="dialog" aria-modal="true" aria-label="Search posts">
|
||||
<div class="search-header">
|
||||
<svg viewBox="0 0 24 24" width="18" height="18" stroke="currentColor" stroke-width="2" fill="none" 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>
|
||||
<input type="text" id="search-input" placeholder="{{ config.extra.search_placeholder | default(value="Search posts...") }}" autocomplete="off">
|
||||
</div>
|
||||
<div id="search-results" class="search-results"></div>
|
||||
<div class="search-footer">
|
||||
<span>Navigate: <kbd>↑</kbd> <kbd>↓</kbd></span>
|
||||
<span>Select: <kbd>Enter</kbd></span>
|
||||
<span>Close: <kbd>ESC</kbd></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Global Scripts -->
|
||||
<script defer src="{{ get_url(path="js/theme.js") }}"></script>
|
||||
<script defer src="{{ get_url(path="js/scroll-top.js") }}"></script>
|
||||
<script defer src="{{ get_url(path="js/copy-code.js") }}"></script>
|
||||
<!-- Search Scripts -->
|
||||
<script defer src="{{ get_url(path="js/elasticlunr.min.js") }}"></script>
|
||||
<script defer src="{{ get_url(path="js/search.js") }}"></script>
|
||||
|
||||
{% block scripts %}{% endblock scripts %}
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"version": "https://jsonfeed.org/version/1.1",
|
||||
"title": "{{ config.title | escape }}",
|
||||
"home_page_url": "{{ config.base_url | escape }}",
|
||||
"feed_url": "{{ feed_url | escape }}",
|
||||
"description": "{{ config.description | escape }}",
|
||||
"authors": [
|
||||
{
|
||||
"name": "{{ config.extra.author | escape }}"
|
||||
}
|
||||
],
|
||||
"items": [
|
||||
{%- for page in pages %}
|
||||
{
|
||||
"id": "{{ page.permalink | escape }}",
|
||||
"url": "{{ page.permalink | escape }}",
|
||||
"title": "{{ page.title | escape }}",
|
||||
"content_html": {{ page.content | json_encode | safe }},
|
||||
"date_published": "{{ page.date | date(format="%Y-%m-%dT%H:%M:%S%:z") }}"
|
||||
}{% if not loop.last %},{% endif %}
|
||||
{%- endfor %}
|
||||
]
|
||||
}
|
||||
+43
-62
@@ -1,64 +1,45 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>{% block title %}{{ section.title }}{% endblock title %}</title>
|
||||
<meta name="author" content="{{ config.extra.author }}">
|
||||
{% block meta %}
|
||||
<meta name="description" content="{{ section.description }}">
|
||||
<meta property="og:site_name" content="andwati.github.io">
|
||||
<meta property="og:locale" content="en-us">
|
||||
<meta property="og:url" content="{{ section.permalink }}">
|
||||
<meta property="og:title" content="{{ section.title }}">
|
||||
<meta property="og:description" content="{{ section.description }}">
|
||||
<meta property="og:type" content="profile">
|
||||
<meta property="og:image" content="https://andwati.github.io/self.webp">
|
||||
<meta property="twitter:card" content="summary">
|
||||
<meta property="twitter:site" content="@andwati_">
|
||||
<meta property="twitter:title" content="{{ section.title }}">
|
||||
<meta property="twitter:description" content="{{ section.description }}">
|
||||
<meta property="twitter:image" content="https://andwati.github.io/self.webp">
|
||||
{% endblock meta %}
|
||||
<link rel="dns-prefetch" href="https://fonts.googleapis.com/">
|
||||
<link rel="stylesheet" href="/site.css">
|
||||
<link rel="shortcut icon" href="/favicon.svg" type="image/svg+xml">
|
||||
{% block links %}
|
||||
<link rel="canonical" href="{{ section.permalink }}">
|
||||
{% endblock links %}
|
||||
<script data-goatcounter="https://andwati.goatcounter.com/count"
|
||||
async src="//gc.zgo.at/count.js"></script>
|
||||
{% extends "base.html" %} {% block canonical %}{{ config.base_url }}/{% endblock canonical %} {%
|
||||
block og_url %}{{ config.base_url }}/{% endblock og_url %} {% block head %}
|
||||
<!-- SEO: Blog (Homepage) JSON-LD -->
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@type": "Blog",
|
||||
"@id": "{{ config.base_url }}/#blog",
|
||||
"name": "{{ config.title }}",
|
||||
"description": "{{ config.description }}",
|
||||
"url": "{{ config.base_url }}/",
|
||||
"inLanguage": "en-US",
|
||||
"author": {
|
||||
"@type": "Person",
|
||||
"@id": "{{ config.base_url }}/#author"
|
||||
},
|
||||
"blogPost": [
|
||||
{% set section = get_section(path="posts/_index.md") %}
|
||||
{% for page in section.pages %}
|
||||
{
|
||||
"@type": "BlogPosting",
|
||||
"@id": "{{ page.permalink }}#article",
|
||||
"headline": {{ page.title | json_encode }},
|
||||
"url": "{{ page.permalink }}"
|
||||
{% if page.date %},"datePublished": "{{ page.date | date(format="%+") }}"{% endif %}
|
||||
}{% if not loop.last %},{% endif %}
|
||||
{% endfor %}
|
||||
]
|
||||
}
|
||||
</script>
|
||||
{% endblock head %} {% block content %} {% include "partials/profile.html" %}
|
||||
|
||||
<link rel="stylesheet" href="{{ get_url(path='katex.min.css') }}">
|
||||
<script defer src="{{ get_url(path='js/katex.min.js') }}"></script>
|
||||
<script defer src="{{ get_url(path='js/auto-render.min.js') }}"></script>
|
||||
<script defer>
|
||||
document.addEventListener("DOMContentLoaded", function() {
|
||||
renderMathInElement(document.body, {
|
||||
delimiters: [
|
||||
{left: "$$", right: "$$", display: true},
|
||||
{left: "$", right: "$", display: false}
|
||||
]
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
<div
|
||||
class="post-feed-list"
|
||||
style="max-width: 65ch; margin: 0 auto; display: flex; flex-direction: column; gap: 2.5rem"
|
||||
>
|
||||
{% set section = get_section(path="posts/_index.md") %}
|
||||
{% set post_limit = config.extra.homepage_post_limit | default(value=3) %}
|
||||
{% for page in section.pages | slice(end=post_limit) %} {% include "partials/post-card.html" %} {% endfor %}
|
||||
</div>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
{% block content %}
|
||||
<main id="content">
|
||||
<header>
|
||||
<h1>{{ section.title }}</h1>
|
||||
</header>
|
||||
{{ section.content | safe }}
|
||||
</main>
|
||||
{% include "_partials/footer.html" %}
|
||||
{% endblock content %}
|
||||
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
<div class="view-all-posts">
|
||||
<a href="/posts" class="btn-view-all">{{ config.extra.view_all_posts_label | default(value="View all posts") }}</a>
|
||||
</div>
|
||||
{% endblock content %}
|
||||
|
||||
+155
-29
@@ -1,36 +1,162 @@
|
||||
{% extends "index.html" %}
|
||||
{% extends "base.html" %}
|
||||
|
||||
{# Override base title to use the page-specific title. #}
|
||||
{% block title %}{{ page.title }}{% endblock title %}
|
||||
{% block title %}{{ page.title }} | {{ config.title }}{% endblock title %}
|
||||
{% block description %}{{ page.description | default(value=config.description) }}{% endblock description %}
|
||||
{% block canonical %}{{ page.permalink }}{% endblock canonical %}
|
||||
|
||||
{# Override base meta tags to use page-specific ones. #}
|
||||
{% block meta %}
|
||||
<meta name="description" content="{{ page.description }}">
|
||||
<meta property="og:site_name" content="andwati.github.io">
|
||||
<meta property="og:locale" content="en-us">
|
||||
<meta property="og:url" content="{{ page.permalink }}">
|
||||
<meta property="og:title" content="{{ page.title }}">
|
||||
<meta property="og:description" content="{{ page.description }}">
|
||||
<meta property="og:image" content="https://andwati.github.io/self.webp">
|
||||
<meta property="twitter:card" content="summary">
|
||||
<meta property="twitter:site" content="@andwati_">
|
||||
<meta property="twitter:title" content="{{ page.title }}">
|
||||
<meta property="twitter:description" content="{{ page.description }}">
|
||||
<meta property="twitter:image" content="https://andwati.github.io/self.webp">
|
||||
{% endblock meta %}
|
||||
{# Open Graph overrides for article pages #}
|
||||
{% block og_title %}{{ page.title }}{% endblock og_title %}
|
||||
{% block og_description %}{{ page.description | default(value=config.description) }}{% endblock og_description %}
|
||||
{% block og_url %}{{ page.permalink }}{% endblock og_url %}
|
||||
{% block og_type %}article{% endblock og_type %}
|
||||
{% block og_extra %}
|
||||
{% if page.date %}<meta property="article:published_time" content="{{ page.date | date(format="%+") }}">{% endif %}
|
||||
{% if page.updated %}<meta property="article:modified_time" content="{{ page.updated | date(format="%+") }}">{% endif %}
|
||||
<meta property="article:author" content="{{ config.extra.author | default(value="mockingspectre") }}">
|
||||
{% if page.taxonomies.tags %}
|
||||
{% for tag in page.taxonomies.tags %}
|
||||
<meta property="article:tag" content="{{ tag }}">
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% endblock og_extra %}
|
||||
|
||||
{# Twitter Card overrides #}
|
||||
{% block twitter_title %}{{ page.title }}{% endblock twitter_title %}
|
||||
{% block twitter_description %}{{ page.description | default(value=config.description) }}{% endblock twitter_description %}
|
||||
|
||||
{% block head %}
|
||||
<!-- SEO: BlogPosting JSON-LD -->
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@type": "BlogPosting",
|
||||
"@id": "{{ page.permalink }}#article",
|
||||
"mainEntityOfPage": {
|
||||
"@type": "WebPage",
|
||||
"@id": "{{ page.permalink }}"
|
||||
},
|
||||
"headline": {{ page.title | json_encode }},
|
||||
"description": {{ page.description | default(value=config.description) | json_encode }},
|
||||
"url": "{{ page.permalink }}",
|
||||
"inLanguage": "en-US",
|
||||
{% if page.date %}"datePublished": "{{ page.date | date(format="%+") }}",{% endif %}
|
||||
{% if page.updated %}"dateModified": "{{ page.updated | date(format="%+") }}",{% else %}{% if page.date %}"dateModified": "{{ page.date | date(format="%+") }}",{% endif %}{% endif %}
|
||||
"author": {
|
||||
"@type": "Person",
|
||||
"@id": "{{ config.base_url }}/#author",
|
||||
"name": "{{ config.extra.author | default(value="mockingspectre") }}",
|
||||
"url": "{{ config.base_url }}/about/"
|
||||
},
|
||||
"publisher": {
|
||||
"@type": "Person",
|
||||
"@id": "{{ config.base_url }}/#author",
|
||||
"name": "{{ config.extra.author | default(value="mockingspectre") }}",
|
||||
"url": "{{ config.base_url }}/about/"
|
||||
},
|
||||
"isPartOf": {
|
||||
"@type": "Blog",
|
||||
"@id": "{{ config.base_url }}/#blog",
|
||||
"name": "{{ config.title }}",
|
||||
"url": "{{ config.base_url }}/"
|
||||
}
|
||||
{% if page.taxonomies.tags %}
|
||||
,"keywords": [{% for tag in page.taxonomies.tags %}"{{ tag }}"{% if not loop.last %},{% endif %}{% endfor %}]
|
||||
{% endif %}
|
||||
}
|
||||
</script>
|
||||
|
||||
{% if page.extra.math %}
|
||||
<link rel="stylesheet" href="{{ get_url(path="css/katex/katex.min.css") }}">
|
||||
<script defer src="{{ get_url(path="js/katex/katex.min.js") }}"></script>
|
||||
<script defer src="{{ get_url(path="js/katex/auto-render.min.js") }}"
|
||||
onload="renderMathInElement(document.body);"></script>
|
||||
{% endif %}
|
||||
|
||||
{% if page.extra.mermaid %}
|
||||
<script type="module">
|
||||
import mermaid from '{{ get_url(path="js/mermaid.min.js") }}';
|
||||
mermaid.initialize({ startOnLoad: true, theme: 'dark' });
|
||||
</script>
|
||||
{% endif %}
|
||||
|
||||
<!-- Reading Progress Bar -->
|
||||
<script defer src="{{ get_url(path="js/progress.js") }}"></script>
|
||||
|
||||
<!-- Footnote backlinks -->
|
||||
<script defer src="{{ get_url(path="js/footnotes.js") }}"></script>
|
||||
|
||||
<!-- Heading anchor links -->
|
||||
<script defer src="{{ get_url(path="js/heading-anchors.js") }}"></script>
|
||||
|
||||
<!-- Sticky TOC active-section highlighting -->
|
||||
{% if page.toc %}
|
||||
<script defer src="{{ get_url(path="js/toc.js") }}"></script>
|
||||
{% endif %}
|
||||
|
||||
{% endblock head %}
|
||||
|
||||
{# Override base links to use page-specific ones. #}
|
||||
{% block links %}
|
||||
<link rel="canonical" href="{{ page.permalink }}">
|
||||
{% endblock links %}
|
||||
|
||||
{# Override base content to use page-specific content. #}
|
||||
{% block content %}
|
||||
<main id="content">
|
||||
<header>
|
||||
<h1>{{ page.title }}</h1>
|
||||
<div class="reading-progress-container" aria-hidden="true">
|
||||
<div class="reading-progress-bar" id="reading-progress-bar"></div>
|
||||
</div>
|
||||
|
||||
<div class="post-layout">
|
||||
<article class="post-detail">
|
||||
<header class="post-header">
|
||||
<h1 class="post-title">{{ page.title }}</h1>
|
||||
<div class="post-meta">
|
||||
{% if page.date %}
|
||||
<span class="post-meta-item">
|
||||
<span class="post-meta-label">Posted</span>
|
||||
<time datetime="{{ page.date }}">{{ page.date | date(format="%B %e, %Y") }}</time>
|
||||
</span>
|
||||
{% endif %}
|
||||
{% if page.updated and page.updated != page.date %}
|
||||
<span class="post-meta-sep" aria-hidden="true">·</span>
|
||||
<span class="post-meta-item post-meta-updated">
|
||||
<span class="post-meta-label">Updated</span>
|
||||
<time datetime="{{ page.updated }}">{{ page.updated | date(format="%B %e, %Y") }}</time>
|
||||
</span>
|
||||
{% endif %}
|
||||
{% if page.reading_time %}
|
||||
<span class="post-meta-sep" aria-hidden="true">·</span>
|
||||
<span class="post-meta-item">
|
||||
{{ page.reading_time }} min read
|
||||
</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
</header>
|
||||
{{ page.content | safe }}
|
||||
</main>
|
||||
{% include "_partials/footer.html" %}
|
||||
|
||||
{% include "partials/series-nav.html" %}
|
||||
|
||||
{% include "partials/toc.html" %}
|
||||
|
||||
<div class="post-body">
|
||||
{{ page.content | safe }}
|
||||
</div>
|
||||
|
||||
{% include "partials/post-nav.html" %}
|
||||
|
||||
{% include "partials/related-posts.html" %}
|
||||
|
||||
<footer class="post-footer">
|
||||
<div class="post-tags-share">
|
||||
<div class="post-tags">
|
||||
{% if page.taxonomies.tags %}
|
||||
{% for tag in page.taxonomies.tags %}
|
||||
<span class="tag">#{{ tag }}</span>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</div>
|
||||
{% include "partials/social-share.html" %}
|
||||
</div>
|
||||
|
||||
<!-- Utterances comments (posts only) -->
|
||||
{% include "partials/comments.html" %}
|
||||
</footer>
|
||||
</article>
|
||||
|
||||
{% include "partials/toc-sidebar.html" %}
|
||||
</div>
|
||||
{% endblock content %}
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
{% if config.extra.enable_comments and config.extra.utterances_repo and page %}
|
||||
{% if page.extra.comments is not defined or page.extra.comments %}
|
||||
<div class="comments" id="comments" style="margin-top: 4rem;">
|
||||
<script src="https://utteranc.es/client.js"
|
||||
repo="{{ config.extra.utterances_repo }}"
|
||||
issue-term="pathname"
|
||||
theme="{{ config.extra.utterances_theme | default(value="github-dark") }}"
|
||||
crossorigin="anonymous"
|
||||
async>
|
||||
</script>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
@@ -0,0 +1,10 @@
|
||||
<footer class="site-footer">
|
||||
<div class="footer-content">
|
||||
<p>
|
||||
© {{ now() | date(format="%Y") }} {{ config.extra.author | default(value="Author") }}
|
||||
</p>
|
||||
<div class="social-links">
|
||||
<!-- Social Links -->
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
@@ -0,0 +1,100 @@
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>{% block title %}{{ config.title }}{% endblock title %}</title>
|
||||
<meta name="description" content="{% block description %}{{ config.description | default(value="Binary exploitation, reverse engineering, and offensive security blog.") }}{% endblock description %}">
|
||||
|
||||
<!-- Canonical URL -->
|
||||
<link rel="canonical" href="{% block canonical %}{{ config.base_url }}{% endblock canonical %}">
|
||||
|
||||
<!-- Open Graph -->
|
||||
<meta property="og:site_name" content="{{ config.title }}">
|
||||
<meta property="og:title" content="{% block og_title %}{{ config.title }}{% endblock og_title %}">
|
||||
<meta property="og:description" content="{% block og_description %}{{ config.description | default(value="Binary exploitation, reverse engineering, and offensive security blog.") }}{% endblock og_description %}">
|
||||
<meta property="og:url" content="{% block og_url %}{{ config.base_url }}{% endblock og_url %}">
|
||||
<meta property="og:type" content="{% block og_type %}website{% endblock og_type %}">
|
||||
<meta property="og:locale" content="en_US">
|
||||
{% block og_extra %}{% endblock og_extra %}
|
||||
|
||||
<!-- Twitter Card -->
|
||||
<meta name="twitter:card" content="summary">
|
||||
<meta name="twitter:site" content="{{ config.extra.twitter_handle | default(value="@andwati_") }}">
|
||||
<meta name="twitter:title" content="{% block twitter_title %}{{ config.title }}{% endblock twitter_title %}">
|
||||
<meta name="twitter:description" content="{% block twitter_description %}{{ config.description | default(value="Binary exploitation, reverse engineering, and offensive security blog.") }}{% endblock twitter_description %}">
|
||||
{% block twitter_extra %}{% endblock twitter_extra %}
|
||||
|
||||
<script>
|
||||
(function() {
|
||||
try {
|
||||
var storedTheme = localStorage.getItem('theme');
|
||||
var prefersDark = window.matchMedia('(prefers-color-scheme: dark)').matches;
|
||||
var shouldUseDark = storedTheme ? storedTheme === 'dark' : prefersDark;
|
||||
|
||||
if (shouldUseDark) {
|
||||
document.documentElement.classList.add('dark');
|
||||
} else {
|
||||
document.documentElement.classList.remove('dark');
|
||||
}
|
||||
} catch (e) {
|
||||
document.documentElement.classList.add('dark');
|
||||
}
|
||||
})();
|
||||
</script>
|
||||
|
||||
<!-- SEO: WebSite + Person JSON-LD -->
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@graph": [
|
||||
{
|
||||
"@type": "WebSite",
|
||||
"@id": "{{ config.base_url }}/#website",
|
||||
"url": "{{ config.base_url }}/",
|
||||
"name": "{{ config.title }}",
|
||||
"description": "{{ config.description }}",
|
||||
"inLanguage": "en-US",
|
||||
"potentialAction": {
|
||||
"@type": "SearchAction",
|
||||
"target": {
|
||||
"@type": "EntryPoint",
|
||||
"urlTemplate": "{{ config.base_url }}/posts?q={search_term_string}"
|
||||
},
|
||||
"query-input": "required name=search_term_string"
|
||||
}
|
||||
},
|
||||
{
|
||||
"@type": "Person",
|
||||
"@id": "{{ config.base_url }}/#author",
|
||||
"name": "{{ config.extra.author | default(value="mockingspectre") }}",
|
||||
"url": "{{ config.base_url }}/about/",
|
||||
"sameAs": [
|
||||
{% if config.extra.github_url %}"{{ config.extra.github_url }}"{% if config.extra.twitter_url or config.extra.youtube_url %},{% endif %}{% endif %}
|
||||
{% if config.extra.twitter_url %}"{{ config.extra.twitter_url }}"{% if config.extra.youtube_url %},{% endif %}{% endif %}
|
||||
{% if config.extra.youtube_url %}"{{ config.extra.youtube_url }}"{% endif %}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
</script>
|
||||
|
||||
{% if config.extra.google_analytics %}
|
||||
<!-- Google Analytics -->
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id={{ config.extra.google_analytics }}"></script>
|
||||
<script>
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){dataLayer.push(arguments);}
|
||||
gtag('js', new Date());
|
||||
gtag('config', '{{ config.extra.google_analytics }}');
|
||||
</script>
|
||||
{% endif %}
|
||||
|
||||
<!-- CSS -->
|
||||
<link rel="stylesheet" href="{{ get_url(path="main.css") }}">
|
||||
<link rel="stylesheet" href="{{ get_url(path="css/syntax.css") }}">
|
||||
|
||||
<!-- Fonts (self-hosted) -->
|
||||
<link rel="stylesheet" href="{{ get_url(path="css/fonts.css") }}">
|
||||
|
||||
<!-- RSS Feed -->
|
||||
<link rel="alternate" type="application/rss+xml" title="{{ config.title }} RSS Feed" href="{{ get_url(path="rss.xml") }}">
|
||||
|
||||
{% block head %}{% endblock head %}
|
||||
@@ -0,0 +1,32 @@
|
||||
<header class="site-header">
|
||||
<nav class="nav-container">
|
||||
<a href="{{ get_url(path="") }}" class="brand-link">
|
||||
<span class="brand-text">{{ config.title | default(value="pwna4profit") }}</span>
|
||||
</a>
|
||||
|
||||
<div class="nav-right">
|
||||
<!-- Collapsible links -->
|
||||
<div id="nav-links" class="nav-links">
|
||||
{% if config.extra.menu %}
|
||||
{% for item in config.extra.menu %}
|
||||
<a href="{{ get_url(path=item.url) }}" class="nav-item">{{ item.name }}</a>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
<div class="nav-controls">
|
||||
<button class="search-toggle" aria-label="Search">
|
||||
<svg viewBox="0 0 24 24" width="18" height="18" stroke="currentColor" stroke-width="2" fill="none" 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>
|
||||
</button>
|
||||
<button id="theme-toggle" class="theme-toggle hover-scale" aria-label="Toggle Dark Mode">
|
||||
<svg class="sun-icon" viewBox="0 0 24 24" width="18" height="18" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><path d="M12 2a10 10 0 0 0 0 20z" fill="currentColor"></path></svg>
|
||||
<svg class="moon-icon" viewBox="0 0 24 24" width="18" height="18" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><path d="M12 2a10 10 0 0 0 0 20z" fill="currentColor"></path></svg>
|
||||
</button>
|
||||
<button id="nav-toggle" class="nav-toggle" aria-label="Toggle navigation" aria-expanded="false">
|
||||
<svg class="hamburger-icon" viewBox="0 0 24 24" width="22" height="22" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round"><line x1="3" y1="6" x2="21" y2="6"/><line x1="3" y1="12" x2="21" y2="12"/><line x1="3" y1="18" x2="21" y2="18"/></svg>
|
||||
<svg class="close-icon" viewBox="0 0 24 24" width="22" height="22" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round"><line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/></svg>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
</header>
|
||||
@@ -0,0 +1,69 @@
|
||||
<article
|
||||
class="feed-item"
|
||||
style="border-bottom: 1px dashed var(--border-color); padding-bottom: 2rem"
|
||||
>
|
||||
<h2 class="item-title" style="font-size: 1.25rem; margin-bottom: 0.5rem; font-weight: 600">
|
||||
<a href="{{ page.permalink }}">{{ page.title }}</a>
|
||||
</h2>
|
||||
|
||||
<div
|
||||
class="item-meta"
|
||||
style="
|
||||
font-size: 0.85rem;
|
||||
color: var(--text-muted);
|
||||
margin-bottom: 1rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.25rem;
|
||||
"
|
||||
>
|
||||
<span>{{ page.date | date(format="%Y-%m-%d") }}</span>
|
||||
{% if page.reading_time %}
|
||||
<span style="opacity: 0.5;">·</span>
|
||||
<span>{{ page.reading_time }} min read</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
<div
|
||||
class="item-snippet"
|
||||
style="font-size: 0.95rem; color: var(--text-color); margin-bottom: 1rem; opacity: 0.9"
|
||||
>
|
||||
{% if page.description %}
|
||||
<p style="margin: 0">{{ page.description }}</p>
|
||||
{% else %}
|
||||
<p style="margin: 0">{{ page.content | striptags | truncate(length=120) | safe }}</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
<div
|
||||
class="item-footer"
|
||||
style="display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem"
|
||||
>
|
||||
<a href="{{ page.permalink }}" style="color: var(--accent-color)">Read more...</a>
|
||||
|
||||
{% if page.taxonomies.tags %}
|
||||
<div
|
||||
class="item-tags"
|
||||
style="display: flex; align-items: center; gap: 0.5rem; color: var(--text-muted)"
|
||||
>
|
||||
<svg
|
||||
viewBox="0 0 24 24"
|
||||
width="14"
|
||||
height="14"
|
||||
stroke="currentColor"
|
||||
stroke-width="2"
|
||||
fill="none"
|
||||
>
|
||||
<path
|
||||
d="M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z"
|
||||
></path>
|
||||
<line x1="7" y1="7" x2="7.01" y2="7"></line>
|
||||
</svg>
|
||||
<span>
|
||||
{% for tag in page.taxonomies.tags %} {{ tag }}{% if not loop.last %}, {% endif %} {% endfor
|
||||
%}
|
||||
</span>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</article>
|
||||
@@ -0,0 +1,17 @@
|
||||
{% if page.lower or page.higher %}
|
||||
<nav class="post-nav" aria-label="Post navigation">
|
||||
{% if page.higher %}
|
||||
<a class="post-nav-link post-nav-prev hover-scale" href="{{ page.higher.permalink }}">
|
||||
<span class="post-nav-label">← Previous</span>
|
||||
<span class="post-nav-title">{{ page.higher.title }}</span>
|
||||
</a>
|
||||
{% endif %}
|
||||
|
||||
{% if page.lower %}
|
||||
<a class="post-nav-link post-nav-next hover-scale" href="{{ page.lower.permalink }}">
|
||||
<span class="post-nav-label">Next →</span>
|
||||
<span class="post-nav-title">{{ page.lower.title }}</span>
|
||||
</a>
|
||||
{% endif %}
|
||||
</nav>
|
||||
{% endif %}
|
||||
@@ -0,0 +1,45 @@
|
||||
{% if config.extra.show_profile %}
|
||||
<div class="profile-section" style="display: flex; flex-direction: column; align-items: center; justify-content: center; margin-bottom: 4rem; text-align: center;">
|
||||
{% if config.extra.avatar_url %}
|
||||
<div class="avatar" style="width: 100px; height: 100px; border-radius: 50%; overflow: hidden; margin-bottom: 1rem; background-color: #1a1a1a; display: flex; align-items: center; justify-content: center;">
|
||||
<img src="{{ config.extra.avatar_url }}" alt="Avatar" loading="lazy" decoding="async" style="width: 100%; height: 100%; object-fit: cover;" onerror="this.src='data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox=\'0 0 24 24\' fill=\'none\' stroke=\'%23f9fafb\' stroke-width=\'2\' stroke-linecap=\'round\' stroke-linejoin=\'round\'><path d=\'M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2\'></path><circle cx=\'12\' cy=\'7\' r=\'4\'></circle></svg>'"/>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if config.extra.profile_subtitle %}
|
||||
<p class="profile-subtitle" style="color: var(--text-muted); font-size: 1rem; margin-bottom: 1rem;">{{ config.extra.profile_subtitle }}</p>
|
||||
{% endif %}
|
||||
|
||||
<div class="social-links" style="display: flex; gap: 1rem; color: var(--text-muted);">
|
||||
{% if config.extra.github_url %}
|
||||
<a href="{{ config.extra.github_url }}" style="color: inherit;" class="hover-scale" aria-label="GitHub">
|
||||
<svg viewBox="0 0 24 24" width="20" height="20" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"><path d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"></path></svg>
|
||||
</a>
|
||||
{% endif %}
|
||||
{% if config.extra.twitter_url %}
|
||||
<a href="{{ config.extra.twitter_url }}" style="color: inherit;" class="hover-scale" aria-label="Twitter">
|
||||
<svg viewBox="0 0 24 24" width="20" height="20" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"><path d="M23 3a10.9 10.9 0 0 1-3.14 1.53 4.48 4.48 0 0 0-7.86 3v1A10.66 10.66 0 0 1 3 4s-4 9 5 13a11.64 11.64 0 0 1-7 2c9 5 20 0 20-11.5a4.5 4.5 0 0 0-.08-.83A7.72 7.72 0 0 0 23 3z"></path></svg>
|
||||
</a>
|
||||
{% endif %}
|
||||
{% if config.extra.youtube_url %}
|
||||
<a href="{{ config.extra.youtube_url }}" style="color: inherit;" class="hover-scale" aria-label="YouTube">
|
||||
<svg viewBox="0 0 24 24" width="20" height="20" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"><path d="M22.54 6.42a2.78 2.78 0 0 0-1.94-2C18.88 4 12 4 12 4s-6.88 0-8.6.42a2.78 2.78 0 0 0-1.94 2C1 8.13 1 12 1 12s0 3.87.46 5.58a2.78 2.78 0 0 0 1.94 2C5.12 20 12 20 12 20s6.88 0 8.6-.42a2.78 2.78 0 0 0 1.94-2C23 15.87 23 12 23 12s0-3.87-.46-5.58z"></path><polygon points="9.75 15.02 15.5 12 9.75 8.98 9.75 15.02"></polygon></svg>
|
||||
</a>
|
||||
{% endif %}
|
||||
{% if config.extra.linkedin_url %}
|
||||
<a href="{{ config.extra.linkedin_url }}" style="color: inherit;" class="hover-scale" aria-label="LinkedIn">
|
||||
<svg viewBox="0 0 24 24" width="20" height="20" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"><path d="M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z"></path><rect x="2" y="9" width="4" height="12"></rect><circle cx="4" cy="4" r="2"></circle></svg>
|
||||
</a>
|
||||
{% endif %}
|
||||
{% if config.extra.email %}
|
||||
<a href="mailto:{{ config.extra.email }}" style="color: inherit;" class="hover-scale" aria-label="Email">
|
||||
<svg viewBox="0 0 24 24" width="20" height="20" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"><path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"></path><polyline points="22,6 12,13 2,6"></polyline></svg>
|
||||
</a>
|
||||
{% endif %}
|
||||
{% if config.extra.show_rss_link %}
|
||||
<a href="{{ get_url(path="rss.xml") }}" style="color: inherit;" class="hover-scale" aria-label="RSS">
|
||||
<svg viewBox="0 0 24 24" width="20" height="20" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"><path d="M4 11a9 9 0 0 1 9 9"></path><path d="M4 4a16 16 0 0 1 16 16"></path><circle cx="5" cy="19" r="1"></circle></svg>
|
||||
</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
@@ -0,0 +1,38 @@
|
||||
{% if page.taxonomies.tags %}
|
||||
{# Get all pages in the posts section #}
|
||||
{% set section = get_section(path="posts/_index.md") %}
|
||||
|
||||
{# Initialize an array to hold related pages #}
|
||||
{% set related_pages = [] %}
|
||||
|
||||
{% for other_page in section.pages %}
|
||||
{% if other_page.permalink != page.permalink and other_page.taxonomies.tags %}
|
||||
{# Check for intersection manually #}
|
||||
{% set has_common_tag = false %}
|
||||
{% for tag in page.taxonomies.tags %}
|
||||
{% if tag in other_page.taxonomies.tags %}
|
||||
{% set_global has_common_tag = true %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
{% if has_common_tag %}
|
||||
{% set_global related_pages = related_pages | concat(with=other_page) %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
{# If we found any related pages, pick top N and display them #}
|
||||
{% set related_limit = config.extra.related_posts_limit | default(value=3) %}
|
||||
{% if related_pages | length > 0 %}
|
||||
<div class="related-posts-section">
|
||||
<h3>{{ config.extra.related_posts_title | default(value="Related Posts") }}</h3>
|
||||
<div class="related-posts-grid">
|
||||
{% for related_page in related_pages | slice(end=related_limit) %}
|
||||
{# We can use a simplified card or the existing post-card.html #}
|
||||
{% set page = related_page %}
|
||||
{% include "partials/post-card.html" %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
@@ -0,0 +1,31 @@
|
||||
{% if page.extra.series %}
|
||||
{% set section_data = get_section(path="posts/_index.md") %}
|
||||
{% set_global series_pages = [] %}
|
||||
{% for p in section_data.pages %}
|
||||
{% if p.extra.series and p.extra.series == page.extra.series %}
|
||||
{% set_global series_pages = series_pages | concat(with=p) %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% set series_sorted = series_pages | sort(attribute="extra.series_index") %}
|
||||
{% set series_total = series_sorted | length %}
|
||||
|
||||
<div class="series-nav" aria-label="Post series: {{ page.extra.series }}">
|
||||
<div class="series-nav-header">
|
||||
<span class="series-nav-eyebrow">Series</span>
|
||||
<span class="series-nav-title">{{ page.extra.series }}</span>
|
||||
<span class="series-nav-badge">{{ page.extra.series_index }} / {{ series_total }}</span>
|
||||
</div>
|
||||
<ol class="series-nav-list">
|
||||
{% for p in series_sorted %}
|
||||
<li class="series-nav-item{% if p.permalink == page.permalink %} is-current{% endif %}">
|
||||
<span class="series-nav-index">{{ p.extra.series_index }}</span>
|
||||
{% if p.permalink == page.permalink %}
|
||||
<span class="series-nav-label" aria-current="page">{{ p.title }}</span>
|
||||
{% else %}
|
||||
<a class="series-nav-label" href="{{ p.permalink }}">{{ p.title }}</a>
|
||||
{% endif %}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ol>
|
||||
</div>
|
||||
{% endif %}
|
||||
@@ -0,0 +1,124 @@
|
||||
<div class="social-share">
|
||||
<span class="share-label">Share:</span>
|
||||
<a
|
||||
href="https://twitter.com/intent/tweet?text={{ page.title | urlencode }}&url={{ page.permalink | urlencode }}"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
class="share-btn x"
|
||||
aria-label="Share on X"
|
||||
>
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
viewBox="0 0 24 24"
|
||||
width="18"
|
||||
height="18"
|
||||
fill="currentColor"
|
||||
>
|
||||
<path
|
||||
d="M14.234 10.162 22.977 0h-2.072l-7.591 8.824L7.251 0H.258l9.168 13.343L.258 24H2.33l8.016-9.318L16.749 24h6.993zm-2.837 3.299-.929-1.329L3.076 1.56h3.182l5.965 8.532.929 1.329 7.754 11.09h-3.182z"
|
||||
/>
|
||||
</svg>
|
||||
</a>
|
||||
<a
|
||||
href="https://bsky.app/intent/compose?text={{ page.title | urlencode }}%20{{ page.permalink | urlencode }}"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
class="share-btn bluesky"
|
||||
aria-label="Share on Bluesky"
|
||||
>
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
viewBox="0 0 24 24"
|
||||
width="18"
|
||||
height="18"
|
||||
fill="currentColor"
|
||||
>
|
||||
<path
|
||||
d="M5.202 2.857C7.954 4.922 10.913 9.11 12 11.358c1.087-2.247 4.046-6.436 6.798-8.501C20.783 1.366 24 .213 24 3.883c0 .732-.42 6.156-.667 7.037-.856 3.061-3.978 3.842-6.755 3.37 4.854.826 6.089 3.562 3.422 6.299-5.065 5.196-7.28-1.304-7.847-2.97-.104-.305-.152-.448-.153-.327 0-.121-.05.022-.153.327-.568 1.666-2.782 8.166-7.847 2.97-2.667-2.737-1.432-5.473 3.422-6.3-2.777.473-5.899-.308-6.755-3.369C.42 10.04 0 4.615 0 3.883c0-3.67 3.217-2.517 5.202-1.026"
|
||||
/>
|
||||
</svg>
|
||||
</a>
|
||||
<a
|
||||
href="https://www.linkedin.com/shareArticle?mini=true&url={{ page.permalink | urlencode }}&title={{ page.title | urlencode }}"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
class="share-btn linkedin"
|
||||
aria-label="Share on LinkedIn"
|
||||
>
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
viewBox="0 0 24 24"
|
||||
width="18"
|
||||
height="18"
|
||||
stroke="currentColor"
|
||||
stroke-width="2"
|
||||
fill="none"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
>
|
||||
<path
|
||||
d="M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z"
|
||||
></path>
|
||||
<rect x="2" y="9" width="4" height="12"></rect>
|
||||
<circle cx="4" cy="4" r="2"></circle>
|
||||
</svg>
|
||||
</a>
|
||||
<a
|
||||
href="https://reddit.com/submit?url={{ page.permalink | urlencode }}&title={{ page.title | urlencode }}"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
class="share-btn reddit"
|
||||
aria-label="Share on Reddit"
|
||||
>
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
viewBox="0 0 24 24"
|
||||
width="20"
|
||||
height="20"
|
||||
fill="currentColor"
|
||||
>
|
||||
<path
|
||||
d="M12 0C5.373 0 0 5.373 0 12c0 3.314 1.343 6.314 3.515 8.485l-2.286 2.286C.775 23.225 1.097 24 1.738 24H12c6.627 0 12-5.373 12-12S18.627 0 12 0Zm4.388 3.199c1.104 0 1.999.895 1.999 1.999 0 1.105-.895 2-1.999 2-.946 0-1.739-.657-1.947-1.539v.002c-1.147.162-2.032 1.15-2.032 2.341v.007c1.776.067 3.4.567 4.686 1.363.473-.363 1.064-.58 1.707-.58 1.547 0 2.802 1.254 2.802 2.802 0 1.117-.655 2.081-1.601 2.531-.088 3.256-3.637 5.876-7.997 5.876-4.361 0-7.905-2.617-7.998-5.87-.954-.447-1.614-1.415-1.614-2.538 0-1.548 1.255-2.802 2.803-2.802.645 0 1.239.218 1.712.585 1.275-.79 2.881-1.291 4.64-1.365v-.01c0-1.663 1.263-3.034 2.88-3.207.188-.911.993-1.595 1.959-1.595Zm-8.085 8.376c-.784 0-1.459.78-1.506 1.797-.047 1.016.64 1.429 1.426 1.429.786 0 1.371-.369 1.418-1.385.047-1.017-.553-1.841-1.338-1.841Zm7.406 0c-.786 0-1.385.824-1.338 1.841.047 1.017.634 1.385 1.418 1.385.785 0 1.473-.413 1.426-1.429-.046-1.017-.721-1.797-1.506-1.797Zm-3.703 4.013c-.974 0-1.907.048-2.77.135-.147.015-.241.168-.183.305.483 1.154 1.622 1.964 2.953 1.964 1.33 0 2.47-.81 2.953-1.964.057-.137-.037-.29-.184-.305-.863-.087-1.795-.135-2.769-.135Z"
|
||||
/>
|
||||
</svg>
|
||||
</a>
|
||||
<a
|
||||
href="https://news.ycombinator.com/submitlink?u={{ page.permalink | urlencode }}&t={{ page.title | urlencode }}"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
class="share-btn hackernews"
|
||||
aria-label="Share on Hacker News"
|
||||
>
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
viewBox="0 0 24 24"
|
||||
width="18"
|
||||
height="18"
|
||||
fill="currentColor"
|
||||
>
|
||||
<path d="M0 24V0h24v24H0zM6.95 5.55L11 13v5h2v-5l4.05-7.45h-2.25L12 10.65 9.2 5.55H6.95z" />
|
||||
</svg>
|
||||
</a>
|
||||
<a
|
||||
href="mailto:?subject={{ page.title | urlencode }}&body={{ page.permalink | urlencode }}"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
class="share-btn email"
|
||||
aria-label="Share via Email"
|
||||
>
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
viewBox="0 0 24 24"
|
||||
width="18"
|
||||
height="18"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
>
|
||||
<path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"></path>
|
||||
<polyline points="22,6 12,13 2,6"></polyline>
|
||||
</svg>
|
||||
</a>
|
||||
</div>
|
||||
@@ -0,0 +1,21 @@
|
||||
{% if page.toc %}
|
||||
<aside class="post-toc-sidebar" aria-label="Table of contents">
|
||||
<nav class="toc-nav">
|
||||
<h2 class="toc-sidebar-title">Contents</h2>
|
||||
<ul>
|
||||
{% for h1 in page.toc %}
|
||||
<li>
|
||||
<a href="{{ h1.permalink | safe }}" data-toc-id="{{ h1.id }}">{{ h1.title }}</a>
|
||||
{% if h1.children %}
|
||||
<ul>
|
||||
{% for h2 in h1.children %}
|
||||
<li><a href="{{ h2.permalink | safe }}" data-toc-id="{{ h2.id }}">{{ h2.title }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</nav>
|
||||
</aside>
|
||||
{% endif %}
|
||||
@@ -0,0 +1,19 @@
|
||||
{% if page.toc %}
|
||||
<details class="post-toc">
|
||||
<summary>Table of Contents</summary>
|
||||
<ul>
|
||||
{% for h1 in page.toc %}
|
||||
<li>
|
||||
<a href="{{ h1.permalink | safe }}">{{ h1.title }}</a>
|
||||
{% if h1.children %}
|
||||
<ul>
|
||||
{% for h2 in h1.children %}
|
||||
<li><a href="{{ h2.permalink | safe }}">{{ h2.title }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</details>
|
||||
{% endif %}
|
||||
@@ -1,42 +0,0 @@
|
||||
{% extends "page.html" %}
|
||||
{% import "post_macros.html" as page_macros %}
|
||||
|
||||
{# Override page-specific meta tags to add post-specific ones. In particular,
|
||||
posts add article metadata. #}
|
||||
{% block meta %}
|
||||
<meta name="description" content="{{ page.description }}">
|
||||
<meta property="og:site_name" content="andwati.github.io">
|
||||
<meta property="og:locale" content="en-us">
|
||||
<meta property="og:url" content="{{ page.permalink }}">
|
||||
<meta property="og:title" content="{{ page.title }}">
|
||||
<meta property="og:description" content="{{ page.description }}">
|
||||
<meta property="og:type" content="article">
|
||||
<meta property="og:image" content="https://andwati.github.io/self.webp">
|
||||
<meta property="og:article:author" content="{{ config.extra.author }}">
|
||||
<meta property="og:article:published_time" content="{{ page.date }}">
|
||||
<meta property="og:article:section" content="Posts">
|
||||
{% for tag in page.taxonomies.tags %}
|
||||
<meta property="og:article:tag" content="{{ tag }}">
|
||||
{% endfor %}
|
||||
<meta property="twitter:card" content="summary">
|
||||
<meta property="twitter:site" content="@andwati_">
|
||||
<meta property="twitter:title" content="{{ page.title }}">
|
||||
<meta property="twitter:description" content="{{ page.description }}">
|
||||
<meta property="twitter:image" content="https://andwati.github.io/self.webp">
|
||||
{% endblock meta %}
|
||||
|
||||
{% block content %}
|
||||
<main>
|
||||
<article id="content">
|
||||
<header>
|
||||
<h1>{{ page.title }}</h1>
|
||||
{{ page_macros::meta(page=page) }}
|
||||
</header>
|
||||
{{ page.content | safe }}
|
||||
</article>
|
||||
{% include "_partials/comments.html" %}
|
||||
</main>
|
||||
{% include "_partials/footer.html" %}
|
||||
|
||||
|
||||
{% endblock content %}
|
||||
@@ -1,26 +0,0 @@
|
||||
{% macro meta(page) %}
|
||||
<div class="post-meta">
|
||||
<time datetime="{{ page.date }}">{{ page.date | date(format="%F") }}</time>
|
||||
{% if page.taxonomies.tags %}
|
||||
<span class="accent"> ⬡ </span>
|
||||
{% for tag in page.taxonomies.tags %}
|
||||
<a href="{{ get_taxonomy_url(kind="tags", name=tag) }}">#{{ tag }}</a>
|
||||
{%- if page.taxonomies.tags | length > 1 and loop.index != page.taxonomies.tags | length -%}
|
||||
,
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
<div class="accent">☕{{ page.reading_time }} minutes 📝 {{ page.word_count }}</div>
|
||||
</div>
|
||||
{% endmacro meta %}
|
||||
|
||||
{% macro snippet(page) %}
|
||||
<article>
|
||||
<h2><a href="{{ page.permalink }}">{{ page.title }}</a></h2>
|
||||
{{ self::meta(page=page) }}
|
||||
{% if page.summary %}
|
||||
{{ page.summary | safe }}
|
||||
{% endif %}
|
||||
<nav><a href="{{ page.permalink }}">Read More →</a></nav>
|
||||
</article>
|
||||
{% endmacro snippet %}
|
||||
+166
-11
@@ -1,14 +1,169 @@
|
||||
{% extends "section.html" %}
|
||||
{% import "post_macros.html" as post_macros %}
|
||||
{% extends "base.html" %} {% block title %}Posts{% if paginator.current_index > 1 %} — Page {{
|
||||
paginator.current_index }}{% endif %} | {{ config.title }}{% endblock title %} {% block description
|
||||
%}Browse all posts on {{ config.title }} — binary exploitation, reverse engineering, and offensive
|
||||
security.{% endblock description %} {% block canonical %}{% if paginator.current_index == 1 %}{{
|
||||
config.base_url }}/posts/{% else %}{{ paginator.first }}page/{{ paginator.current_index }}/{% endif
|
||||
%}{% endblock canonical %} {% block og_title %}Posts{% if paginator.current_index > 1 %} — Page {{
|
||||
paginator.current_index }}{% endif %} | {{ config.title }}{% endblock og_title %} {% block
|
||||
og_description %}Browse all posts on {{ config.title }} — binary exploitation, reverse engineering,
|
||||
and offensive security.{% endblock og_description %} {% block og_url %}{% if paginator.current_index
|
||||
== 1 %}{{ config.base_url }}/posts/{% else %}{{ paginator.first }}page/{{ paginator.current_index
|
||||
}}/{% endif %}{% endblock og_url %} {% block head %}
|
||||
<!-- SEO: CollectionPage JSON-LD -->
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@type": "CollectionPage",
|
||||
"@id": "{{ config.base_url }}/posts/#collection",
|
||||
"name": "Posts | {{ config.title }}",
|
||||
"description": "Browse all posts on {{ config.title }}",
|
||||
"url": "{{ config.base_url }}/posts/",
|
||||
"inLanguage": "en-US",
|
||||
"isPartOf": {
|
||||
"@type": "WebSite",
|
||||
"@id": "{{ config.base_url }}/#website"
|
||||
},
|
||||
"hasPart": [
|
||||
{% for page in paginator.pages %}
|
||||
{
|
||||
"@type": "BlogPosting",
|
||||
"@id": "{{ page.permalink }}#article",
|
||||
"headline": {{ page.title | json_encode }},
|
||||
"url": "{{ page.permalink }}"
|
||||
{% if page.date %},"datePublished": "{{ page.date | date(format="%+") }}"{% endif %}
|
||||
}{% if not loop.last %},{% endif %}
|
||||
{% endfor %}
|
||||
]
|
||||
}
|
||||
</script>
|
||||
|
||||
{% block content %}
|
||||
<main id="content">
|
||||
<header>
|
||||
<h1>Posts</h1>
|
||||
</header>
|
||||
{% for page in section.pages %}
|
||||
{{ post_macros::snippet(page=page) }}
|
||||
<!-- Pagination link hints for crawlers -->
|
||||
{% if paginator.previous %}<link rel="prev" href="{{ paginator.previous }}" />{% endif %} {% if
|
||||
paginator.next %}<link rel="next" href="{{ paginator.next }}" />{% endif %} {% endblock head %} {%
|
||||
block content %}
|
||||
<div class="feed-page">
|
||||
<div class="hero" style="padding-bottom: 2rem">
|
||||
<div class="hero-content">
|
||||
<h1 class="hero-title">Posts</h1>
|
||||
<p class="hero-subtitle">
|
||||
Exploring binary exploitation, reverse engineering, and offensive security.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="post-feed">
|
||||
{% for page in paginator.pages %}
|
||||
<article class="feed-item hover-scale">
|
||||
<a href="{{ page.permalink }}" class="item-link">
|
||||
<div style="display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.25rem;">
|
||||
<time datetime="{{ page.date }}" class="item-date"
|
||||
>{{ page.date | date(format="%b %d, %Y") }}</time
|
||||
>
|
||||
{% if page.reading_time %}
|
||||
<span style="color: var(--text-muted); font-size: 0.85rem; opacity: 0.6;">·</span>
|
||||
<span style="color: var(--text-muted); font-size: 0.85rem; font-family: var(--font-mono);">∼{{ page.reading_time }} min read</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
<h2 class="item-title">{{ page.title }}</h2>
|
||||
{% if page.description %}
|
||||
<p class="item-desc">{{ page.description }}</p>
|
||||
{% endif %}
|
||||
</a>
|
||||
</article>
|
||||
{% endfor %}
|
||||
</main>
|
||||
{% include "_partials/footer.html" %}
|
||||
</div>
|
||||
|
||||
{% if paginator.number_pagers > 1 %}
|
||||
<nav class="pagination" aria-label="Posts pagination">
|
||||
{# ← Previous #} {% if paginator.previous %}
|
||||
<a class="pagination-arrow" href="{{ paginator.previous }}" aria-label="Previous page">
|
||||
<svg
|
||||
width="16"
|
||||
height="16"
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
>
|
||||
<polyline points="15 18 9 12 15 6"></polyline>
|
||||
</svg>
|
||||
</a>
|
||||
{% else %}
|
||||
<span class="pagination-arrow is-disabled" aria-disabled="true">
|
||||
<svg
|
||||
width="16"
|
||||
height="16"
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
>
|
||||
<polyline points="15 18 9 12 15 6"></polyline>
|
||||
</svg>
|
||||
</span>
|
||||
{% endif %} {# Page numbers with smart windowing #}
|
||||
<div class="pagination-pages">
|
||||
{% set cur = paginator.current_index %} {% set total = paginator.number_pagers %} {% for i in
|
||||
range(start=1, end=total+1) %} {% set show = false %} {# Always show first and last #} {% if i
|
||||
== 1 or i == total %}{% set show = true %}{% endif %} {# Show window of 2 around current #} {%
|
||||
if i >= cur - 2 and i <= cur + 2 %}{% set show = true %}{% endif %} {% if show %} {# Show
|
||||
ellipsis before this page if there's a gap #} {% if i > 1 and i > cur - 2 and i != 2 %} {# We
|
||||
need gap indicator — output ellipsis if prev shown page was not adjacent #} {% if i == cur - 2
|
||||
and cur - 3 > 1 %}
|
||||
<span class="pagination-ellipsis">…</span>
|
||||
{% elif i == total and cur + 2 < total - 1 %}
|
||||
<span class="pagination-ellipsis">…</span>
|
||||
{% endif %} {% endif %} {% if i == cur %}
|
||||
<span class="pagination-num is-current" aria-current="page">{{ i }}</span>
|
||||
{% else %} {% if i == 1 %}
|
||||
<a class="pagination-num" href="{{ paginator.first }}" aria-label="Page {{ i }}">{{ i }}</a>
|
||||
{% elif i == total %}
|
||||
<a class="pagination-num" href="{{ paginator.last }}" aria-label="Page {{ i }}">{{ i }}</a>
|
||||
{% else %}
|
||||
<a class="pagination-num" href="{{ paginator.first }}page/{{ i }}/" aria-label="Page {{ i }}"
|
||||
>{{ i }}</a
|
||||
>
|
||||
{% endif %} {% endif %} {% endif %} {% endfor %}
|
||||
</div>
|
||||
|
||||
{# Next → #} {% if paginator.next %}
|
||||
<a class="pagination-arrow" href="{{ paginator.next }}" aria-label="Next page">
|
||||
<svg
|
||||
width="16"
|
||||
height="16"
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
>
|
||||
<polyline points="9 18 15 12 9 6"></polyline>
|
||||
</svg>
|
||||
</a>
|
||||
{% else %}
|
||||
<span class="pagination-arrow is-disabled" aria-disabled="true">
|
||||
<svg
|
||||
width="16"
|
||||
height="16"
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
>
|
||||
<polyline points="9 18 15 12 9 6"></polyline>
|
||||
</svg>
|
||||
</span>
|
||||
{% endif %}
|
||||
</nav>
|
||||
|
||||
<p class="pagination-meta">Page {{ paginator.current_index }} of {{ paginator.number_pagers }}</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endblock content %}
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
User-agent: *
|
||||
Allow: /
|
||||
|
||||
Sitemap: {{ config.base_url }}/sitemap.xml
|
||||
@@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?xml-stylesheet type="text/xsl" href="{{ get_url(path="rss.xsl", trailing_slash=false) }}"?>
|
||||
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
|
||||
<channel>
|
||||
<title>{{ config.title }}</title>
|
||||
<link>{{ config.base_url }}</link>
|
||||
<description>{{ config.description }}</description>
|
||||
<generator>Zola</generator>
|
||||
<language>{{ config.default_language | default(value="en") }}</language>
|
||||
<atom:link href="{{ feed_url | safe }}" rel="self" type="application/rss+xml"/>
|
||||
<lastBuildDate>{{ last_updated | date(format="%a, %d %b %Y %H:%M:%S %z") }}</lastBuildDate>
|
||||
{% for page in pages %}
|
||||
<item>
|
||||
<title>{{ page.title }}</title>
|
||||
<pubDate>{{ page.date | date(format="%a, %d %b %Y %H:%M:%S %z") }}</pubDate>
|
||||
<author>{{ page.extra.author | default(value=config.extra.author) | default(value="Unknown") }}</author>
|
||||
<link>{{ page.permalink | safe }}</link>
|
||||
<guid>{{ page.permalink | safe }}</guid>
|
||||
<description xml:base="{{ page.permalink | safe }}">{{ page.content }}</description>
|
||||
</item>
|
||||
{% endfor %}
|
||||
</channel>
|
||||
</rss>
|
||||
@@ -1,35 +0,0 @@
|
||||
{% extends "index.html" %}
|
||||
|
||||
{# Override base title to use the section-specific title. #}
|
||||
{% block title %}{{ section.title }}{% endblock title %}
|
||||
|
||||
{# Override base meta tags to use page-specific ones. #}
|
||||
{% block meta %}
|
||||
<meta name="description" content="{{ section.description }}">
|
||||
<meta property="og:site_name" content="andwati.github.io">
|
||||
<meta property="og:locale" content="en-us">
|
||||
<meta property="og:url" content="{{ section.permalink }}">
|
||||
<meta property="og:title" content="{{ section.title }}">
|
||||
<meta property="og:description" content="{{ section.description }}">
|
||||
<meta property="og:image" content="https://andwati.github.io/self.webp">
|
||||
<meta property="twitter:card" content="summary">
|
||||
<meta property="twitter:site" content="@andwati_">
|
||||
<meta property="twitter:title" content="{{ section.title }}">
|
||||
<meta property="twitter:description" content="{{ section.description }}">
|
||||
<meta property="twitter:image" content="https://andwati.github.io/self.webp">
|
||||
{% endblock meta %}
|
||||
|
||||
{# Override base links to use section-specific ones. #}
|
||||
{% block links %}
|
||||
<link rel="canonical" href="{{ section.permalink }}">
|
||||
{% endblock links %}
|
||||
|
||||
{# Override base content to use section-specific content. #}
|
||||
{% block content %}
|
||||
<main>
|
||||
<header>
|
||||
<h1>{{ section.title }}</h1>
|
||||
</header>
|
||||
{{ section.content | safe }}
|
||||
</main>
|
||||
{% endblock content %}
|
||||
@@ -0,0 +1,9 @@
|
||||
<aside class="callout callout-danger">
|
||||
<div class="callout-header">
|
||||
<svg class="callout-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"></polygon><line x1="15" y1="9" x2="9" y2="15"></line><line x1="9" y1="9" x2="15" y2="15"></line></svg>
|
||||
<span class="callout-title">{% if title %}{{ title }}{% else %}Danger{% endif %}</span>
|
||||
</div>
|
||||
<div class="callout-content">
|
||||
{{ body | markdown | safe }}
|
||||
</div>
|
||||
</aside>
|
||||
@@ -0,0 +1,9 @@
|
||||
<aside class="callout callout-note">
|
||||
<div class="callout-header">
|
||||
<svg class="callout-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><line x1="12" y1="16" x2="12" y2="12"></line><line x1="12" y1="8" x2="12.01" y2="8"></line></svg>
|
||||
<span class="callout-title">{% if title %}{{ title }}{% else %}Note{% endif %}</span>
|
||||
</div>
|
||||
<div class="callout-content">
|
||||
{{ body | markdown | safe }}
|
||||
</div>
|
||||
</aside>
|
||||
@@ -0,0 +1,9 @@
|
||||
<aside class="callout callout-tip">
|
||||
<div class="callout-header">
|
||||
<svg class="callout-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><path d="M12 8v4"></path><path d="M12 16h.01"></path></svg>
|
||||
<span class="callout-title">{% if title %}{{ title }}{% else %}Tip{% endif %}</span>
|
||||
</div>
|
||||
<div class="callout-content">
|
||||
{{ body | markdown | safe }}
|
||||
</div>
|
||||
</aside>
|
||||
@@ -0,0 +1,9 @@
|
||||
<aside class="callout callout-warning">
|
||||
<div class="callout-header">
|
||||
<svg class="callout-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"></path><line x1="12" y1="9" x2="12" y2="13"></line><line x1="12" y1="17" x2="12.01" y2="17"></line></svg>
|
||||
<span class="callout-title">{% if title %}{{ title }}{% else %}Warning{% endif %}</span>
|
||||
</div>
|
||||
<div class="callout-content">
|
||||
{{ body | markdown | safe }}
|
||||
</div>
|
||||
</aside>
|
||||
@@ -0,0 +1,9 @@
|
||||
<div class="youtube-wrapper">
|
||||
<iframe
|
||||
src="https://www.youtube-nocookie.com/embed/{{ id }}{% if autoplay %}?autoplay=1{% endif %}"
|
||||
{% if title %}title="{{ title }}"{% endif %}
|
||||
loading="lazy"
|
||||
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
|
||||
allowfullscreen>
|
||||
</iframe>
|
||||
</div>
|
||||
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||
{% for sitemap_entry in entries %}
|
||||
<url>
|
||||
<loc>{{ sitemap_entry.permalink | safe }}</loc>
|
||||
{% if sitemap_entry.updated %}
|
||||
<lastmod>{{ sitemap_entry.updated }}</lastmod>
|
||||
{% elif sitemap_entry.date %}
|
||||
<lastmod>{{ sitemap_entry.date }}</lastmod>
|
||||
{% endif %}
|
||||
{% if sitemap_entry.permalink == "https://pwnforfunandprofit.xyz/" %}
|
||||
<changefreq>daily</changefreq>
|
||||
<priority>1.0</priority>
|
||||
{% else %}
|
||||
<changefreq>weekly</changefreq>
|
||||
<priority>0.5</priority>
|
||||
{% endif %}
|
||||
</url>
|
||||
{% endfor %}
|
||||
</urlset>
|
||||
@@ -1,39 +0,0 @@
|
||||
{% extends "index.html" %}
|
||||
|
||||
{% block title %}Tags{% endblock title %}
|
||||
|
||||
{% block meta %}
|
||||
<meta name="description" content="All tags.">
|
||||
<meta property="og:site_name" content="andwati.github.io">
|
||||
<meta property="og:locale" content="en-us">
|
||||
<meta property="og:url" content="{{ current_url }}">
|
||||
<meta property="og:title" content="Tags">
|
||||
<meta property="og:description" content="All tags.">
|
||||
<meta property="og:image" content="https://andwati.github.io/self.webp">
|
||||
<meta property="twitter:card" content="summary">
|
||||
<meta property="twitter:site" content="@andwati_">
|
||||
<meta property="twitter:title" content="Tags">
|
||||
<meta property="twitter:description" content="All tags.">
|
||||
<meta property="twitter:image" content="https://andwati.github.io/self.webp">
|
||||
{% endblock meta %}
|
||||
|
||||
{% block links %}
|
||||
<link rel="canonical" href="{{ current_url }}">
|
||||
{% endblock links %}
|
||||
|
||||
{% block content %}
|
||||
<main id="content">
|
||||
<header>
|
||||
<h1>All Tags</h1>
|
||||
</header>
|
||||
{% if terms %}
|
||||
<ul>
|
||||
{% for term in terms %}
|
||||
<li><a href="{{ term.permalink }}">#{{ term.name }}</a> ({{ term.pages | length }})</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
</main>
|
||||
{% include "_partials/footer.html" %}
|
||||
{% endblock content %}
|
||||
|
||||
@@ -1,35 +0,0 @@
|
||||
{% extends "index.html" %}
|
||||
{% import "post_macros.html" as post_macros %}
|
||||
|
||||
{% block title %}Tag - {{ term.name }}{% endblock title %}
|
||||
|
||||
{% block meta %}
|
||||
<meta name="description" content="Posts tagged as {{ term.name }}">
|
||||
<meta property="og:site_name" content="andwati.github.io">
|
||||
<meta property="og:locale" content="en-us">
|
||||
<meta property="og:url" content="{{ current_url }}">
|
||||
<meta property="og:title" content="Tag - {{ term.name }}">
|
||||
<meta property="og:description" content="Posts tagged as {{ term.name }}">
|
||||
<meta property="og:image" content="https://andwati.github.io/self.webp">
|
||||
<meta property="twitter:card" content="summary">
|
||||
<meta property="twitter:site" content="@andwati_">
|
||||
<meta property="twitter:title" content="Tag - {{ term.name }}">
|
||||
<meta property="twitter:description" content="Posts tagged as {{ term.name }}">
|
||||
<meta property="twitter:image" content="https://andwati.github.io/self.webp">
|
||||
{% endblock meta %}
|
||||
|
||||
{% block links %}
|
||||
<link rel="canonical" href="{{ current_url }}">
|
||||
{% endblock links %}
|
||||
|
||||
{% block content %}
|
||||
<main id="content">
|
||||
<header>
|
||||
<h1>Posts Tagged as "{{ term.name }}"</h1>
|
||||
</header>
|
||||
{% for page in term.pages %}
|
||||
{{ post_macros::snippet(page=page) }}
|
||||
{% endfor %}
|
||||
</main>
|
||||
{% include "_partials/footer.html" %}
|
||||
{% endblock content %}
|
||||
@@ -0,0 +1,58 @@
|
||||
{% extends "base.html" %} {% block title %}Tags | {{ config.title }}{% endblock title %} {% block
|
||||
description %}Browse all tags on {{ config.title }} — topics include binary exploitation, reverse
|
||||
engineering, and offensive security.{% endblock description %} {% block canonical %}{{
|
||||
config.base_url }}/tags/{% endblock canonical %} {% block og_title %}Tags | {{ config.title }}{%
|
||||
endblock og_title %} {% block og_description %}Browse all tags on {{ config.title }}{% endblock
|
||||
og_description %} {% block og_url %}{{ config.base_url }}/tags/{% endblock og_url %} {% block head
|
||||
%}
|
||||
<!-- SEO: Tags CollectionPage JSON-LD -->
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@type": "CollectionPage",
|
||||
"@id": "{{ config.base_url }}/tags/#collection",
|
||||
"name": "Tags | {{ config.title }}",
|
||||
"description": "Browse all tags on {{ config.title }}",
|
||||
"url": "{{ config.base_url }}/tags/",
|
||||
"inLanguage": "en-US",
|
||||
"isPartOf": {
|
||||
"@type": "WebSite",
|
||||
"@id": "{{ config.base_url }}/#website"
|
||||
}
|
||||
}
|
||||
</script>
|
||||
{% endblock head %} {% block content %}
|
||||
<div
|
||||
class="tags-page"
|
||||
style="max-width: 65ch; margin: 0 auto; padding-top: 4rem; text-align: center"
|
||||
>
|
||||
<header class="page-header" style="margin-bottom: 3rem">
|
||||
<h1 class="page-title" style="font-size: 2rem; font-weight: 600">All Tags</h1>
|
||||
</header>
|
||||
|
||||
<div
|
||||
class="tags-container"
|
||||
style="display: flex; flex-wrap: wrap; gap: 2rem; justify-content: center; align-items: center"
|
||||
>
|
||||
{% for term in terms %}
|
||||
<a
|
||||
href="{{ term.permalink }}"
|
||||
class="hover-scale"
|
||||
style="
|
||||
font-size: 1.1rem;
|
||||
color: var(--text-color);
|
||||
font-weight: 400;
|
||||
text-decoration: none;
|
||||
display: inline-flex;
|
||||
align-items: flex-start;
|
||||
"
|
||||
>
|
||||
{{ term.name }}<sup
|
||||
style="font-size: 0.7em; color: var(--text-muted); margin-left: 0.15rem; margin-top: 0.1rem"
|
||||
>{{ term.pages | length }}</sup
|
||||
>
|
||||
</a>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
{% endblock content %}
|
||||
@@ -0,0 +1,77 @@
|
||||
{% extends "base.html" %} {% block title %}Tag: {{ term.name }} | {{ config.title }}{% endblock
|
||||
title %} {% block description %}Posts tagged "{{ term.name }}" on {{ config.title }}{% endblock
|
||||
description %} {% block canonical %}{{ term.permalink }}{% endblock canonical %} {% block og_title
|
||||
%}Tag: {{ term.name }} | {{ config.title }}{% endblock og_title %} {% block og_description %}Posts
|
||||
tagged "{{ term.name }}" on {{ config.title }}{% endblock og_description %} {% block og_url %}{{
|
||||
term.permalink }}{% endblock og_url %} {% block head %}
|
||||
<!-- SEO: Tag CollectionPage JSON-LD -->
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@type": "CollectionPage",
|
||||
"@id": "{{ term.permalink }}#collection",
|
||||
"name": "Posts tagged \"{{ term.name }}\" | {{ config.title }}",
|
||||
"description": "Posts tagged \"{{ term.name }}\" on {{ config.title }}",
|
||||
"url": "{{ term.permalink }}",
|
||||
"inLanguage": "en-US",
|
||||
"isPartOf": {
|
||||
"@type": "WebSite",
|
||||
"@id": "{{ config.base_url }}/#website"
|
||||
},
|
||||
"hasPart": [
|
||||
{% for page in term.pages %}
|
||||
{
|
||||
"@type": "BlogPosting",
|
||||
"@id": "{{ page.permalink }}#article",
|
||||
"headline": {{ page.title | json_encode }},
|
||||
"url": "{{ page.permalink }}"
|
||||
{% if page.date %},"datePublished": "{{ page.date | date(format="%+") }}"{% endif %}
|
||||
}{% if not loop.last %},{% endif %}
|
||||
{% endfor %}
|
||||
]
|
||||
}
|
||||
</script>
|
||||
{% endblock head %} {% block content %}
|
||||
<div class="post-detail">
|
||||
<header class="post-header" style="margin-bottom: 3rem">
|
||||
<h1 class="post-title" style="font-size: clamp(2rem, 4vw, 3.5rem)">
|
||||
<span style="color: var(--text-muted)">#</span>{{ term.name }}
|
||||
</h1>
|
||||
</header>
|
||||
|
||||
<div class="archive-list" style="max-width: 65ch; margin: 0 auto">
|
||||
<div class="archive">
|
||||
<ul
|
||||
style="
|
||||
list-style-type: none;
|
||||
padding-left: 0;
|
||||
margin: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.75rem;
|
||||
"
|
||||
>
|
||||
{% for page in term.pages %}
|
||||
<li class="hover-scale" style="display: flex; gap: 1rem; align-items: baseline">
|
||||
<time
|
||||
datetime="{{ page.date }}"
|
||||
style="
|
||||
color: var(--text-muted);
|
||||
font-size: 0.95rem;
|
||||
white-space: nowrap;
|
||||
font-family: var(--font-mono);
|
||||
"
|
||||
>{{ page.date | date(format="%d-%b") }}</time
|
||||
>
|
||||
<a
|
||||
href="{{ page.permalink }}"
|
||||
style="color: var(--accent-color); font-weight: 500; font-size: 1.05rem"
|
||||
>{{ page.title }}</a
|
||||
>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock content %}
|
||||
Reference in New Issue
Block a user