MelonLand Forum

World Wide Web => ✁ ∙ Web Crafting => Topic started by: Obspogon on May 24, 2022, 04:17:25 am

Title: Static Site Generators
Post by: Obspogon on May 24, 2022, 04:17:25 am
Those are basically what they sound like. Make some files, run a command, and get a folder that's an entire site. More info here. (https://gomakethings.com/tips-and-tricks-for-working-with-static-site-generators/)

I've just updated my site to use Eleventy (https://www.11ty.dev/).

They make a website so much easier to manage. Thoughts?
Title: Re: Static Site Generators
Post by: Melooon on May 24, 2022, 01:54:13 pm
They can be super handy, but they can also force you into a box because they encourage standard design. They help address the navbar issue though (how to get a consistent navbar across a large messy site).

TextureTown uses a custom site generator that's super fun, it just reads in the texture folders and generates all the pages and meta data n thumbnails n everything! I have a suspicion that 99GifShop uses Eleventy. So they really shine when you have a lot of stuff you need to put on your site fast.

I think the only downside is if you lose your generator code and then you cant update your site easily any more :ohdear:
Title: Re: Static Site Generators
Post by: cinni on May 24, 2022, 08:29:35 pm
They can be super handy, but they can also force you into a box because they encourage standard design. They help address the navbar issue though (how to get a consistent navbar across a large messy site).

TextureTown uses a custom site generator that's super fun, it just reads in the texture folders and generates all the pages and meta data n thumbnails n everything! I have a suspicion that 99GifShop uses Eleventy. So they really shine when you have a lot of stuff you need to put on your site fast.

I think the only downside is if you lose your generator code and then you cant update your site easily any more :ohdear:

i hate to break it to you that 99gifshop is not that elegant >_> the first 3 pages or so were handwritten till i learned enough php. i have a copy of 99gifshop on my leprd server that generates the HTML for me then i copy+paste it on neocities. updating old pages is getting to be a pain as the site grows so i should finally learn how to use a static site generator hahaha :ziped:
Title: Re: Static Site Generators
Post by: Melooon on May 24, 2022, 09:16:23 pm
Quote
i hate to break it to you
Excuse me please do not spoil my idea that you are a genius who knows how to do everything! :sad:

You should definitely look into it though, I think 99G already follows the standard output format that Eleventy uses (Of like, /items/1/index.html etc and the gifs in each folder /items/2/33.gif etc) so it should be as simple as making the first template page, giving it all the images and lettin-er rip!
Title: Re: Static Site Generators
Post by: cinni on June 06, 2022, 12:40:28 am
okay the other night i tried out 11ty using flamed's guide (https://flamedfury.com/guides/11ty-homepage-neocities/) and was able to make a simple site (https://angel-fairy.neocities.org/), however im having a nightmare of a time trying to get it to work for 99gifshop :ohdear: i shall try it again another time when my brain can make sense of it hahaha