• 0 Posts
  • 21 Comments
Joined 4 个月前
cake
Cake day: 2025年2月27日

help-circle

  • 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



  • It’s definitely a setback, but you learned two important things:

    1. You can get an entry level job
    2. You need a place where you can work

    The ONLY reason it didn’t work out this first time is because 1. and 2. were not sufficiently close in time. I wouldn’t have known either (and now I do, so thanks for the learning experience!). I’d probably start looking for a similar position (maybe with a company that is less weird about infrastructure, although you only know after you get the job) AND an office-type place at the same time.

    I would guess a lot of the less-than-five stars motels would be happy to give you a heavy discount if you only use your room during the day and don’t need to stay at night, ever. They are really selling the nights.

    It must be incredibly frustrating to be in your current position, but I am really happy that you found a way to make it better. I think you got the right solution for you, it’s just a matter of iterating it until it sticks. I was in your shoes and I wish I had had as clear a plan as you have.


  • If you get within earshot of a Republican, chances are you’ll hear complaints about “damn taxes” within five minutes. So to a certain set of people, definitely everyone they talk to is constantly complaining about taxes.

    When I was starting out and making little money, the taxes I paid were definitely cutting into my ability to live. I think instead of “standard deductions” we should have real minimum incomes. If you are under the minimum income for your location, you don’t pay taxes.

    Now that I am at the end of my career, I think it’s stupid that my taxes are not higher. If I could have given young me some of the money I am keeping now, I would have had a much better life overall. I obviously can’t do that now, but I can give someone else the same breathing room.



  • I went the same direction, from WordPress to static site generation. I did the same evaluation as you are trying to do and ended up with Hugo, mostly because there is a lot of support available for it. My runner up was Pelican, because I was fluent in Jinja2, but I didn’t want to mess around with the templates and Hugo’s were prettier. Sue me, I am shallow.

    The one regret I have about Hugo is that the templating language is challenging. I am trying to be as neutral as possible, but it seemed like even simple things were complicated to achieve. If someone would come up with a Hugo that speaks Jinja2, I’d be really delighted.

    Other than that, conversion from WordPress to Hugo was relatively straightforward, despite needing to find a gallery component and converting menus. Hugo is indeed very fast in processing, which become important when your blog has thousands of articles.

    I set up the blog as a private git repository. The server pulls from it, then runs Hugo and a full text search engine, and the content is visible and searchable within five minutes on update.


  • manxu@piefed.socialtoLinux@lemmy.mlscanner
    link
    fedilink
    English
    arrow-up
    4
    ·
    29 天前

    I used to have a Canon Pixma, and the SANE drivers recognized it and scanned from it with no issues, down to the ADF feeder. It was really surprisingly simple, zero setup configuration.

    I basically just used the preinstalled software, Skanlite, and it showed with the scanner pre-selected and ready to go.

    Of course, YMMV.





  • I wholeheartedly support David Hogg’s movement to primary away status quo Democrats. I have seen Chuck Schumer’s “negotiating skills” with the continuing resolution, I have seen Newsom’s equivocation on trans rights, I have seen Biden’s handling of Gaza. Believe me, I understand how useless it is to have one party be radically authoritarian and the other wants to play nice and get along.

    What I am saying is that I think it makes more sense to get rid of the status quo party now than in 2024.


  • You sound like one of those people who stopped caring about the child cages soon as biden was the one doing it.

    That’s interesting, because unlike so, so many of the people that took on the mantle of the righteous cause of the Palestinians, I’ve been talking about it since last century. The Palestinians have been mistreated since at least the 80s, and in an ongoing fashion for now 40 years.

    Did I hear anyone on the American left complain about it until 2023? Not really. It was really lonely in that camp. It somehow feels that if it hadn’t been for TikTok taking up the cause, this would have been another one of those times when Palestine is forgotten.

    I am delighted that Palestine has gotten more attention, and I am very hopeful that somehow the situation can be stabilized and improved for a people that has suffered way too much. But not preventing Trump from taking power was honestly a very bad thing to happen for Palestine.





  • The Overton window is anchored by a series of landmarks. The most effective way to lose one of them, like the Constitution, is to start discussing whether it has merit.

    Right now, the country is in the sad state that the absolute minimum, adherence to a Constitution to which government official swear an oath of allegiance, is in question. You gain absolutely nothing, right now, by questioning the Constitution. You wait until the constitutional order is re-established and actors that routinely violate it are punished, and when the Overton window moves back … it’s not really to the left, it’s more towards democracy itself, then you discuss the flaws of the Constitution.