Spyke
neocities·NeocitiesbyPiraHxCx

Easy script to autogenerate an RSS feed for your site

Do you have a blog or update list or you post articles on different pages, and you customized your template instead of using those Django, Nunjucks or whatever, and would like to have RSS feed auto generated compatible with the mess of HTML you created?

This is a simple script for you to copy to your local folder and run and create an Atom Feed for your site, and it should be easy enough for any webmaster to use. All you have to do is fill 6 fields: Your feed title, your site url, the url of your blog/news/updates/whatever-you-want-to-create-a-feed-for, the element that wraps your entries, the element that wraps your entry titles, the element that wraps your entry dates.

Maybe you just have one page with your blog, but maybe you have a page for a journal, another for a microblog, another for your media consumption, and on your index and you have a div with updates you done in the site and also different pages for articles you wrote, you can list all of them... is each using different elements for entries? Not a problem, you can target all of them and the script will look for matches.

check: https://pirahxcx.neocities.org/computer-nerding#pirafeed

View original on lemmy.dbzer0.com
neocities·Neocitiesbyj4yc33

Ads for Neocities Sites

Crossposted from c/The Smol [email protected]

I found the old WSMZ (https://hbaguette.neocities.org/) bannerAds, and noticed it was not being maintained…

So I started maintaining it on my site.

I am here to share this, and hope that more people will want to be involved to add their site to the list!

All I need is a message from you, or an email to the address on the page, with a blurb about your site, a 468x60 banner ad, and the URL to link to!

My hope is to one day maybe also be able to use this list to create a StumbleUpon like button for the SmolWeb.

https://j4yc33.neocities.org/stuff/BannerAdsOpen linkView original on piefed.social
neocities·NeocitiesbyPiraHxCx

Trying to scale site correctly and perhaps future-proof it?

I’m used to 1366x768 screens, and when I first started making my personal website it was based on that resolution… it wasn’t until one day I checked it on a 1920x1080 screen that I noticed how weird the design got because of vertically centered elements and so… I made some @media (min-width: 1601px) hacks to scale some stuff so the site would look more or less the same on bigger resolutions, but it was a sloppy solution…

I made another site later, and I was worried about scaling, so I started using 1920x1080 resolution at 150% zoom (I have bad eyesight and struggle to read on 1920x1080, so I’m actually at 1280x720 now, but at least it’s the same aspect ratio). For the site to scale, I started using viewport values for everything, including font sizes… but if the aspect ratio changes wildly, the site looks crappy :P

So right now I was banging my head around how to have a visually pleasing website for someone with bad eyesight like me, but still have it scale correctly on any resolution for mainstream usage (as I scale down for myself, lots of sites I visit get crumpled visual elements when they are using absolute positions, z-index, and so), and I decided to letterbox my site content and force the aspect ratio on any resolution so the site will always look the same, no matter the screen. I’m using JS to scale font-size according to the letterbox width, and all other elements will use % values… I don’t know, but so far it’s sounding like I just made the site future-proof as well (for new resolution changes). The site is scaling with window size, it sucks that you can’t zoom it with the browser (so it might be bad for people with even worse eyesight, but I do plan to put a ± button for font-size though, what’s comfortable for me to read might not be for everyone), but the normal zoom works on mobile…

This is a test page I just made (ratio at 16:8 to compensate a bit for taskbar and browser stuff): https://pirahxcx.neocities.org/aspectratiottest

What do you all think of the idea? Perhaps there was an easier solution, though?

View original on lemmy.dbzer0.com

Vijfsnippervijf's little home!

About 4 months ago I decided to make this website for myself. I use this to share my opinions, creations and a little about myself! I really LOVE the technical and creative sides of making a website, and I also used to have a WordPress site no one saw. I took most content from there to my new website, and also continue to add new things to it as the time comes...

https://vijfsnippervijf.neocities.org/Open linkView original on feddit.nl
neocities | Spyke