{"id":21091341,"url":"https://github.com/andreasscherbaum/hugo-tools","last_synced_at":"2025-03-14T06:22:27.796Z","repository":{"id":250907033,"uuid":"835781155","full_name":"andreasscherbaum/hugo-tools","owner":"andreasscherbaum","description":"Small tools for websites using the Hugo blogging software","archived":false,"fork":false,"pushed_at":"2024-08-06T23:42:46.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-21T01:13:55.738Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andreasscherbaum.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-30T14:14:26.000Z","updated_at":"2024-08-06T23:42:49.000Z","dependencies_parsed_at":"2024-08-07T02:24:29.383Z","dependency_job_id":null,"html_url":"https://github.com/andreasscherbaum/hugo-tools","commit_stats":null,"previous_names":["andreasscherbaum/hugo-tools"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreasscherbaum%2Fhugo-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreasscherbaum%2Fhugo-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreasscherbaum%2Fhugo-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreasscherbaum%2Fhugo-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andreasscherbaum","download_url":"https://codeload.github.com/andreasscherbaum/hugo-tools/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243532986,"owners_count":20306237,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-19T21:45:13.970Z","updated_at":"2025-03-14T06:22:27.778Z","avatar_url":"https://github.com/andreasscherbaum.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hugo-tools\n\nSmall tools for websites using the Hugo blogging software\n\n# check-markdown-files.py\n\nA tool which checks Hugo postings for a wide range of problems.\n\nThis tool has it's own repository.\n\n[Go here: github.com/andreasscherbaum/check-markdown-files](https://github.com/andreasscherbaum/check-markdown-files)\n\n## find-postings-without-comment-id.py\n\nMy blog implements a comments function using Mastodon.\n\nDetails about the implementation are [available in this blog posting](https://andreas.scherbaum.la/post/2024-05-23_client-side-comments-with-mastodon-on-a-static-hugo-website/).\n\nIn order to enable the comment functionality, the posting details of the \"root\" Mastodon posting need to be specified, must notably the posting ID. Being human, I sometimes forget this additional step after publishing the post.\n\nThis script scans a given directory (`content/post`) and finds any `index.md` which is committed in `git` (this ignores unpublished posts) where the `comments-\u003eid` field is empty. Add this as a cron job and it will remind you when you forgot to add the id.\n\nUsage:\n\n```\n../hugo-tools/find-postings-without-comment-id.py content/post/\n```\n\nWhere `../hugo-tools/find-postings-without-comment-id.py` is the path to the script, and `content/post/` is a blog directory.\n\n## list-categories.py / list-tags.py\n\nThe `list-categories.py` tool scans the blog posting and finds all entries under the `categories` Frontmatter. By default it lists all entries, If one of multiple parameters are specified, only matching entries will be listed.\n\nSimilarly the `list-tags.py` tool scans entries under `tags`.\n\n## new-blog-posting.py\n\nOpens an input window (using TKinter) and asks for a blog posting title. Then proceeds to create the blog posting using this name, and a sanitized URL.\n\nIt will add a date in front of the URL.\n\n## add-to-gitignore.py\n\nSpecify one or multiple image files which will be added to the `.gitignore` file in the same directory. If the `.gitignore` file does not exist, it will be created.\n\nOnly files ending in `.jpg`, `.jpeg`, `.png` and `.xcf` (*Gimp* project files) will be added, every other file is ignored.\n\nThis tool is useful to quickly add image files for a blog posting which are stored in the blog posting directory, but are not supposed to appear on the website. Like original images and such.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreasscherbaum%2Fhugo-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandreasscherbaum%2Fhugo-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreasscherbaum%2Fhugo-tools/lists"}