{"id":15462780,"url":"https://github.com/devidw/hashnode-gh-src-new","last_synced_at":"2025-03-28T11:20:44.182Z","repository":{"id":105128488,"uuid":"432282258","full_name":"devidw/hashnode-gh-src-new","owner":"devidw","description":"Bash Script to automatically create new hashnode .md article files with frontmatter","archived":false,"fork":false,"pushed_at":"2021-11-28T21:45:53.000Z","size":1941,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-02T11:41:44.739Z","etag":null,"topics":["article","articles","bash","bash-script","bash-scripting","cli","hashnode","makdown"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devidw.png","metadata":{"files":{"readme":"README.adoc","changelog":null,"contributing":null,"funding":null,"license":null,"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},"funding":{"github":"devidw"}},"created_at":"2021-11-26T19:30:23.000Z","updated_at":"2023-02-16T02:27:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"20058352-6f91-47ea-8902-40ad267bbf57","html_url":"https://github.com/devidw/hashnode-gh-src-new","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devidw%2Fhashnode-gh-src-new","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devidw%2Fhashnode-gh-src-new/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devidw%2Fhashnode-gh-src-new/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devidw%2Fhashnode-gh-src-new/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devidw","download_url":"https://codeload.github.com/devidw/hashnode-gh-src-new/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246017727,"owners_count":20710242,"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":["article","articles","bash","bash-script","bash-scripting","cli","hashnode","makdown"],"created_at":"2024-10-02T00:04:40.564Z","updated_at":"2025-03-28T11:20:44.176Z","avatar_url":"https://github.com/devidw.png","language":"Shell","readme":"= Bash Script to automatically create new hashnode `.md` article files with frontmatter\n\nYou can use the shell script `new` to auto generate boilterplate article `.md` files, when you publish on hashnode from a GitHub source.\n\n== Installation\n. Download the `new` script\n. Make it executable\n[source, bash]\n----\nchmod +x ./new\n----\n\n== Configuration\nConfiguration is doen by changing variable values inside `new`.\n\n=== Domain\nSpecify your hashnode domain (custom domain or hashnode subdomain)\n[source, bash]\n----\ndomain=\"xn--david-9u04d.to\"\n----\n\n=== Cover\nSpecify a default cover image URL\n[source, bash]\n----\ncover=\"https://david.wolf.gdn/media/cover.png\"\n----\n\n== Usage\nSimply run the script, this will gnerate a new `.md` file with frontmatter in the directory the script is located.\n\n[source, bash]\n----\n./new\n----\n\nThe file name will follow the format of `YYYY-MM-DD_.md`. For example: `2021-12-31_.md`.\n\nNOTE: Spaces are not allowed in hashnode source files, when you are publishing from a GitHub source on Hashnode, use underscores instead.\n\nYou can optionaly pass a date to the script by passing it as argument:\n[source, bash]\n----\n./new 2021-11-28\n----\n","funding_links":["https://github.com/sponsors/devidw"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevidw%2Fhashnode-gh-src-new","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevidw%2Fhashnode-gh-src-new","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevidw%2Fhashnode-gh-src-new/lists"}