aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CONTRIBUTE.md2
-rw-r--r--models/blogPosts.js15
-rw-r--r--package.json4
-rw-r--r--routes/community-rules.js2
-rw-r--r--views/community/rules.ejs (renamed from views/community-rules.ejs)8
5 files changed, 24 insertions, 7 deletions
diff --git a/CONTRIBUTE.md b/CONTRIBUTE.md
new file mode 100644
index 0000000..be7fc2f
--- /dev/null
+++ b/CONTRIBUTE.md
@@ -0,0 +1,2 @@
+# Editing CSS
+If you want to edit the CSS do **not** edit the style.css file, please edit the style.scss file instead. \ No newline at end of file
diff --git a/models/blogPosts.js b/models/blogPosts.js
new file mode 100644
index 0000000..6e8a0bf
--- /dev/null
+++ b/models/blogPosts.js
@@ -0,0 +1,15 @@
+const mongoose = require('mongoose');
+const Schema = mongoose.Schema;
+
+const blogPostSchema = new Schema({
+ postID: String,
+ postTitle: String,
+ postText: String,
+ postAuthor: String,
+ postCreationDate: Date,
+ postLatestEditDate: Date,
+ postTags: Array
+});
+
+const BlogPost = mongoose.model("BlogPost", blogPostSchema);
+module.exports = BlogPost; \ No newline at end of file
diff --git a/package.json b/package.json
index 1dfcc29..ec3d5fb 100644
--- a/package.json
+++ b/package.json
@@ -4,8 +4,8 @@
"description": "A rewrite of the old aleecorp.github.io website",
"main": "app.js",
"scripts": {
- "start": "concurrently \"node-sass public/css/style.scss -o public/css -w\", \"node app\"",
- "dev": "concurrently \"node-sass public/css/style.scss -o public/css -w\", \"nodemon app\""
+ "start": "concurrently \"node-sass --omit-source-map-url public/css/style.scss public/css/style.css \", \"node-sass public/css/style.scss -o public/css -w\", \"node app\"",
+ "dev": "concurrently \"node-sass --omit-source-map-url public/css/style.scss public/css/style.css \", \"node-sass public/css/style.scss -o public/css -w\", \"nodemon app\""
},
"repository": {
"type": "git",
diff --git a/routes/community-rules.js b/routes/community-rules.js
index 318089c..d723a5b 100644
--- a/routes/community-rules.js
+++ b/routes/community-rules.js
@@ -21,7 +21,7 @@ const express = require("express");
const router = express.Router();
router.get('/', (req, res) => {
- res.render('community-rules', {title: 'Community Rules | Alee Productions'});
+ res.render('community/rules', {title: 'Community Rules | Alee Productions'});
});
module.exports = router; \ No newline at end of file
diff --git a/views/community-rules.ejs b/views/community/rules.ejs
index 0907b9f..302632a 100644
--- a/views/community-rules.ejs
+++ b/views/community/rules.ejs
@@ -3,7 +3,7 @@
<html>
<head>
- <% include ./includes/header %>
+ <% include ../includes/header %>
<style>
.rules {
font-size: 15pt;
@@ -19,7 +19,7 @@
<body class="dark">
<div id="top"></div>
-<% include ./includes/navbar %>
+<% include ../includes/navbar %>
<div class="animsition">
<h1 class="text-center display-5 mt-3">Alee Productions Community Rules</h1>
<p class="text-center lead">Rules have been set in stone so we make sure that you can have a great time here.</p>
@@ -144,8 +144,8 @@
</div>
<a href="#top" class="green-text">Back to top</a>
</div>
-<% include ./includes/scripts %>
-<% include ./includes/footer %>
+<% include ../includes/scripts %>
+<% include ../includes/footer %>
</div>
</body>