Haha touché, two peas in a pod.
manxu
- 0 Posts
- 16 Comments
It’s a real shame. Great framework but based on a single purpose language by a company known to drop projects on a whim. I loved to play with it, but I can’t imagine sinking a lot of dev hours into it, knowing it could just disappear.
Did you look at Pelican? I share the frustration with much of Hugo’s infrastructure: the template language is buggy and inscrutable, and the plugin architecture wanting.
I ended up with Hugo, but I considered Pelican. It uses standard Jinja templates, which I find much more rational (but it might just be me) and I recall there were plugins for a lot of things, including different source formats. The code is written in Python, so that even if there isn’t a plugin for a format you need, there probably is a Python library for it and it should be relatively easy to make it a plugin.
Crap, now I want to switch to Pelican…
Hugo watch mode (both server and build) does not produce accurate sites on change and is really meant for development. I find after a developing for a while, I have to kill the process and restart it and then things are “fresh”
From reading the documentation, I strongly have the impression that hugo focuses on being fast on re-render and that the idea is to build and deploy to public site each time there is a change. The big difference is probably whether to render locally and push the generated content, or to push the source markdown and render remotely (which I chose).
I ended up with Hugo, a git repository, and a cron job for the build. I write an article, check it in, the server picks up the git change and rebuilds the site. What I like about the setup is that the server only has the binaries hugo and git, and a shell script for the rebuild. Also, I write in Markdown, add media to the git repository, and articles are published soon after I check in without any remoting on my part.
I did look at WriteFreely after the setup, though. I find the minimalist design very beautiful. Didn’t switch to it, but may look at it again for another project. https://github.com/writefreely/writefreely
The field separator is declared to be the colon, with -F:, so the fields end and start at colons.
manxu@piefed.socialto Programming@programming.dev•How GitLab decreased repo backup times from 48 hours to 41 minutes with a fix to GitEnglish143·10 days agowe traced the issue to a 15-year-old Git function with O(N²) complexity and fixed it with an algorithmic change, reducing backup times exponentially.
I feel like there is something wrong with this sentence.
manxu@piefed.socialto Technology@lemmy.world•Google Restricts Android Sideloading—What It Means for User Autonomy and the Future of Mobile Freedom – PurismEnglish7·10 days agoI completely agree. Unless Google is forced to install more than one app store by default, or forced to have multiple app stores downloadable on Play Store, three is no realistic way to install a third party app store on a phone. In both cases, Google’s cooperation is required.
manxu@piefed.socialto News@lemmy.world•Trump says Musk has ‘lost his mind’ and dismisses peace offeringEnglish14·11 days agoI feel you. That’s exactly what Putin did. Get rid of one oligarch so the other ones knew what happens if you don’t toe the party line.
manxu@piefed.socialto News@lemmy.world•Trump signs proclamation to restrict foreign student visas at HarvardEnglish11·12 days agoWell, yes, of course! I mean, for a hundred years Harvard hosted foreign students, but NOW they are a security threat.
It must be really hard to be a lawyer or judge facing these cases, knowing that if you laugh you are going to become the next national security threat.
manxu@piefed.socialto Ask Lemmy@lemmy.world•What is the best way to learn a new language as an adult?English22·12 days agoI just had to learn French in middle age, and it’s been fun. They key takeaways from my experience:
- Contact is everything. The longer you spend listening, reading, speaking, just in general interacting with the target language, the better. Doesn’t matter what you do - Duolingo or PeerTube videos, novels or comic strips.
- Communication is the goal, not fluency. You can get the gender of a word wrong and people will still understand you. You can use the wrong tense and that’s usually okay. Don’t try to “sound more like a native” or “learn slang words that everyone uses,” because heaven knows nobody is going to take you for a native. But if you can get the point across and can understand what people are saying, you win.
- Speaking is 10x harder than listening or reading or even writing, because it involves not only forming sentences in an unfamiliar language, but also saying them, which involves your muscles. At first, it’s really hard to say the sounds of the language that don’t exist in your own language, and I found that very frustrating.
- Language and culture are different, but interconnected. You don’t really speak a language if you don’t understand the culture it’s attached to. For instance, at first I didn’t know what the cashiers were asking me at the checkout, until I learned that they want to see the bags you brought from home to make sure they are empty. The problem with missing cultural references is that everybody around you knows them, and they don’t understand why you don’t, or what there is to explain.
- One of the very few great use cases of LLMs is, in fact, talking with a chat bot. You give it a good prompt (look for them online) and you are forced to talk in the target language. If the bot can understand you, a native speaker probably will, too. A good tip is to try an AI conversation on the topic of something you are about to do in real life, like applying for an apartment or having a conversation about cheese.
- Personally, I found that my language skills drowned completely under certain, specific circumstances. For instance, for the life of me I cannot understand voice messages, at all. Even phone conversations are really bad for me, both in talking and listening. I can have a perfectly fine conversation with someone, but when I have to talk with them on the phone, it’s like I never learned the language.
- The tool you use is not as important as the time you spend. Duolingo was really meh: too much useless vocabulary, not enough grammar and pattern recognition, lack of ability to specify areas of interest, down to always on animations even when you had them all turned off. But, despite the heavy focus on the words, “chouette” and “trousse,” I sort of learned French to the point where I can follow everyone along and can speak and be understood. Took a year to the day and the entire tree.
manxu@piefed.socialto News@lemmy.world•CW: Massive outpouring of grief after missing trans teen Charlotte Fosgate confirmed dead by policeEnglish832·14 days agoConservatives are genuinely such disgustingly cruel, depraved monsters. It makes me sick.
Why do the beautiful souls have to leave us, and not the ugly ones?
manxu@piefed.socialto News@lemmy.world•Former Trump supporter Pamela Hemphill refuses and returns her Jan. 6 pardonEnglish5·14 days agoIronically, the reason she refused the pardon is a reason to pardon her.
manxu@piefed.socialto News@lemmy.world•Law firms who bowed to Trump are paying a steep priceEnglish38·14 days agoI mean, the law firm executive orders read like they were written by a first-year who flunked Constitutional Law three times in a row. If a law firm can’t appreciate how easy they would be to defend against, and what great PR a win would be, then they can’t be helped - and worse, can’t help anyone.
manxu@piefed.socialto News@lemmy.world•ICE releases health worker arrested at airport despite living in the U.S. legally for 50 yearsEnglish2·17 days agoWell, that makes perfect sense. After all, America is drowning in an overpopulation of competent health workers! /s
That’s the thought I always had: When I develop in Node, I stand on the shoulders of ten thousand microbes.