diff options
| author | Andrew Lee <alee14498@gmail.com> | 2019-08-16 22:39:57 -0400 |
|---|---|---|
| committer | Andrew Lee <alee14498@gmail.com> | 2019-08-16 22:39:57 -0400 |
| commit | 6f4b7269c5b8ec843645ceab0156ec225553fdb1 (patch) | |
| tree | 212748eceeaf85da08ab0df20880beaf6fbfd353 | |
| parent | cf6a69af9b8b0767d7c8c19a7858cdb2c46e8615 (diff) | |
| download | alp-website-6f4b7269c5b8ec843645ceab0156ec225553fdb1.tar.gz alp-website-6f4b7269c5b8ec843645ceab0156ec225553fdb1.tar.bz2 alp-website-6f4b7269c5b8ec843645ceab0156ec225553fdb1.zip | |
Moved the community rules
| -rw-r--r-- | CONTRIBUTE.md | 2 | ||||
| -rw-r--r-- | models/blogPosts.js | 15 | ||||
| -rw-r--r-- | package.json | 4 | ||||
| -rw-r--r-- | routes/community-rules.js | 2 | ||||
| -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> |
