Skip to content

Commit 665dba2

Browse files
author
Arvind-4
committed
Updated & Added: new templates to project
1 parent 55e3d48 commit 665dba2

File tree

3 files changed

+45
-12
lines changed

3 files changed

+45
-12
lines changed

templates/about.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{% extends 'base.html' %}
2+
{% block content %}
3+
4+
<h1>About us </h1>
5+
6+
{% endblock %}

templates/base.html

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<title>Django with Vercel</title>
8+
</head>
9+
<body>
10+
<nav>
11+
<ul>
12+
<a href="/">
13+
<li>
14+
Home
15+
</li>
16+
</a>
17+
<a href="/about">
18+
<li>
19+
About
20+
</li>
21+
</a>
22+
<a href="/admin">
23+
<li>
24+
Admin
25+
</li>
26+
</a>
27+
</ul>
28+
</nav>
29+
</nav>
30+
{% block content %} {% endblock %}
31+
32+
</body>
33+
</html>

templates/index.html

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
1-
<!DOCTYPE html>
2-
<html lang="en">
3-
<head>
4-
<meta charset="UTF-8">
5-
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7-
<title>Django with Vercel</title>
8-
</head>
9-
<body>
10-
<h1>Hello World from Django-Vercel.<br/>Its Fast!</h1>
11-
</body>
12-
</html>
1+
{% extends 'base.html' %}
2+
{% block content %}
3+
4+
<h1>Hello World from Django-Vercel.<br/>Its Fast!</h1>
5+
6+
{% endblock %}

0 commit comments

Comments
 (0)