-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.txt
43 lines (29 loc) · 1.21 KB
/
README.txt
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
Starting Point for UiT Web Page / Application Template
------------------------------------------------------
Based on https://uit.no/utdanning and https://uit.no/tmu
You can open page.html in your browser to see what the page will look
like.
Using the Templates
-------------------
All templates are combined in page.html. To use them in your project
you have to cut this file into pieces and make some minor
modifications to fit your template system.
* Copy the css and images directories to your project's static files
directory.
* Cut page.html into header, navbar, banner and footer (the start of
each is marked with "template: header" etc.) and put them in your
template directory.
* Create a page template which includes the tempaltes. Django example::
{% include 'header.html' %}
{% include 'navbar.html' %}
{# banner.html can be included her #}
{% block content %}
{% endblock %}
{% if debug %}
{% include 'debug.html' %}
{% endif %}
{% include 'footer.html' %}
* Change all variables to the syntax of your template engine. For example
for Smarty change '{{ title }}' to '{$title}'.
* Replace links to index.php, hjelp.php and about.php with pages in
your application.