Files
pwnforfunandprofit.xyz/templates/base.html
T

91 lines
4.7 KiB
HTML

<!DOCTYPE html>
<html lang="en" class="dark">
<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="{{ config.description | default(value="Binary exploitation, reverse engineering, and offensive security blog.") }}">
<!-- SEO Schema JSON-LD -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "WebSite",
"url": "{{ config.base_url }}",
"name": "{{ config.title }}"
}
</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") }}">
{% block head %}{% endblock head %}
</head>
<body class="smooth-scroll">
<div class="site-container">
<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">
<a href="{{ get_url(path="/about/") }}" class="nav-item">About</a>
<a href="{{ get_url(path="/posts") }}" class="nav-item">Posts</a>
<a href="{{ get_url(path="/tags/") }}" class="nav-item">Tags</a>
<a href="{{ get_url(path="@/archive/_index.md") }}" class="nav-item">Archive</a>
</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>
<main class="main-content">
{% block content %}{% endblock content %}
</main>
<footer class="site-footer">
<div class="footer-content">
<p>&copy; {{ now() | date(format="%Y") }} {{ config.extra.author | default(value="Author") }}</p>
<div class="social-links">
<!-- Social Links -->
</div>
</div>
</footer>
</div>
<script src="{{ get_url(path="js/theme.js") }}"></script>
{% block scripts %}{% endblock scripts %}
</body>
</html>