summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/footer.ejs9
-rw-r--r--templates/footer.html4
-rw-r--r--templates/header.ejs13
-rw-r--r--templates/header.html11
4 files changed, 22 insertions, 15 deletions
diff --git a/templates/footer.ejs b/templates/footer.ejs
new file mode 100644
index 0000000..f9ac4de
--- /dev/null
+++ b/templates/footer.ejs
@@ -0,0 +1,9 @@
+ </main>
+ <footer class="<%- config.classes.footer.join(" ") %>">
+ <hr>
+ <p style="text-align:center;">
+ <i>generated by <a href="https://gitlab.minteck.org/minteck/cobalt">Cobalt</a> v<%- config._version %></i>
+ </p>
+ </footer>
+</body>
+</html> \ No newline at end of file
diff --git a/templates/footer.html b/templates/footer.html
deleted file mode 100644
index e656a2a..0000000
--- a/templates/footer.html
+++ /dev/null
@@ -1,4 +0,0 @@
- </main>
- <!-- TODO: put your copyright, footer, etc... here -->
-</body>
-</html> \ No newline at end of file
diff --git a/templates/header.ejs b/templates/header.ejs
new file mode 100644
index 0000000..2a2b565
--- /dev/null
+++ b/templates/header.ejs
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html lang="en" class="<%- config.classes.html.join(" ") %>">
+<head>
+ <meta charset="UTF-8">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <title><%- name %> | <%- config.site_name %></title>
+ <link rel="stylesheet" href="<%- config.imports.css.join('"><link rel="stylesheet" href="') %>">
+ <script src="<%- config.imports.css.join('</script><script src="') %>"></script>
+</head>
+<body class="<%- config.classes.body.join(" ") %>">
+ <!-- TODO: put your navigation, header, etc... here -->
+ <main class="<%- config.classes.main.join(" ") %>"> \ No newline at end of file
diff --git a/templates/header.html b/templates/header.html
deleted file mode 100644
index f61e243..0000000
--- a/templates/header.html
+++ /dev/null
@@ -1,11 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
- <meta charset="UTF-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>$TITLE$ | My website</title>
-</head>
-<body>
- <!-- TODO: put your navigation, header, etc... here -->
- <main> \ No newline at end of file