Files
pwnforfunandprofit.xyz/templates/base.html
T

87 lines
4.5 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 -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,400;0,700;1,400&display=swap" rel="stylesheet">
{% 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-links" style="display: flex; align-items: center; gap: 1.25rem;">
<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>
<span class="nav-separator" style="color: var(--text-muted); opacity: 0.5; margin: 0 -0.25rem;">|</span>
<button class="search-toggle hover-scale" aria-label="Search" style="background: none; border: none; color: inherit; cursor: pointer; display: flex; align-items: center; padding: 0;">
<svg viewBox="0 0 24 24" width="16" height="16" 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" style="padding: 0; display: flex; align-items: center;">
<svg class="sun-icon" viewBox="0 0 24 24" width="16" height="16" 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="16" height="16" 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>
</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>