Browse Source

moved blog sources into blog/src

master
Ellpeck 1 month ago
parent
commit
6be0f6cbaf
  1. 4
      .gitignore
  2. 0
      blog/src/actually_additions.md
  3. 0
      blog/src/big_projects.md
  4. 0
      blog/src/blogs_are_cool.md
  5. 0
      blog/src/but_do_you_really_care.md
  6. 0
      blog/src/cross_platform_trainwreck.md
  7. 0
      blog/src/future_actually_additions.md
  8. 0
      blog/src/java_1.md
  9. 0
      blog/src/java_2.md
  10. 0
      blog/src/java_3.md
  11. 0
      blog/src/java_4.md
  12. 0
      blog/src/java_5.md
  13. 0
      blog/src/java_6.md
  14. 0
      blog/src/java_7.md
  15. 0
      blog/src/lows.md
  16. 0
      blog/src/posts.json
  17. 0
      blog/src/reading.md
  18. 2
      blog/src/rock_bottom_mod.md
  19. 0
      blog/src/small_projects.md
  20. 0
      blog/src/why_you_should_mod_minecraft.md
  21. 4
      node/blog.js
  22. 4
      node/rss.js
  23. 2
      scripts/blog.js

4
.gitignore

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

0
blogsrc/actually_additions.md → blog/src/actually_additions.md

0
blogsrc/big_projects.md → blog/src/big_projects.md

0
blogsrc/blogs_are_cool.md → blog/src/blogs_are_cool.md

0
blogsrc/but_do_you_really_care.md → blog/src/but_do_you_really_care.md

0
blogsrc/cross_platform_trainwreck.md → blog/src/cross_platform_trainwreck.md

0
blogsrc/future_actually_additions.md → blog/src/future_actually_additions.md

0
blogsrc/java_1.md → blog/src/java_1.md

0
blogsrc/java_2.md → blog/src/java_2.md

0
blogsrc/java_3.md → blog/src/java_3.md

0
blogsrc/java_4.md → blog/src/java_4.md

0
blogsrc/java_5.md → blog/src/java_5.md

0
blogsrc/java_6.md → blog/src/java_6.md

0
blogsrc/java_7.md → blog/src/java_7.md

0
blogsrc/lows.md → blog/src/lows.md

0
blogsrc/posts.json → blog/src/posts.json

0
blogsrc/reading.md → blog/src/reading.md

2
blogsrc/rock_bottom_mod.md → blog/src/rock_bottom_mod.md

@ -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.
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!

0
blogsrc/small_projects.md → blog/src/small_projects.md

0
blogsrc/why_you_should_mod_minecraft.md → blog/src/why_you_should_mod_minecraft.md

4
node/blog.js

@ -24,11 +24,11 @@ fs.readFile(folder + "index.html", function (_, html) {
}
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);
for (let i = 0; i < json.length; 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 document = dom.window.document;

4
node/rss.js

@ -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);
for (let i = json.length - 1; i >= 0; i--) {
let post = json[i];
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());
feed.addItem({
title: post.name + (post.archived ? " (Archived)" : ""),

2
scripts/blog.js

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

Loading…
Cancel
Save