summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJed Barber <jjbarber@y7mail.com>2016-12-30 22:42:39 +1100
committerJed Barber <jjbarber@y7mail.com>2016-12-30 22:42:39 +1100
commit1ded97cca520f8cddf0f61dad76298243156639f (patch)
tree70f12def25048a664fc84cde64c173195b638d08
Initial commit
-rw-r--r--.gitignore6
-rw-r--r--project/assets/css/default.css8
-rw-r--r--project/complexity.yml14
-rw-r--r--project/templates/about.html8
-rw-r--r--project/templates/base.html22
-rw-r--r--project/templates/git.html8
-rw-r--r--project/templates/index.html8
7 files changed, 74 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..444c7db
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,6 @@
+
+
+#ignore www directory
+
+/www/*
+
diff --git a/project/assets/css/default.css b/project/assets/css/default.css
new file mode 100644
index 0000000..a56111e
--- /dev/null
+++ b/project/assets/css/default.css
@@ -0,0 +1,8 @@
+
+
+body {
+ margin:1em auto;
+ max-width:40em;
+ font:1.2em/1.62em sans-serif;
+}
+
diff --git a/project/complexity.yml b/project/complexity.yml
new file mode 100644
index 0000000..a9a19d0
--- /dev/null
+++ b/project/complexity.yml
@@ -0,0 +1,14 @@
+
+
+# default directory names are fine too
+templates_dir: "templates"
+assets_dir: "assets"
+context_dir: "context"
+output_dir: "../www"
+
+
+# I don't know why the hell anyone thought hiding the .html was a good idea
+unexpanded_templates:
+ - "about.html"
+ - "git.html"
+
diff --git a/project/templates/about.html b/project/templates/about.html
new file mode 100644
index 0000000..df4d00d
--- /dev/null
+++ b/project/templates/about.html
@@ -0,0 +1,8 @@
+
+{% extends "base.html" %}
+
+{% block title %}About{% endblock %}
+
+{% block content %}
+ <p>Content for about page goes here</p>
+{% endblock %}
diff --git a/project/templates/base.html b/project/templates/base.html
new file mode 100644
index 0000000..d8d7322
--- /dev/null
+++ b/project/templates/base.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<html lang="en">
+<meta charset="utf-8">
+<head>
+ <title>Jed Barber - {% block title %}{% endblock %}</title>
+ <link href="/css/default.css" rel="stylesheet">
+</head>
+<body>
+ <div class="navbar">
+ <ul class="nav">
+ <li><a href="/">Home</a></li>
+ <li><a href="/about.html">About</a></li>
+ <li><a href="/git.html">Git</a></li>
+ </ul>
+ </div>
+ <hr>
+ <div class="content">
+ {% block content %}
+ {% endblock %}
+ </div>
+</body>
+</html>
diff --git a/project/templates/git.html b/project/templates/git.html
new file mode 100644
index 0000000..02cc3de
--- /dev/null
+++ b/project/templates/git.html
@@ -0,0 +1,8 @@
+
+{% extends "base.html" %}
+
+{% block title %}Git{% endblock %}
+
+{% block content %}
+ <p>Content for git page goes here</p>
+{% endblock %}
diff --git a/project/templates/index.html b/project/templates/index.html
new file mode 100644
index 0000000..14b9c97
--- /dev/null
+++ b/project/templates/index.html
@@ -0,0 +1,8 @@
+
+{% extends "base.html" %}
+
+{% block title %}Index{% endblock %}
+
+{% block content %}
+ <p>Content for index goes here</p>
+{% endblock %}