{"id":20128234,"url":"https://github.com/thenewdynamic/hugo-module-tnd-books","last_synced_at":"2026-03-19T14:02:52.884Z","repository":{"id":53474535,"uuid":"340170408","full_name":"theNewDynamic/hugo-module-tnd-books","owner":"theNewDynamic","description":null,"archived":false,"fork":false,"pushed_at":"2023-04-13T13:59:59.000Z","size":65,"stargazers_count":0,"open_issues_count":3,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-02T21:28:28.627Z","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":"2021-02-18T20:32:46.000Z","updated_at":"2022-02-09T16:28:54.000Z","dependencies_parsed_at":"2024-11-13T20:30:00.375Z","dependency_job_id":"c7730db6-f6d6-40ff-b706-a07e8aff8aa9","html_url":"https://github.com/theNewDynamic/hugo-module-tnd-books","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-books","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theNewDynamic%2Fhugo-module-tnd-books","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theNewDynamic%2Fhugo-module-tnd-books/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theNewDynamic%2Fhugo-module-tnd-books/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theNewDynamic%2Fhugo-module-tnd-books/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/theNewDynamic","download_url":"https://codeload.github.com/theNewDynamic/hugo-module-tnd-books/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theNewDynamic%2Fhugo-module-tnd-books/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30173694,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T07:56:45.623Z","status":"ssl_error","status_checked_at":"2026-03-06T07:55:55.621Z","response_time":250,"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:18.284Z","updated_at":"2026-03-06T11:31:28.614Z","avatar_url":"https://github.com/theNewDynamic.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Books 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-books\n```\n\n## Usage\n\n### Editions and bindings\n\nEach book lists an array of editions identified by a binding. \n\n#### Edition front matter\n\n```yaml\ntitle: \"L.A. Confidential\"\ndescription: \"_L.A. Confidential_ is an epic crime novel that stands as a steel-edged time capsule—Los Angeles in the 1950s, a remarkable era defined in dark shadings.\"\neditions:\n- binding: paperback\n  isbn: 9780446674249\n  date: 1997-09-01T15:53:00.000Z\n  publisher: Grand Central Publishing\n  cover_image: /uploads/la_confidential_cover.jpg\n- binding: ebook\n  isbn: 9781455528745\n  asin: B00AMILAEK\n  publisher: Grand Central Publishing\n```\n\n#### Available Bindings\n\n- harcover\n- paperback\n- audiobook\n- ebook\n\n### Buylinks\n\nThe module sports a sophisticated Buylink generator which relies on retailers IDs and edition bindings.\nHere are the current available retailers, their ids, the bindings they sell, and the expected edition's data for link generation\n\n##### Your Independent Bookstore\n  - id: indiebound\n  - expect: ISBN\n  - type: hardcover, paperback\n##### Barnes \u0026 Noble\n  - id: barnesandnoble\n  - expect: ISBN\n  - type: hardcover, paperback\n##### Barnes \u0026 Noble Nook\n  - id: barnesandnoble_nook\n  - expect: ISBN\n  - type: ebook\n##### Libro\n  - id: libro\n  - expect: ISBN\n  - type: audiobook\n\n##### Amazon\n  - id: amazon\n  - expect: ISBN or ASIN\n  - type: hardcover, paperback\n##### Amazon Audible\n  - id: amazon_audible\n  - expect: ASIN\n  - type: audiobook\n##### Amazon Kindle\n  - id: amazon_kindle\n  - expect: ASIN\n  - type: ebook\n##### Apple Books\n  - id: apple_books\n  - expect: ISBN or custom `apple_books_url` key on the edition\n  - type: ebook\n\n### Settings\n\nSettings are added to the project's parameter under the `tnd_books` map as shown below.\n\n```yaml\n# config.yaml's example and defaults\nparams:\n  tnd_books:\n    authors_key: authors\n    date_format: January 2, 2006\n    default_author: false\n```\n\n#### authors_key (default: authors)\n\nDirect the Front Matter key used to store the list of authors as content files.\n\n#### default_author (default: false)\n\nIf set, Books without any Front Matter \"authors\" will resolve to use this content file as author. This is useful for author site where most books are written by the same author.\n\n#### date_format (default: January 2, 2006)\n\nWhenever the module templates is printing dates, this format in [Go Layout string](https://gohugo.io/functions/format/#gos-layout-string) will will be used.\n\n#### retailers\n\nThe retailers config key allows users to overwrite the default list of retailers to limit, order or overwrite labels:\n\n```yaml\n# config.yaml's retailers example and defaults\nparams:\n  tnd_books:\n  - id: barnesandnoble\n    label: Barnes \u0026 Noble\n  - id: barnesandnoble_nook\n    label: Barnes \u0026 Noble Nook\n  - id: amazon\n    label: Amazon\n  - id: amazon_audible\n    label: Amazon Audible\n  - id: amazon_kindle\n    label: Amazon Kindle\n  - id: apple_books\n    label: \"Apple Books\"\n```\n\n## Excerpts page\n\nThe module can help create a page for a book excerpt whose content file contains the `excerpt` key.\nTo add those pages to project you should:\n\n1. Add a cascade key to assign the output format to all books:\n```yaml\n# content/book/_index.md\n---\ntitle: Books\n# First make sure the cascade is not inherited by the section itself.\nouputs:\n  - HTML\n# Add children ouputs through cascade.\ncascade:\n  outputs:\n    - HTML\n    - tnd_books_excerpt\n```\n\n\nBy default the excerpt will live at `/books/{:slug}/excerpt/`.\n\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-books","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthenewdynamic%2Fhugo-module-tnd-books","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthenewdynamic%2Fhugo-module-tnd-books/lists"}