roytang.net Posts Photos Archives About

Hopefully, the site is now Netscape-safe...

Uploaded more stuff today: I put up an ECE Board Exam Reviewer — it's a software that helps me review for the upcoming ECE boards. It's in the files section. I really should add that to the list of resolutions: WILL STUDY FOR BOARD EXAM!

I also decided to renovate and re-use the geocities site so I put up an Anime ROMs site there. I wanted to put up the Anime ROMs before, but I was worried about what Topcities might do, since Ihaven't heard anything about what they do to copyright violations on member sites. They might delete all my files or something. At Geocities, the worst case scenario is that I lose the ROM files!

Sore wa watashi no homupeiju desu... See? I'm working on it!

Sun, Jan. 6, 2002, noon / / blog / #legacy-blog-posts / Syndicated: blogger / 💬 3 / 134 words

Last modified at: Oct. 12, 2020, 1:52 a.m. Source file

Comments

Anonymous said...

roy can i know were 2 find the ece reviewer that you have tnx url?.. or email it to me at mark_den_ong@yahoo.com tnx!!

Gotcha, I wasn’t aware that resources were the problem. There’s a long discussion on the discourse page of Hugo regarding this, but the gist is: that also works! 😅

I just tried that with my site. If I simply move every resource from /static to the corresponding folder, e.g. /content/post/2022/07/image.jpg, then it works without any change. Keep in mind that I include my images using the path ../image.jpg if you want your content file to be in the 07 folder as well. That’s not needed if you create a separate dir for reach post, and can be circumvented by hacking render-image.html.

Anyway. I agree that the whole SSG system can be needlessly complex (and confusing). To me, a Django or Wordpress setup doesn’t alleviate that.

via brainbaking.com
Roy Tang said...

Yeap, having your images in the content works natively, but unless you package them as a Page Bundle (i.e. your markdown file is named index.md and is in the same folder as the other files), you don't have access to them via the .Resources attribute of the page object in the theme. And as the documentation itself notes, Page Bundles for normal pages (i.e. leaf bundles) don't support nested bundles, which creates the limitation in supporting content hierarchies as described in the post.

I'm happy that it works for you and there are lots of cases where SSGs are fine! It's just an idiosyncrasy of how I wanted to set up mine before that I ran into these limitations. The great thing about being a dev is that we can always dig into the source and hack away at any such problems we find :D

Roy Tang said...

Some details on my custom-built framework are in this post

lenard said...

hi! excuse me, where could i get the copy of your ece reviewer... or pls send it to my mail.... kendar04@yahoo.com thank you for your time...

Roy said...

Sorry guys, I don't know if I still have the files. If I find them, I'll post them on this website.