diff options
author | 2018-08-13 22:46:05 +0200 | |
---|---|---|
committer | 2018-08-13 22:46:05 +0200 | |
commit | 9a05b79f605bc7150a3d7e93026a816df45f9707 (patch) | |
tree | feb04e14fc7ee4f0f7462d4d898ee0033ddf60e2 | |
parent | Add static files. (diff) |
Add base & navbar templates.
-rw-r--r-- | pysite/templates/base.html | 19 | ||||
-rw-r--r-- | pysite/templates/navbar.html | 16 |
2 files changed, 35 insertions, 0 deletions
diff --git a/pysite/templates/base.html b/pysite/templates/base.html new file mode 100644 index 00000000..f8a24962 --- /dev/null +++ b/pysite/templates/base.html @@ -0,0 +1,19 @@ +{# Base template, with a few basic style definitions. #} +{% load static %} + +<!DOCTYPE html> +<head> + <meta charset="utf-8"> + <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover"> + <title>Python Discord | {% block page_title %}Website{% endblock %}</title> + <meta name="description" content="{% block page_description %}We're a large, friendly community focused around the Python programming language. Our community is open to those who wish to learn the language, as well as those looking to help others.{% endblock %}"> + <link rel="stylesheet" href="{% static 'css/bulma.css' %}"> + {% block head %}{% endblock %} +</head> +<body> + {% block body %} + {% endblock %} +</body> + + +<!-- vim: set ft=htmldjango: --> diff --git a/pysite/templates/navbar.html b/pysite/templates/navbar.html new file mode 100644 index 00000000..0efa51c2 --- /dev/null +++ b/pysite/templates/navbar.html @@ -0,0 +1,16 @@ +{% extends 'base.html' %} +{% load static %} + +{% block head %} + <link rel="stylesheet" href="{% static 'css/navbar.css' %}"> +{% endblock %} +{% block body %} + <nav class="navbar is-dark" role="navigation" aria-label="main navigation"> + <div class="navbar-brand"> + <img src="{% static 'assets/logo-banner.svg' %}" class="navbar-brand navbar-icon" alt="Python Discord"> + </div> + </nav> + {{ block.super }} +{% endblock %} + +<!-- vim: set ft=htmldjango: --> |