{"id":26871091,"url":"https://github.com/btbytes/bari","last_synced_at":"2025-03-31T07:18:27.473Z","repository":{"id":66399664,"uuid":"259711552","full_name":"btbytes/bari","owner":"btbytes","description":"A mere static site generator.","archived":false,"fork":false,"pushed_at":"2023-10-21T02:20:51.000Z","size":10,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T03:53:31.854Z","etag":null,"topics":["makefile","pandoc","python","static-site-generator"],"latest_commit_sha":null,"homepage":"","language":"Python","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/btbytes.png","metadata":{"files":{"readme":"README.markdown","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}},"created_at":"2020-04-28T17:53:25.000Z","updated_at":"2023-10-21T01:59:48.000Z","dependencies_parsed_at":"2023-02-21T02:31:01.963Z","dependency_job_id":null,"html_url":"https://github.com/btbytes/bari","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/btbytes%2Fbari","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/btbytes%2Fbari/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/btbytes%2Fbari/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/btbytes%2Fbari/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/btbytes","download_url":"https://codeload.github.com/btbytes/bari/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246429492,"owners_count":20775809,"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":["makefile","pandoc","python","static-site-generator"],"created_at":"2025-03-31T07:18:26.997Z","updated_at":"2025-03-31T07:18:27.463Z","avatar_url":"https://github.com/btbytes.png","language":"Python","readme":"bari -- a *mere* static site generator.\n\nRequirements:\n\n* You can read code (make \u0026 Python)\n* You know what Pandoc is and know how to use it\n* Your system has make, Python and Pandoc installed\n* You can take these opinionated set of choices and modify it to your taste\n\nAdd a new blog post:\n\n\tcat \u003e `date +%Y-%m-%d-01.md` \u003c\u003c EOF\n\tfirst line is treated as title\n\tthe rest of the post.\n\tfin.\n\tEOF\n\nA file with 'YYYY-mm-dd' prefix is treated as a blog post. Anything after the 'YYYY-mm-dd' part is ignored by the program.\n\nTo build the blog posts, (home page) index.html \u0026 (archive page) archive.html, run `make`.\n\nIf you would like to add your name to each post, edit the Makefile and add `--metadata author=\"Your Name\"` to the build step.\n\nYou can add a page (which is not a post), by creating a `anyfile.md` (ending with `.md` extension).\n\nA page with title, date and author would look like this (following Pandoc's metadata header format):\n\n\t% Grand theories of the universe\n\t% 2020-04-28\n\t% A U Thor\n\n\tHerein I propose ...\n\nNote: You should be able to use the YAML style headers like this:\n\n\t---\n\ttitle: Grand theories of the universe\n\tdate: 2023-10-21\n\tauthor: A U Thor\n\t---\n\n\tHerein I propose ...\n\n----\n\nThe generated HTML files are written to the same directory. That is, `about.md` becomes `about.html`.\n\n\n----\n\nExplanation of the files:\n\n* `Makefile` -- main \"script\" to drive the compilation\n* `style.css` -- style for the HTML files (uses [water.css](https://kognise.github.io/water.css/))\n* `bari` -- script to generate HTML pages from markdown\n* `inc.before` -- If you want to add more links (eg: about), this is where you add it.\n* `inc.after` -- If you want to add a copyright to the footer, this is where you add it.\n\n----\n\nWhat's the reasoning behind the name - bari?\n\nbari (ಬರಿ) means *write* and *mere* in Kannada. So, you can *bari* your posts using *bari* markdown and generate your blog with *bari* pandoc, make and python.\n\n\n----\n\nReferences: \n\n1. [Configuring a publishing source for your GitHub Pages site - GitHub Docs](https://docs.github.com/en/pages/getting-started-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbtbytes%2Fbari","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbtbytes%2Fbari","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbtbytes%2Fbari/lists"}