@skyfaller I have thought about this in the past. I know there are CMSses designed to work with static sites, like this one for #jekyll, though I’ve never evaluated any.
There’s got to be something similar for #hugo, though cost may be a concern if it’s an enterprise focused tool.
4 new blog posts in April. Seems I'm getting better at sharing my long(er) form thoughts :)
The workflow I now have makes it really easy too. When I have a thread here that I think deserves a blog post, I copy the link to the first toot and paste it in https://mtr.wildeboer.net where I can get a #markdown dump that I can copy/paste in my editor and work on. My blog is #jekyll based and also uses Markdown, so it is easy to do :)
I think it'd be a neat idea to start a #blog, and I'm brainstorming how to do it.
Not gonna use #WordPress. #Jekyll sounds promising. There's an alternative called #Pelican that, as the creator of the the Pelicanizer, would be fitting for my blog.
Dovevo finire di scriverlo ieri questo, ma, puntualmente, finito un progettino bisogna subito iniziarne un altro (no spoiler), e non c’è tempo per il #blogging. La pagina rilasciata ieri, nonostante comunque non mi abbia rubato così tanto tempo perché è pur sempre una paginetta, mi ha presa un po’ alla sprovvista considerando che l’avevo iniziata addirittura questo lunedì. (6 giorni son passati…) 😳
Il motivo è buffo e per nulla legato alla difficoltà di #programmazione in sé (ho fatto cose peggiori), ma al fatto che puntualmente le altre cose non funzionano mai come dovrebbero, e quindi bisogna fare delle #hack, e poi dopo altro test si vede che da quelle hack si scassano altre cose, e via quindi di altre hack per sistemare i #problemi… E allora io ad una certa mi seccavo, e dunque “aight then, see you tomorrow ☠️”
Per il sitoctt è stato relativamente semplice: mi appoggio alla pagina di ricerca statica del sito, parsando tutto l’HTML, che per quanto rotta (e per questo evito di far sapere che esiste) racchiude il contenuto di tutte le pagine compilate del sito. Quindi, raccolgo tutti i link ai post da tutte le pagine di categoria. 😺
Quei link però sono solo-testo, quindi per prendere l’immagine di copertina ho dovuto aggiornare staticoso dopo mesi solo per fargli scrivere gli URL in attributi data dell’HTML. Poi però mettiamoci pure che a volte questi vengono scritti rotti perché la sostituzione delle variabili non funziona in quel punto del #codice (e io non lo sistemerò mai), e anche che quando manca una copertina allora devo per forza prenderla dal contenuto della pagina, ho dovuto comunque complicare di più il #JavaScript… 😡
Per il fritto misto, bel #casino, innanzitutto perché per stabilità e sicurezza volevo evitare di usare i proxy CORS, e poi per efficienza e velocità volevo minimizzare il più possibile le richieste di rete necessarie (paginazione è cacca)… quindi anche qui mi appoggio alla ricerca (in JSON) del mirror statico del sito, anziché direttamente a WordPress; nel file ci sono tutti i post con i metadati necessari. 😸
Ganzo, se non fosse che ho sprecato chissà quanto tempo solo per le immagini; e totalmente invano, perché poi alla fine ho dovuto rassegnarmi a includere nel JSON tutti i dump #HTML dei post (ciò che volevo evitare, perché fatto così si appesantirà molto velocemente, ops) ed estrarre la prima immagine ricorrente in quelli. Non capisco se il problema ha a che fare con #Jekyll, la sua versione fornita da GitHub Pages, o ancora il parser Liquid di Ruby, perché con un altro parser (LiquidJS) ho verificato che il mio codice per estrarre gli URL dal markup è corretto… solo che poi messo lì non funge. Provato anche il plugin “jekyll-firstimage” trovato a casissimo, ma ovviamente non è servito, dava addirittura errore ad installarsi nel processo di build. 👹
Any experience with #jekyll? I'm building a page for a friend and the generated thumbnails are not uploaded to ghpage, any idea why? Using this: https://github.com/abpaudel/jekyll-thumbnail-img
I can reproduce the issue locally, but have no clue how to debug it.
Check your #Hugo#Markdown postings for a number of common problems and issues before publishing a post.
Each part is configurable. Probably works with tools like #Jekyll too. Works standalone, or as #git pre-commit check. And comes with a suite of tests if you want to add new checks.
I modified my website quite a lot lately, so I decided to quickly write an overview about the changes I made and link to some of the inspirations I had.
I have been redesigning my website quite a bit today, funnily enough I realized @amin is doing it too lol.
For now I am getting rid of a bunch of divs with classes and replacing them with html elements such as aside and article. Trimming down the CSS I have to do for many classes into just a few niche cases :P
@amin Now I also added breadcrumbs, I had to modify the site structure a bit but it makes sense and I think no links were broken thanks to #Jekyll's redirect_from plugin :P
Is there a standard way to show on my website that I have an #rss feed (other than just a direct link to it)? E.g. something in the <head> element that will integrate with browsers? Or is the link still the best practice?
I don't want to surprise leaders by dropping a link that goes to raw xml. Using #jekyll if that matters.
I updated the way my #RSS feed works by adding a reply via #email and fediverse link (some may have noticed). While I was at it, I also made the feed human readable with #XSLT!
Bastel gerade ein wenig mit #Hugo und dem #Blowfish Theme rum und ich glaube, ich werde meinen Blog dorthin umziehen.
Das von mir unter #Jekyll eingesetzte #Hydejack Theme bekommt nämlich schon lange keine Updates mehr. Ärgere mich damals dafür Geld investiert zu haben.
Wenn ich den Umzug mache, bekommt der Blowfish Entwickler dann eine Spende.
Hrm. Another question for #Hugo (or #Jekyll really) users:
So you add a new News post. You go to upload. Uh. What files do you ACTUALLY upload?
In principle the answer is "well the new ones silly", but when your static site includes say, a Tag and a search system, how on earth do you know which changed and select only them?
Lately I just FTP up the whole folder, overwriting everything, and I feel like an idiot 😭 (or am I valid? maybe?)
@glassbottommeg you can use Cyberduck (on any similar tool) to synchronize both your local folder and your FTP, thus uploading only what’s actually needed.
Or you can go the devops route and configure a GitHub repo to do it automatically for you (either via GitHub Pages if #jekyll or GitHub Actions).
Resolved: Found the problem and it was me 🤪. I misspelled the filename when moving the file.
Dummy question
How do I add images to #GitLab pages build with #Jekyll
My local Jekyll instance copies the images folder but #GitLabCI doesn't
Not sure how to accomplish that the images are available on #GitLabPages
Boosts and any hints welcome.
I'm pretty sure that PEBCAK (problem exists between chair and keyboard) but i just don't know were to look. Do i explicitly need to include the image directory in Jekyll or do i need to copy it in #GitLabCI 🥴?