Files
pwnforfunandprofit.xyz/templates/base.html
T

78 lines
3.3 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">
<a href="{{ get_url(path="") }}" class="nav-item">Posts</a>
<button id="theme-toggle" class="theme-toggle hover-scale" aria-label="Toggle Dark Mode">
<svg class="sun-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="5"/><path d="M12 1v2M12 21v2M4.2 4.2l1.4 1.4M18.4 18.4l1.4 1.4M1 12h2M21 12h2M4.2 19.8l1.4-1.4M18.4 5.6l1.4-1.4"/></svg>
<svg class="moon-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"/></svg>
</button>
<!-- Search could go here -->
</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>