{"id":20128237,"url":"https://github.com/thenewdynamic/hugo-module-tnd-addtocal","last_synced_at":"2026-02-02T14:05:04.914Z","repository":{"id":48921849,"uuid":"277411173","full_name":"theNewDynamic/hugo-module-tnd-addtocal","owner":"theNewDynamic","description":null,"archived":false,"fork":false,"pushed_at":"2021-07-05T14:49:46.000Z","size":81,"stargazers_count":0,"open_issues_count":2,"forks_count":2,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-01-13T08:28:51.434Z","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}},"created_at":"2020-07-06T01:03:59.000Z","updated_at":"2021-07-05T13:41:33.000Z","dependencies_parsed_at":"2022-09-24T00:10:40.169Z","dependency_job_id":null,"html_url":"https://github.com/theNewDynamic/hugo-module-tnd-addtocal","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"theNewDynamic/hugo-module-tnd-template-repo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theNewDynamic%2Fhugo-module-tnd-addtocal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theNewDynamic%2Fhugo-module-tnd-addtocal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theNewDynamic%2Fhugo-module-tnd-addtocal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theNewDynamic%2Fhugo-module-tnd-addtocal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/theNewDynamic","download_url":"https://codeload.github.com/theNewDynamic/hugo-module-tnd-addtocal/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241572396,"owners_count":19984268,"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-13T20:26:19.403Z","updated_at":"2026-02-02T14:04:59.881Z","avatar_url":"https://github.com/theNewDynamic.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TND AddToCal Hugo Module\n\nAn \"Add to Calendar\" button for adding events to your google/yahoo online calendars, or downloading an ics file for your desktop ical and outlook calendar applications.\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 github.com/theNewDynamic/hugo-module-calendar\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-addtocal\n```\n\n## Usage\n\nTo add the calendar button, use the following partial:\n\n```\n{{ partial \"tnd-addtocal/add\" . }}\n```\n\nAlso, be sure the following partial is called (only once) on any page with the calendar button. It will add the button styles and scripts:\n\n```\n{{ partial \"tnd-addtocal/tags\" . }}\n```\n\n### Settings \u0026 Defaults\n\nSettings are added to the project's parameter under the `tnd_addtocal` map as shown below.\n\n```yaml\n# config.yaml\nparams:\n  tnd_addtocal:\n    default_location: '555 Someplace Rd'\n    services:\n      - google\n      - apple\n```\n\nnote: If the `ical` or `outlook_desktop` options are selected, the following must be added to the event collections `_index.md` file frontmatter for the ics files to be generated:\n\n```yaml\ncascade:\n  outputs:\n  - html\n  - calendar\noutputs:\n- html\n- rss\n```\n\n### Required Fields\n\nThe frontmatter values that should be included in each event file for the calendar button to work are:\n\n# Venue\n\nThe `venue` frontmatter field can either be a string pointing to a content file, or a map of data.\n\n## As a map\n\nThe field should contain the following keys:\n\n```yaml\ntitle: A Title\ndate: 2017-10-12 19:00:00\nvenue:\n  city: Elsewhere\n  state: TN\n  zip: '00000'\n  address: '123 somewhere Rd., elsewhere TN 00000'\n  phone: '000-000-0000'\n  link: 'https://something.com/place'\ntickets_link: https://something.com/a-place/tickets   #optional\n```\n\n## As content file.\n\nThe file should contain a `venue` front matter map listing the following:\n\n```yaml\ntitle: A Title\ndate: 2017-10-12 19:00:00\nvenue: venues/carnegy-hall.md\ntickets_link: https://something.com/a-place/tickets   #optional\n```\n\nNote that when pointing to a content file, the \"venue\" content file itself should contain the `venue` Front Matter map mentioned above.\n\n## theNewDynamic\n\nThis project is maintained and love by [thenewDynamic](https://www.thenewdynamic.com).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthenewdynamic%2Fhugo-module-tnd-addtocal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthenewdynamic%2Fhugo-module-tnd-addtocal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthenewdynamic%2Fhugo-module-tnd-addtocal/lists"}