{"id":17742825,"url":"https://github.com/prabapro/slcfhr-hugo-website","last_synced_at":"2025-03-31T22:46:41.049Z","repository":{"id":219299596,"uuid":"738356920","full_name":"prabapro/slcfhr-hugo-website","owner":"prabapro","description":"Hugo website for Siri Lakxmi Center For Human Rehabilitation (Sri Lakxmi Ayurveda)","archived":false,"fork":false,"pushed_at":"2024-02-08T18:06:34.000Z","size":12836,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-27T07:44:38.154Z","etag":null,"topics":["decap-cms","hugo","netlify"],"latest_commit_sha":null,"homepage":"https://slcfhr.org","language":"HTML","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/prabapro.png","metadata":{"files":{"readme":"README.md","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}},"created_at":"2024-01-03T03:26:28.000Z","updated_at":"2024-01-29T15:16:44.000Z","dependencies_parsed_at":"2024-10-26T09:09:27.493Z","dependency_job_id":"cc244e50-8b15-4fd5-8260-2a4cf0427bca","html_url":"https://github.com/prabapro/slcfhr-hugo-website","commit_stats":null,"previous_names":["prabapro/slcfhr-hugo-website"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prabapro%2Fslcfhr-hugo-website","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prabapro%2Fslcfhr-hugo-website/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prabapro%2Fslcfhr-hugo-website/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prabapro%2Fslcfhr-hugo-website/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prabapro","download_url":"https://codeload.github.com/prabapro/slcfhr-hugo-website/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246552892,"owners_count":20795836,"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":["decap-cms","hugo","netlify"],"created_at":"2024-10-26T05:22:21.145Z","updated_at":"2025-03-31T22:46:41.032Z","avatar_url":"https://github.com/prabapro.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🚀 SLCFHR\n\n\u003cimg src=\"_branding/logo-out/png/logo-transparent-primary-600x150.png\" alt=\"SLCFHR Logo\" width=\"300\"\u003e\n\nA Jamstack website for Siri Lakxmi Center For Human Rehabilitation (**SLCFHR**).\n\n\u003cdiv style=\"border: 1px solid #dddddd; padding: 10px; border-radius: 5px;\"\u003e\n\n- **SSG:** [Hugo](https://gohugo.io/)\n- **CMS:** [Decap CMS](https://decapcms.org/) (Formerly \"Netlify CMS\")\n- **Deployed on:** [Netlify](https://www.netlify.com/)\n\n\u003c/div\u003e\n\n## 👨‍💻 Development Environment\n\n### Environment Variables\n\n- Generate `.env` file from `.env.example` and update your env variables.\n  ```shell\n  cp .env.example .env\n  ```\n- If new keys are added to the `.env` file, run below command to update the example file with new keys.\n  ```shell\n  sed 's/=.*/=/' .env \u003e .env.example\n  ```\n\n### Local Server\n\nExecute the following command to launch the local server:\n\n```shell\nopen -a 'Google Chrome Canary.app' http://localhost:1313/ \u0026\u0026 export $(grep -v '^#' .env | xargs) \u0026\u0026 hugo server -D --disableFastRender --ignoreCache\n```\n\n#### Alternatively, you can set an alias using below steps;\n\n1. Edit your ZSH config using `nano ~/.zshrc`\n2. Add below to the ZSH config \u0026 run `source ~/.zshrc`\n\n```shell\nalias hugo-serve='open -a \"Google Chrome Canary.app\" http://localhost:1313/ \u0026\u0026 export $(grep -v \"^#\" .env | xargs) \u0026\u0026 hugo server -D --disableFastRender --ignoreCache'\n```\n\n3. Restart the terminal \u0026 start using the alias `hugo serve`\n\n### Local Build\n\nTo perform a local build, use the following command:\n\n```shell\nhugo --gc --minify\n```\n\n\u003e This is not required as Netlify will handle when publishing the site. But useful when inspecting the content inside the `public` folder.\n\n## 📚 Content Management\n\n### Creating New Content with hugo commands\n\nTo create a new blog post, event, or notice, use the respective commands:\n\n```shell\nhugo new blog/name-of-the-post.md\n```\n\n```shell\nhugo new event/name-of-the-event.md\n```\n\n```shell\nhugo new notice/name-of-the-notice.md\n```\n\n## 🧰 Decap CMS\n\nThe Decap CMS allows users to add, edit, and delete blogs, events, and notices without granting access to the repository. User accounts are managed by [Netlify Identity](https://docs.netlify.com/security/secure-access-to-sites/identity/).\n\n- [Decap CMS Documentation](https://decapcms.org/docs/hugo/)\n\n### Usage Steps:\n\n1. Invite a user using Netlify Identity (Limit: 5 users).\n1. Login to `https://slcfhr.org/admin` using the provided credentials.\n1. After making changes and publishing, Decap CMS will automatically generate a Pull Request and delete the branch - [Example](https://github.com/prabapro/slcfhr-hugo-website/pull/2).\n1. Run `git pull` on the local repository to sync changes.\n\n### Running Decap Server Locally\n\nTo run locally with Decap Server, use the following command:\n\n```shell\nnpx decap-server\n```\n\n1. This command will run the local server on port `8081` without opening a browser window.\n1. Now run the `hugo-serve` alias.\n1. Open `http://localhost:1313/admin` (no password required).\n1. Changes will be made to the local repository.\n\n## ![Netlify Logo](https://avatars.githubusercontent.com/in/13473?s=24) Netlify Deployment\n\n[![Netlify Status](https://api.netlify.com/api/v1/badges/ff2f1835-13ac-4522-bed8-85cafc34a31e/deploy-status)](https://app.netlify.com/sites/praba-slcfhr/deploys)\n\nNetlify automatically monitors the GitHub repository for changes in the `main` branch. Upon detection of changes, Netlify initiates the build process and publishes updates instantly.\n\n#### ⚠️ Important\n\nKeep the `netlify.toml` file updated if there are changes to the local `hugo version`. Ensure that the version specified in `netlify.toml` matches the one in your local environment before committing changes to the remote repository.\n\n**Example**: when `hugo version` returns\u003cbr\u003e\n\u003ccode\u003ehugo v0.121.2-6d5b44305eaa9d0a157946492a6f319da38de154+extended darwin/arm64 BuildDate=2024-01-05T12:21:15Z VendorInfo=brew\u003c/code\u003e\n\n```toml\n[build.environment]\n  HUGO_VERSION = \"0.121.2\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprabapro%2Fslcfhr-hugo-website","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprabapro%2Fslcfhr-hugo-website","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprabapro%2Fslcfhr-hugo-website/lists"}