{"id":45382856,"url":"https://github.com/i78/hugo-query","last_synced_at":"2026-02-23T10:00:59.673Z","repository":{"id":144668638,"uuid":"248488971","full_name":"i78/hugo-query","owner":"i78","description":"Information Extractor from Hugo Frontmatter content","archived":false,"fork":false,"pushed_at":"2023-08-27T15:31:57.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2024-11-15T12:09:43.682Z","etag":null,"topics":["frontmatter","g","go","hugo"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/i78.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2020-03-19T11:45:28.000Z","updated_at":"2023-08-27T15:08:14.000Z","dependencies_parsed_at":"2024-03-30T07:21:54.677Z","dependency_job_id":null,"html_url":"https://github.com/i78/hugo-query","commit_stats":null,"previous_names":["codecyclist/hugo-query"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/i78/hugo-query","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/i78%2Fhugo-query","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/i78%2Fhugo-query/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/i78%2Fhugo-query/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/i78%2Fhugo-query/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/i78","download_url":"https://codeload.github.com/i78/hugo-query/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/i78%2Fhugo-query/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29688216,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T15:51:39.154Z","status":"ssl_error","status_checked_at":"2026-02-21T15:49:03.425Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["frontmatter","g","go","hugo"],"created_at":"2026-02-21T17:00:22.533Z","updated_at":"2026-02-21T17:00:44.817Z","avatar_url":"https://github.com/i78.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hugo-Query\nHugo-Query extracts content from a Hugo content folder structure.\n\n## Fields of application\nhugo-query is supposed to be used in release pipeline steps for extracting content from the raw .md markdown files in applications where it is not feasible to obtain the wanted data from another source.\n\n# Examples\n\n## Extract eMail addresses from a user list\nI created hugo-query to extract a whitelist of email addresses from a team list, with one page per individual containing a members email address in a frontmatter field named \"email\". The whitelist is generated in a pipeline step before the hugo public folder is uploaded to the target server.\n\nGiven a tree of Markdown files with a header named \"email\":\n\n```\n+++\ntitle = \"Alice Bob\"\ntype = \"member\"\ncountry = \"norway\"\nemail = \"sendmeallyourspam@example.com\"\n+++\nLorem Ipsum dolor set amet ..\n```\n\n.. one can extract the email field as a json map as follows:\n\n\n```\nhugo-query extract --content-folder my-hug-site/content --content-type member --field email --pretty\n```\n\nOutput:\n\n```\n{\n  \"Alice Bob\": {\n    \"email\": \"sendmeallyourspam@example.com\"\n  }\n}\n```\n\nIt is also possible to extract multiple fields:\n```\nhugo-query extract --content-folder my-hug-site/content --content-type member --field email --field country --pretty\n```\n\nOutput:\n\n```\n{\n  \"Alice Bob\": {\n    \"email\": \"sendmeallyourspam@example.com\",\n    \"country\": \"norway\"\n  }\n}\n```\n\n## Code of Conduct\nThis project adheres to No Code of Conduct.  We are all adults.  We accept anyone's contributions.  Nothing else matters.\n\nFor more information please visit the [No Code of Conduct](https://github.com/domgetter/NCoC) homepage.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fi78%2Fhugo-query","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fi78%2Fhugo-query","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fi78%2Fhugo-query/lists"}