{"id":15412135,"url":"https://github.com/maymeow/hugo-posts-graph","last_synced_at":"2025-11-08T05:30:41.285Z","repository":{"id":214042825,"uuid":"735554880","full_name":"MayMeow/hugo-posts-graph","owner":"MayMeow","description":"Posts graph for hugo","archived":false,"fork":false,"pushed_at":"2023-12-25T11:55:55.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-28T16:02:05.937Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MayMeow.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":"2023-12-25T10:39:19.000Z","updated_at":"2023-12-25T11:34:49.000Z","dependencies_parsed_at":"2023-12-25T11:42:16.581Z","dependency_job_id":"25f7db0d-f63f-4853-8fbe-005be1bb2f34","html_url":"https://github.com/MayMeow/hugo-posts-graph","commit_stats":{"total_commits":8,"total_committers":1,"mean_commits":8.0,"dds":0.0,"last_synced_commit":"cd2e48a7b5ead377567d1f6be3b08e63bbdbeebd"},"previous_names":["maymeow/hugo-posts-graph"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MayMeow%2Fhugo-posts-graph","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MayMeow%2Fhugo-posts-graph/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MayMeow%2Fhugo-posts-graph/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MayMeow%2Fhugo-posts-graph/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MayMeow","download_url":"https://codeload.github.com/MayMeow/hugo-posts-graph/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239550248,"owners_count":19657538,"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-10-01T16:51:23.912Z","updated_at":"2025-11-08T05:30:41.257Z","avatar_url":"https://github.com/MayMeow.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Posts graph for Hugo\n\nGenerate a data file to create a post graph from posts.\n\n## Usage\n\nInstallation\n\n```bash\n# Hugo by default dont need NPM\nnpm init\nnpm i @themaymeow/rpo-api-client\n```\n\nUsing in your script\n\n```javascript\nimport stats from \"@themaymeow/hugo-posts-graph/hugo.js\";\nstats.getDates(\"content/posts\")\n```\nThe script above will create a new file `data/postGraph.json` that you can use to create the graph.\n\n## Using with Hugo\n\nTo display the result on your page, you need to implement a new layout or shortcode. I have made examples of both sortcode and style.\nYou are free to make your own, but if you want to start right now:\n\n- Add [posts-graph-shortcode.html](https://github.com/MayMeow/hugo-posts-graph/blob/main/example/posts-graph-shortcode.html) to your shortcode folder\n- And [_posts-graph.scss](https://github.com/MayMeow/hugo-posts-graph/blob/main/example/_posts-graph.scss) somewhere in your style.\n\nNote that you will need to use hugo extended version to generate CSS from SCSS files.\n\nCreate a new page e.g.: `hugo new stats.md` and put following code somewhere in the content of your page.\n\n```html\n{{\u003c post-graph \u003e}}\n```\n\nThe result:\n\n![](posts-graph.png)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaymeow%2Fhugo-posts-graph","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaymeow%2Fhugo-posts-graph","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaymeow%2Fhugo-posts-graph/lists"}