{"id":20128220,"url":"https://github.com/thenewdynamic/hugo-module-tnd-tags","last_synced_at":"2026-02-16T20:35:10.148Z","repository":{"id":75047735,"uuid":"275215971","full_name":"theNewDynamic/hugo-module-tnd-tags","owner":"theNewDynamic","description":"A Hugo Module to generate HTML tags","archived":false,"fork":false,"pushed_at":"2021-08-20T15:18:39.000Z","size":12,"stargazers_count":0,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-22T17:51:15.504Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/theNewDynamic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2020-06-26T17:53:17.000Z","updated_at":"2023-02-18T01:46:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"196a2fb7-0e6a-46c1-ba90-e71dae0da761","html_url":"https://github.com/theNewDynamic/hugo-module-tnd-tags","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"theNewDynamic/hugo-module-tnd-template-repo","purl":"pkg:github/theNewDynamic/hugo-module-tnd-tags","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theNewDynamic%2Fhugo-module-tnd-tags","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theNewDynamic%2Fhugo-module-tnd-tags/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theNewDynamic%2Fhugo-module-tnd-tags/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theNewDynamic%2Fhugo-module-tnd-tags/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/theNewDynamic","download_url":"https://codeload.github.com/theNewDynamic/hugo-module-tnd-tags/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theNewDynamic%2Fhugo-module-tnd-tags/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29517614,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-16T18:37:19.720Z","status":"ssl_error","status_checked_at":"2026-02-16T18:36:46.920Z","response_time":115,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":[],"created_at":"2024-11-13T20:26:14.667Z","updated_at":"2026-02-16T20:35:10.118Z","avatar_url":"https://github.com/theNewDynamic.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tags Hugo Module\n\nHugo Module to genererate HTML tags. \n\nRemove HTML/templating concern when having to generate large amount of tags (SEO etc...)\n\n## Requirements\n\nRequirements:\n- Go 1.14\n- Hugo 0.61.0\n\n\n## Installation\n\nIf not already, [init](https://gohugo.io/hugo-modules/use-modules/#initialize-a-new-module) your project as Hugo Module:\n\n```\n$: hugo mod init {repo_url}\n```\n\nConfigure your project's module to import this module:\n\n```yaml\n# config.yaml\nmodule:\n  imports:\n  - path: github.com/theNewDynamic/hugo-module-tnd-tags\n```\n\n## Usage\n\n### tag\n\nThe tag partial takes 3 parameters\n- name*: the tag's name: `link` or `script` etc...\n- inner: The tag's content. If not set, the tag will self close.\n- attr: A map with the tag's attributes.\n\n#### Examples\n\n##### title\n```\n{{ partial \"tnd-tags/tag\" (dict \"name\" \"title\" \"inner\" \"Hugo Tags!\") }}\n```\n\n```html\n\u003ctitle\u003eHugo Tags!\u003c/title\u003e\n````\n\n##### link\n```\n{{ range resources.Match \"fonts/**/*.woff*\" }}\n{{ $params := dict \"name\" \"link\" \"attr\" (dict \"href\" .RelPermalink \"rel\" \"prefetch\" \"as\" \"font\" \"crossorigin\" \"\") }}\n{{ partial \"tnd-tags/tag\" $params }}\n```\n\n```html\n\u003clink as=\"font\" crossorigin href=\"/fonts/files/4fe94f2e-7892-4785-9663-0350a7adf8c0.woff\" rel=\"prefetch\"\u003e\n\u003clink as=\"font\" crossorigin href=\"/fonts/files/5b4bd9d6-75be-4d76-8292-7f6434b9e997.woff\" rel=\"prefetch\"\u003e\n\u003clink as=\"font\" crossorigin href=\"/fonts/files/6e8e8927-5a98-49ae-9123-db1798ec6d92.woff2\" rel=\"prefetch\"\u003e\n```\n\n##### script\n```\n{{ with resources.Get \"main.js\" }}\n  {{ $param := dict \n    \"name\" \"script\" \n    \"attr\" (dict \n      \"type\" \"text/javascript\" \n      \"src\" .RelPermalink \n      \"defer\" \"\"\n     )\n   ) }}\n  {{ partial \"tnd-tags/tag $param }}\n{{ end }}\n```\n\n```html\n\u003cscript defer src=\"/js/main.js\" type=\"text/javascript\"\u003e\u003c/script\u003e\n```\n----\n```\n{{ partial \"tnd-tags/tag\" (dict \n  \"name\" \"script\" \n  \"inner\" `console.log('bonjour vous!')`\n) }}\n```\n```html\n\u003cscript \u003e\n  var text = 'Hello Tag!';\n  console.log(text);\n\u003c/script\u003e\n```\n\n## theNewDynamic\n\nThis project is maintained and love by [thenewDynamic](https://www.thenewdynamic.com).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthenewdynamic%2Fhugo-module-tnd-tags","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthenewdynamic%2Fhugo-module-tnd-tags","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthenewdynamic%2Fhugo-module-tnd-tags/lists"}