Added NewWebsite post

This commit is contained in:
Matthew McKinnon 2022-08-07 02:18:36 +10:00
parent 8321163593
commit 5a0ac18565
6 changed files with 51 additions and 7 deletions

View File

@ -1,6 +1,19 @@
const blogTools = require("eleventy-plugin-blog-tools");
const markdownIt = require("markdown-it");
const markdownItAttrs = require("markdown-it-attrs");
module.exports = function(eleventyConfig) {
const mdOptions = {
html: true,
breaks: true,
linkify: true,
};
const markdownLib = markdownIt(mdOptions)
.use(markdownItAttrs)
.disable("code");
eleventyConfig.setLibrary("md", markdownLib);
eleventyConfig.setUseGitIgnore(false);
eleventyConfig.addPassthroughCopy('./src/css');
eleventyConfig.addPassthroughCopy('./src/assets/');

2
.gitignore vendored
View File

@ -1,3 +1,3 @@
node_modules
_site
package-lock.json
_site

View File

@ -1,7 +1,6 @@
{
"name": "comprofix-website",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"build": "eleventy",
@ -18,6 +17,13 @@
"@11ty/eleventy-fetch": "^3.0.0",
"common-tags": "^1.8.2",
"dotenv": "^16.0.1",
"eleventy-plugin-blog-tools": "^0.3.1"
}
"eleventy-plugin-blog-tools": "^0.3.1",
"markdown-it": "^13.0.1",
"markdown-it-attrs": "^4.1.4"
},
"repository": {
"type": "git",
"url": "https://gitlab.comprofix.com/comprofix/website.git"
},
"description": ""
}

View File

@ -0,0 +1,25 @@
---
layout: layouts/post.njk
title: Welcome to the new Website.
description: We have a new website at last.
date: 2022-08-07
author: Matthew McKinnon
---
<center>
![](/assets/img/fireworks.jpg)
</center>
After many months, we finally have a new website that works.
In the past, previous websites were built using Wordpress. Because I could go many months without creating a blog post, the website would get "forgotten". Because of this, the versions of Wordpress and plugins that were being used at the time would sometimes become "compromised", thus allowing attackers to gain entry to server and deface website etc.
So a new website back end was needed. After investigating and trying many different styles, I settled on using [Eleventy](https://11ty.dev){target="_blank"}.
Eleventy is a framework for building static websites. Once I built the code and templates. The website was born. All using pure HTML pages.
I will start rebuilding my old blog posts. As well as create some new and awesome content for you all to enjoy.

View File

@ -1,5 +1,5 @@
---
layout: layouts/homepage.njk
layout: layouts/base.njk
title: Computer Problems Fixed
eleventyExcludeFromCollections: true
---

View File

@ -1,8 +1,8 @@
body, html {
height: 100%;
margin: 0;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 14px;
font-family: Menlo, Consolas, DejaVu Sans Mono, monospace;
font-size: 20px;
background-color: lightgrey;
}