{"id":20128216,"url":"https://github.com/thenewdynamic/hugo-module-tnd-events","last_synced_at":"2026-03-19T14:02:54.961Z","repository":{"id":42559012,"uuid":"341612325","full_name":"theNewDynamic/hugo-module-tnd-events","owner":"theNewDynamic","description":null,"archived":false,"fork":false,"pushed_at":"2022-08-05T14:23:18.000Z","size":25,"stargazers_count":1,"open_issues_count":2,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-02T21:28:16.863Z","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":"2021-02-23T16:11:13.000Z","updated_at":"2022-06-22T18:39:57.000Z","dependencies_parsed_at":"2022-08-12T10:01:42.658Z","dependency_job_id":null,"html_url":"https://github.com/theNewDynamic/hugo-module-tnd-events","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-events","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theNewDynamic%2Fhugo-module-tnd-events","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theNewDynamic%2Fhugo-module-tnd-events/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theNewDynamic%2Fhugo-module-tnd-events/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theNewDynamic%2Fhugo-module-tnd-events/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/theNewDynamic","download_url":"https://codeload.github.com/theNewDynamic/hugo-module-tnd-events/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theNewDynamic%2Fhugo-module-tnd-events/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30141270,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T16:58:46.102Z","status":"ssl_error","status_checked_at":"2026-03-05T16:58:45.706Z","response_time":93,"last_error":"SSL_read: 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:13.900Z","updated_at":"2026-03-05T18:01:22.968Z","avatar_url":"https://github.com/theNewDynamic.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Events Hugo Module\n\n(intro)\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-events\n```\n\n## Usage\n\n## Date Handling\n\nIn order to not use default `date` parameter to assign start and end times for the events, we'll use `time_start` and `time_end`. For Hugo to pick `time_start` as the effective date of an event you need to add this to your project configuration:\n\n```\nfrontmatter:\n  date:\n  - time_start\n  - :default\n```\n\n## Events\n\nEvents are content files of the type `event`. They need in their front matter\n- __title__\\*: String\n- __date__: A Datetime\n- __time_start__ A datetime. (if not set, will use __date__)\n- __time_end__ A datetime.\n\n## Venues\nVenues are either content files or front matter maps entered for each events.\n\nVenues can either be content files or Maps set to the events front matter. They should be structured this way:\n\n- __name:__\\* String (if content file, `.Title` will be used)\n- __address:__ A string. Ex: 7301 S. Sante Fe Drive\n- __city:__ A string. Ex: Littleton\n- __state:__ A string. Ex: CO\n- __country:__ A string. Ex: USA\n- __zip:__ A string or int Ex:'80120'\n- __phone:__ A string Ex: +1 555 5555\n- __link:__ A string Ex: https://church-corner.org\n- __tickets_link:__ A string Ex: https://church-corner.org\n\n\n### Venues as content files.\nIf venues are used as content files, Events should refer to them with their path relative to the content directory of the project.\n\n```yaml\n# content/event/church-concert.md\ntitle: Church Concert\ntime_start: 2021-11-22T17:30:08-05:00\ntime_end: 2021-11-22T20:30:08-05:00\nvenue: venue/church-at-the-corner.md\n```\n\n### Venues as maps.\n\nVenues can also directly be entered as Front Matter maps\n\n```yaml\n# content/event/church-concert.md\ntitle: Church Concert\ntime_start: 2021-11-22T17:30:08-05:00\ntime_end: 2021-11-22T20:30:08-05:00\nvenue:\n  name: Church At The Corner\n  address: 1 Corner Street\n  city: Angleville\n  state: Texas\n  zip: '89989'\n  link: https://church-corner.org\n  phone: '+1 555 5555'\n```\n\n### Settings\n\nSettings are added to the project's parameter under the `tnd_events` map as shown below. (Entered are defaults)\n\n```yaml\n# config.yaml\nparams:\n  tnd_events:\n    venue_key: venue\n    date_formats:\n      datetime: January 2, 2006 at 3:04 pm\n      date: 'January 2, 2006'\n      time: '3:04 pm'\n```\n\n#### venue_key\nThe front matter key used in content files to identify the venue either as a path pointing to a content file\nor as a strucured map\n\n#### date_formats\n\nDate formats are used to format dates throughout the view files.\n\n## AddToCal\n\nThe Events module uses TND's AddToCal module to generate an \"Add to calendar\" button lists the following services:\n- Google\n- Yahoo\n- iCal\n- Outlook\n\n## theNewDynamic\n\nThis project is maintained and loved by [thenewDynamic](https://www.thenewdynamic.com).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthenewdynamic%2Fhugo-module-tnd-events","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthenewdynamic%2Fhugo-module-tnd-events","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthenewdynamic%2Fhugo-module-tnd-events/lists"}