2024-05-14 9:45am ADT
Fixed the responsive design! Turns out the code blocks were the issue. Seems to have fixed the gradiant issue as well in the background.
EDIT: Scratch the gradiant issue - still a problem. Do deal with another time I suppose.
2024-05-14 1:20am ADT
Well, I've written enough of this for the evening. I'll seriously need to refactor things for maintainability but at least I got something out there.
There are also at this time some slight usability gripes. Ie, the background gradiant doesn't work right as you scroll down, and I do not have multiple pages to click through ready yet.
This will come in time, but for tossing together a quick blogging platform run via Nodejs and git I'm fairly happy for a couple hours of work, considering Nodejs is not my primary language and I also had to write a whole pipeline + write up the IaC to deploy it in this same time.
Ignore my grammatical and spelling errors as I go along with this - they're just my rambling thoughts to get them out while I work on things, which is basically the point of this blog.
2024-05-14 1:13am ADT
Interesting little find while working on this blog (that is, the software that runs it to be specific): docker does not preserve the file modification times when copying data over.
So since I wrote each of these posts as markdown files and use the modification time as the date of the post, I had to get creative.
Inside my dockerfile instead of a COPY . .
COPY app.tar.gz .
RUN tar -xzf app.tar.gz && rm app.tar.gz
Then I had to add this into my github workflow
- name: Create tarball to preserve file modification times
run: tar -czf app.tar.gz *.js dir1 dir2
This still didn't work, so I had to look further. So next thing I tried was adjusting the fetch depth of my checkout action to hopefully preserve the file modification times.
- uses: actions/checkout@v4
with:
fetch-depth: 0
And this still does not work. So, I had to backtrack a bit and instead switch to using a line of the markdown to define the time. This so far is working fine, but I'm not sure if I like it. I'll have to see how it goes. Timezones are my current concern since I'll be manually typing them in so it's a little clunky, but at least it's a start.
2024-05-14 12:00am ADT
Now have it so direct links to posts can work - woohoo!
Still need to add more than one front page, ie scrolling page by page, but it's progress.
2024-05-13 11:40pm ADT
Here's my second post. I'm going to add in a short list so I can test out how that will be handled.