Kaynağa Gözat

Start working on templates.

Cixo Develop 5 ay önce
ebeveyn
işleme
b234cb0e5d

+ 0 - 0
config.json


+ 4 - 0
content/index.json

@@ -0,0 +1,4 @@
+{
+    "Hello there!": "hello.md",
+    "Contact": "contact.md"
+}

+ 0 - 0
core.py


+ 0 - 0
source/__init__.py


+ 0 - 0
source/configurator.py


+ 0 - 0
source/template.py


+ 7 - 0
templates/menu/all.html

@@ -0,0 +1,7 @@
+<nav>
+    <div class="menu">
+        <ul>
+            <!-- menu_items --!>
+        </ul>
+    </div>
+</nav>

+ 1 - 0
templates/menu/single.html

@@ -0,0 +1 @@
+<a href="<!-- link --!>"><li><!-- name --!></li></a>

+ 15 - 0
templates/page/all.html

@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+
+<html lang="<? lang ?>">
+    <head>
+        <meta charset="UTF-8">
+        <title><? project-name ?></title>
+
+        <link rel="stylesheet" href="static/style.bundle.css" type="text/css">
+        <script src="static/script.bundle.js"></script>
+    </head>
+
+    <body>
+        <!-- body --!> 
+    </body>
+</html>

+ 3 - 0
templates/page/container.html

@@ -0,0 +1,3 @@
+<div class="container">
+    <!-- content --!>
+</div>

+ 5 - 0
templates/page/footer.html

@@ -0,0 +1,5 @@
+<footer>
+    <div class="footer">
+        
+    </div>
+</footer>

+ 5 - 0
templates/page/header.html

@@ -0,0 +1,5 @@
+<header>
+    <div class="header">
+        
+    </div>
+</header>

+ 15 - 0
templates/page/parts.html

@@ -0,0 +1,15 @@
+<div class="top">
+    <!-- header --!>
+    <!-- menu --!>
+</div>
+
+<main>
+    <div class="containers">
+        <!-- content --!>
+    </div>
+</main>
+
+<div class="bottom">
+    <!-- footer --!>
+</div>
+