-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbase.html
More file actions
48 lines (45 loc) · 1.69 KB
/
base.html
File metadata and controls
48 lines (45 loc) · 1.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{% block title %}Advanced Blog{% endblock %}</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<nav class="navbar">
<div class="nav-container">
<div class="nav-brand">
<a href="index.html">✨ Advanced Blog</a>
</div>
<div class="nav-links">
<a href="index.html">🏠 Home</a>
{% if current_user %}
<a href="create_post.html">📝 Create Post</a>
<a href="my_posts.html">📚 My Posts</a>
<a href="profile.html">👤 Profile</a>
<span class="user-info">Welcome, {{ current_user.display_name or current_user.username }}</span>
<button onclick="logout()" class="btn-logout">🚪 Logout</button>
{% else %}
<a href="login.html">🔐 Login</a>
<a href="register.html">📝 Register</a>
{% endif %}
</div>
</div>
</nav>
<div class="container">
{% block content %}{% endblock %}
</div>
<footer class="footer">
<div class="container">
<p>© 2025 Blog. All rights reserved.</p>
<p>Built with ❤️ using Flask & Python</p>
<p>Developed By Ankit kumar singh. </p>
</div>
</footer>
<script src="main.js"></script>
<script src="auth.js"></script>
<script src="posts.js"></script>
{% block scripts %}{% endblock %}
</body>
</html>