moved blog sources into blog/src
All checks were successful
Web/pipeline/head This commit looks good

This commit is contained in:
Ell 2021-03-11 03:44:50 +01:00
parent fe510da05a
commit 6be0f6cbaf
23 changed files with 7 additions and 9 deletions

4
.gitignore vendored
View file

@ -3,6 +3,4 @@ sitemap.xml
feed.json feed.json
rss.xml rss.xml
atom.xml atom.xml
/blog/* blog/*.html
!/blog/.htaccess
!/blog/res

View file

@ -172,6 +172,6 @@ So yea, that was the start of my adventure back into Java, back into my old game
I think it's important to remember that, as a developer (especially an indie developer), you don't have to code everything perfectly or work stuff out correctly the first try. I mean, heck, this is my own game, and I completely forgot how to make a mod for it. But it was fun to figure it out again, and to get back into something I made two years ago. I think it's important to remember that, as a developer (especially an indie developer), you don't have to code everything perfectly or work stuff out correctly the first try. I mean, heck, this is my own game, and I completely forgot how to make a mod for it. But it was fun to figure it out again, and to get back into something I made two years ago.
Oh, also, if you really want, [here's a build of the mod](https://ellpeck.de/blogsrc/res/rock_bottom_mod/NaturesAuraRockBottom-0.1.jar) that you can try out yourself, as the game is now actually open source and available to everyone! I created this jar with the command `gradlew build`, and all you have to do to run it is [download the game](https://github.com/RockBottomGame/RockBottom/releases), run it once, and then stick the mod jar into its `mods` folder. It really doesn't do that much right now, though, so I don't know why you'd bother. Oh, also, if you really want, [here's a build of the mod](https://ellpeck.de/blog/res/rock_bottom_mod/NaturesAuraRockBottom-0.1.jar) that you can try out yourself, as the game is now actually open source and available to everyone! I created this jar with the command `gradlew build`, and all you have to do to run it is [download the game](https://github.com/RockBottomGame/RockBottom/releases), run it once, and then stick the mod jar into its `mods` folder. It really doesn't do that much right now, though, so I don't know why you'd bother.
As always, thanks for reading! As always, thanks for reading!

View file

@ -24,11 +24,11 @@ fs.readFile(folder + "index.html", function (_, html) {
} }
let template = templateDom.serialize(); let template = templateDom.serialize();
fs.readFile(folder + "blogsrc/posts.json", function (_, data) { fs.readFile(folder + "blog/src/posts.json", function (_, data) {
let json = JSON.parse(data); let json = JSON.parse(data);
for (let i = 0; i < json.length; i++) { for (let i = 0; i < json.length; i++) {
let post = json[i]; let post = json[i];
fs.readFile(folder + "blogsrc/" + post.id + ".md", function (_, content) { fs.readFile(folder + "blog/src/" + post.id + ".md", function (_, content) {
let dom = new JSDOM(template); let dom = new JSDOM(template);
let document = dom.window.document; let document = dom.window.document;

View file

@ -31,13 +31,13 @@ function createFeed(callback) {
} }
}); });
fs.readFile(__dirname + "/../blogsrc/posts.json", function (_, data) { fs.readFile(__dirname + "/../blog/src/posts.json", function (_, data) {
let json = JSON.parse(data); let json = JSON.parse(data);
for (let i = json.length - 1; i >= 0; i--) { for (let i = json.length - 1; i >= 0; i--) {
let post = json[i]; let post = json[i];
let date = new Date(post.date); let date = new Date(post.date);
fs.readFile(__dirname + "/../blogsrc/" + post.id + ".md", function (_, content) { fs.readFile(__dirname + "/../blog/src/" + post.id + ".md", function (_, content) {
let html = converter.makeHtml(content.toString()); let html = converter.makeHtml(content.toString());
feed.addItem({ feed.addItem({
title: post.name + (post.archived ? " (Archived)" : ""), title: post.name + (post.archived ? " (Archived)" : ""),

View file

@ -6,7 +6,7 @@ $("#blog-archive-button").on("click", function () {
$.ajax({ $.ajax({
dataType: "json", dataType: "json",
url: "blogsrc/posts.json", url: "blog/src/posts.json",
cache: false, cache: false,
success: function (json) { success: function (json) {
let list = $('#blog-list'); let list = $('#blog-list');