1. 1

    Cool idea, OP. I automated your solution in a bash function.

    encrypt() {
        file=$1
    
        filename=$(basename "$file")        # get filename without path
        ext="${filename##*.}"               # get file extension
        name="${filename%.*}"               # get filename
        directory=$(dirname "$file")        # get directory path
        payload=$directory/$name-e.$ext
    
        if [[ $# -eq 1 ]]; then
            read -s -p "Encryption password: " filepasswd
            qpdf --encrypt $filepasswd ' ' 256 -- "$file" "$payload"
            echo -e "\nEncryption successful!"
        else
            echo "Missing parameter or wrong syntax. Needs one file name."
            echo "encrypt file"
        fi
    }
    
    1. 2

      This seems very nice. In fact, I will adopt some aspects of Ivy into athena. I wonder, though, about two things. One, why the author relies on Python’s Markdown package (which is very minimal and quirky) and not on, say, Pandoc. Two, Ivy claims “it’s [. . .] suited to building project documentation” – I wonder how it’d go about building a blog (since its YAML values seem to support it.)

      1. 2

        I’ve written about it here.

        tl;dr:

        1. Watch as iPhone’s signal (as in worthiness) gatekeeper;
        2. Silent iOS notifications (texts, calls, apps;)
        3. No Lock Screen iOS notifications (but for a few exceptions;)
        4. Extremely conservative with allowing apps to send notifications.
        1. 1

          Maybe Stallman was right about Javascript after all.

          1. 2

            If there were no JavaScript, most users would use other interactive formats with non-trivial code components. Flash or the good old native app.

            All these allow for exactly that.

          1. 1

            I’m curious about athena’s supported for ET styled PDF and LaTeX output. Can you give a PDF example of one of these essays in the demo site?

            1. 1

              athena doesn’t support PDF output; it only converts to HTML. My personal Pandoc Markdown to PDF via LaTeX script produces documents like this (.md source) when I export to an ET template.

            1. 2

              This reminds me of Pelican. What’s the main difference?

              1. 2

                As far as I’m aware, pelican doesn’t support Pandoc out of the box (the most crucial tool in my writing infrastructure outside of athena;) one would need to download and install a plugin. athena started as a pet project to scratch my own itch and in the process I thought of releasing it publicly as well since it’s a great playground to experiment with ET’s ideas and SSGs while incorporating my personal Pandoc (academic and casual) publishing workflow. My main goal was to create one workflow to write plain text docs and be able to publish to PDF via LaTeX (Tufte layout or not,) HTML (same,) slides, letters, &c without (or with minimal) changes in document structure. athena is responsible for the HTML and blog in my setup. Moreover, athena tries to be as minimal with as few dependencies and options as possible.

              1. 1

                Installation is a bit too complex for a minimal blog generator. Maybe create a Homebrew formula for it?

                1. 3

                  While I’d argue it isn’t that complex, you’re generally right – I plan to automate the installation and customization process.

                  1. 2

                    nix / nixos could probably solve this problem quite nicely.

                  1. 5

                    I like this idea a lot and have been working on my own static site lately. I wonder if there will be a set of themes that cascade (theme file->user override) similar to other static site builders like Hugo. I think it’s really appealing for folks to take their content and try it out with several themes to decide on a starting point that nails down the basics for them. Plus you can build a gallery of themes, which is great marketing!

                    The demo pages do have some broken bits BTW. For example on this page I get a 404 for an image and the equation is not being rendered correctly.

                    1. 3

                      Author / OP here. That’s an interesting idea and I have discussed it in the past with a friend of mine to build such a gallery and further automate the theme / layout selection. Re: image 404, permalinks – fixed.

                    1. 2

                      The MathML output looks broken on the demo site here. I’m on Chrome on MacOS.

                      1. 5

                        Author / OP here. Chrome ditched MathML for MathJax a little while ago [link] and I have not found a way yet to support both. (Relevant.)

                        1. 2

                          That’s a damn shame!

                      1. 3

                        I have no idea yet, but I’d appreciate an invite.

                        1. 3

                          You can just click the “Join” link top-right on their homepage, no?

                          1. 3

                            pm me your email