{"id":15287909,"url":"https://github.com/peaceiris/hugo-mod-mermaidjs","last_synced_at":"2025-10-07T02:31:56.620Z","repository":{"id":44499033,"uuid":"301606000","full_name":"peaceiris/hugo-mod-mermaidjs","owner":"peaceiris","description":"mermaid-js/mermaid packaged as a Hugo Module.","archived":true,"fork":false,"pushed_at":"2022-02-10T10:41:25.000Z","size":13,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-15T12:30:41.884Z","etag":null,"topics":["hugo","hugo-module","hugo-theme","mermaid","mermaidjs"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/peaceiris.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}},"created_at":"2020-10-06T03:41:50.000Z","updated_at":"2023-01-28T01:23:03.000Z","dependencies_parsed_at":"2022-09-13T02:23:13.286Z","dependency_job_id":null,"html_url":"https://github.com/peaceiris/hugo-mod-mermaidjs","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peaceiris%2Fhugo-mod-mermaidjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peaceiris%2Fhugo-mod-mermaidjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peaceiris%2Fhugo-mod-mermaidjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peaceiris%2Fhugo-mod-mermaidjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peaceiris","download_url":"https://codeload.github.com/peaceiris/hugo-mod-mermaidjs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235581533,"owners_count":19013089,"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":["hugo","hugo-module","hugo-theme","mermaid","mermaidjs"],"created_at":"2024-09-30T15:39:30.935Z","updated_at":"2025-10-07T02:31:51.341Z","avatar_url":"https://github.com/peaceiris.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"## hugo-mod-mermaidjs\n\n[mermaid-js/mermaid] packaged as a Hugo Module ([Hugo Modules]).\n\n[mermaid-js/mermaid]: https://github.com/mermaid-js/mermaid\n[Hugo Modules]: https://gohugo.io/hugo-modules\n\n\n## Usage\n\nTo enable this module you must add the following parameters to your `config/_default/config.yaml`:\n\n```yaml\nmodule:\n  imports:\n    - path: github.com/peaceiris/hugo-mod-mermaidjs\n```\n\nIf this is the first time you are using Hugo modules you need to prepare your setup by installing Go, initializing your modules and more. Please refer to the [official Hugo Documentation](https://gohugo.io/hugo-modules/use-modules/) to complete these steps.\n\n\nIn a Hugo template file.\n\n```html\n{{ $js := resources.Get \"mod/mermaidjs/mermaid.min.js\" }}\n{{ $secureJS := $js | resources.Fingerprint \"sha512\" }}\n\u003cscript src=\"{{ $secureJS.Permalink }}\" integrity=\"{{ $secureJS.Data.Integrity }}\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n  var config = {\n    startOnLoad: true,\n    flowchart: {\n      useMaxWidth: true,\n      htmlLabels: true,\n      curve: \"cardinal\",\n    },\n    theme: \"neutral\",\n    securityLevel: \"strict\",\n  };\n\n  mermaid.initialize(config);\n\u003c/script\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeaceiris%2Fhugo-mod-mermaidjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeaceiris%2Fhugo-mod-mermaidjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeaceiris%2Fhugo-mod-mermaidjs/lists"}