From 7f8f627565ee56de14a086c0810d392f932977c7 Mon Sep 17 00:00:00 2001
From: imfunny <36105478+imfunniee@users.noreply.github.com>
Date: Mon, 12 Aug 2019 11:16:06 +0530
Subject: [PATCH] update 0.1.5
-added UI
-fixed bugs
-fixed css issues
-creating a blog is now easier than ever
---
README.md | 2 +-
bin/gitfolio.js | 2 +-
package-lock.json | 2 +-
package.json | 4 +-
ui.js | 4 +-
views/blog.ejs | 5 +-
views/css/font/Circular.otf | Bin 0 -> 74500 bytes
views/css/index.css | 299 ++++++++++++++++++++++++++++++++++++
views/index.ejs | 12 +-
9 files changed, 318 insertions(+), 12 deletions(-)
create mode 100644 views/css/font/Circular.otf
create mode 100644 views/css/index.css
diff --git a/README.md b/README.md
index 9a28bfb..38f416d 100644
--- a/README.md
+++ b/README.md
@@ -153,7 +153,7 @@ Blog's default JSON Format
}
```
-### Follow me on twitter for more updates [@imfunnieee](https://twitter.com/imfunnieee)
+# Follow me on twitter for more updates [@imfunnieee](https://twitter.com/imfunnieee)
# License
diff --git a/bin/gitfolio.js b/bin/gitfolio.js
index 7654b14..a094dfc 100644
--- a/bin/gitfolio.js
+++ b/bin/gitfolio.js
@@ -1,4 +1,4 @@
-#! /usr/bin/env node
+#! /usr/bin/env node
/* Argument parser */
const program = require("commander");
diff --git a/package-lock.json b/package-lock.json
index 8af795c..665a0e4 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,6 +1,6 @@
{
"name": "gitfolio",
- "version": "0.1.4",
+ "version": "0.1.5",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
diff --git a/package.json b/package.json
index 33b8d0c..6322006 100644
--- a/package.json
+++ b/package.json
@@ -1,7 +1,7 @@
{
"name": "gitfolio",
- "version": "0.1.4",
- "description": "a portfolio website for everyone to showcase your work",
+ "version": "0.1.5",
+ "description": "a portfolio website for everyone to showcase their work",
"main": "build.js",
"bin": "bin/gitfolio.js",
"scripts": {
diff --git a/ui.js b/ui.js
index 84bf151..6a181ed 100644
--- a/ui.js
+++ b/ui.js
@@ -6,7 +6,7 @@ const { populateCSS, populateConfig } = require("./build");
const { updateCommand } = require("./update");
const app = express();
app.set("view engine", "ejs");
-app.use(express.static("views"));
+app.use(express.static(__dirname + "/views"));
app.set("views", __dirname + "/views");
app.use(express.json({ limit: "50mb" }));
app.use(express.urlencoded({ limit: "50mb", extended: true }));
@@ -185,7 +185,7 @@ function uiCommand() {
'You need to run build command before accessing blogs
Go Back'
);
}
- fs.readFile("./dist/config.json", function(err, data) {
+ fs.readFile(`${outDir}/config.json`, function(err, data) {
res.render("blog.ejs", { profile: JSON.parse(data) });
});
});
diff --git a/views/blog.ejs b/views/blog.ejs
index 6c168b9..e041e92 100644
--- a/views/blog.ejs
+++ b/views/blog.ejs
@@ -15,7 +15,7 @@
integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr"
crossorigin="anonymous"
/>
-
+
-
-
+