Commit b2eea795 authored by Ian Rafael T. Aragoza's avatar Ian Rafael T. Aragoza

Added homepage content.

parent 590b516e
<html lang="en">
<head>
<link rel="stylesheet" href="style.css">
<title>{% block title %}My amazing site{% endblock %}</title>
{% block styles %}{% endblock %}
</head>
<body>
<div id="content">
{% block content %}{% endblock %}
</div>
{% block scripts %}{% endblock %}
</body>
</html>
\ No newline at end of file
<html lang="en">
<head>
<link rel="stylesheet" href="style.css">
<title>{% block title %}My amazing site{% endblock %}</title>
{% block styles %}{% endblock %}
</head>
<body>
<div id="content">
{% block content %}{% endblock %}
</div>
{% block scripts %}{% endblock %}
</body>
</html>
\ No newline at end of file
{% extends 'base.html' %}
{% load static %}
{% block title %}My Favorite Books and Authors{% endblock %}
{% block content %}
<h1>Welcome to Ian's Database of Favorite Books and Authors!</h1>
<p>These past few years, I've hadn't really had the chance to sit down and enjoy a good book. That said, that doesn't mean there aren't those that mean a lot to me.</p>
<p>The books I've chosen come from different points of my life, and you can see some of them show qualities that I had like whimsy, angsty, or... gay? <br>
No matter the case, I've had adventures with each of these books, and even though I don't remember them well, they've still left a mark on me.</p>
<a href="/books"><p>Books</p></a>
<a href="/auhtors"><p>Authors</p></a>
{% endblock %}
\ No newline at end of file
...@@ -5,4 +5,4 @@ from django.http import HttpResponse ...@@ -5,4 +5,4 @@ from django.http import HttpResponse
def index(request): def index(request):
return HttpResponse('This is the bookshelf.') return render(request, 'home.html', {'name': 'Ian'})
\ No newline at end of file \ No newline at end of file
...@@ -18,5 +18,5 @@ from django.urls import path, include ...@@ -18,5 +18,5 @@ from django.urls import path, include
urlpatterns = [ urlpatterns = [
path('admin/', admin.site.urls), path('admin/', admin.site.urls),
path('bookshelf/', include('bookshelf.urls', namespace="bookshelf")), path('home/', include('bookshelf.urls', namespace="bookshelf")),
] ]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment