{"id":16260750,"url":"https://github.com/piyush-linux/cyber","last_synced_at":"2025-04-08T14:14:06.658Z","repository":{"id":177993021,"uuid":"658618869","full_name":"Piyush-linux/cyber","owner":"Piyush-linux","description":null,"archived":false,"fork":false,"pushed_at":"2024-02-05T14:34:22.000Z","size":767,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-14T10:23:40.652Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Astro","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/Piyush-linux.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2023-06-26T07:01:57.000Z","updated_at":"2023-06-26T07:02:04.000Z","dependencies_parsed_at":"2024-10-10T16:21:09.215Z","dependency_job_id":"e2d6178b-cb06-46ca-bf85-d2cecea322c5","html_url":"https://github.com/Piyush-linux/cyber","commit_stats":null,"previous_names":["piyush-linux/cyber"],"tags_count":0,"template":false,"template_full_name":"chrismwilliams/astro-theme-cactus","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Piyush-linux%2Fcyber","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Piyush-linux%2Fcyber/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Piyush-linux%2Fcyber/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Piyush-linux%2Fcyber/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Piyush-linux","download_url":"https://codeload.github.com/Piyush-linux/cyber/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247856543,"owners_count":21007621,"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":[],"created_at":"2024-10-10T16:21:01.403Z","updated_at":"2025-04-08T14:14:06.639Z","avatar_url":"https://github.com/Piyush-linux.png","language":"Astro","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003cimg alt=\"Astro Theme Cactus logo\" src=\"./gh-assets/astro-cactus-logo.png\" width=\"70\" /\u003e\n\u003c/div\u003e\n\u003ch1 align=\"center\"\u003e\n  🚀 Astro Theme Cactus 🌵\n\u003c/h1\u003e\n\nAstro Theme Cactus is a simple opinionated starter built with the Astro framework. Use it to create an easy-to-use blog or website.\n\n## Key Features\n\n- Astro Fast 🚀\n- TailwindCSS Utility classes\n- Accessible, semantic HTML markup\n- Responsive \u0026 SEO-friendly\n- Dark / Light mode, using Tailwind and CSS variables\n- [Astro Image Integration](https://docs.astro.build/en/guides/integrations-guide/image/) for optimised images\n- MD \u0026 [MDX](https://docs.astro.build/en/guides/markdown-content/#mdx-only-features) posts\n- [Satori](https://github.com/vercel/satori) for creating open graph png images.\n- Pagination\n- [Automatic RSS feed](https://docs.astro.build/en/guides/rss)\n- Shiki code syntax styling\n- Auto-generated [sitemap](https://docs.astro.build/en/guides/integrations-guide/sitemap/)\n\n## Demo 💻\n\nCheck out the [Demo](https://astro-theme-cactus.netlify.app/), hosted on Netlify\n\n## Quick start\n\n[Create a new repo](https://github.com/chrismwilliams/astro-theme-cactus/generate) from this template.\n\n[![Deploy with Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/chrismwilliams/astro-theme-cactus) [![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fchrismwilliams%2Fastro-theme-cactus\u0026project-name=astro-theme-cactus)\n\n## Commands\n\nReplace pnpm with your choice of npm / yarn\n\n| Command        | Action                                                         |\n| :------------- | :------------------------------------------------------------- |\n| `pnpm install` | Installs dependencies                                          |\n| `pnpm dev`     | Starts local dev server at `localhost:3000`                    |\n| `pnpm build`   | Build your production site to `./dist/`                        |\n| `pnpm preview` | Preview your build locally, before deploying                   |\n| `pnpm sync`    | Generate types based on your config in `src/content/config.ts` |\n\n## Configure\n\n- Edit the config file `src/site.config.ts` for basic site meta data\n- Update file `astro.config.ts` site property with your own domain\n- Replace \u0026 update files within the `/public` folder:\n  - favicon.ico \u0026 other social icons\n  - robots.txt - update the Sitemap url to your own domain\n  - manifest.webmanifest\n- Modify file `src/styles/global.css` with your own light and dark styles\n- Edit social links in `src/data/constants.ts` and in turn `src/components/SocialList.astro` to add/replace your media profile. Icons used can be found @ [tablericons](https://tablericons.com/)\n- Create / edit posts for your blog within `src/content/post/` with .md/mdx file(s). See [below](#adding-posts) for more details.\n- OG Image:\n  - If you would like to change the style of the generated image the Satori library creates, open up `src/pages/og-image/[slug].png.ts` to the markup function where you can edit the html/tailwind-classes as necessary. You can also use this [satori playground](https://og-playground.vercel.app/) to aid your design.\n  - If you would like to generate svg og images rather than the default .png ones, you will need to remove the @resvg/resvg-js library, and return the svg within the body of the get function from the file `src/pages/og-image/[slug].png.ts`.\n  - You can also create your own og images and skip satori generating if for you by adding an ogImage property in the frontmatter with a link to the asset, an example can be found in `src/content/post/social-image.md`. More info on frontmatter can be found [here](#frontmatter)\n- Optional:\n  - Fonts: This theme sets the body element to the font family `font-mono`, located in the global css file `src/styles/global.css`. You can change fonts by removing the variant `font-mono`, after which TailwindCSS will default to the `font-sans` [font family stack](https://tailwindcss.com/docs/font-family).\n\n## Adding posts\n\nThis theme utilises [Content Collections](https://docs.astro.build/en/guides/content-collections/) to organise Markdown and/or MDX files, as well as type-checking frontmatter with a schema -\u003e `src/content/config.ts`.\n\nAdding a post is a simple as adding your .md(x) file(s) to the `src/content/post` folder, the filename of which will be used as the slug/url. The two posts included with this template are there as an example of how to structure your frontmatter. Additionally, the [Astro docs](https://docs.astro.build/en/guides/markdown-content/) has a detailed section on markdown pages.\n\n### Frontmatter\n\n| Property (\\* required) | Description                                                                                                                                                                                                                                                                                       |\n| :--------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |\n| title \\*               | Self explanatory. Used as the text link to the post, the h1 on the posts' page, and the pages title property. Has a max length of 60 chars, set in `src/content/config.ts`                                                                                                                        |\n| description \\*         | Similar to above, used as the seo description property. Has a min length of 50 and a max length of 160 chars, set in the post schema.                                                                                                                                                             |\n| publishDate \\*         | Again pretty simple. To change the date format/locale, currently **en-GB**, update/pass the **locale** arg to function **getFormattedDate**, found in `src/utils/date.ts`.                                                                                                                        |\n| tags                   | Tags are optional with any created post. Any new tag(s) will be shown in `yourdomain.com/posts` + `yourdomain.com/tags`, and generate the page(s) `yourdomain.com/tags/[yourTag]`                                                                                                                 |\n| ogImage                | This is an optional property. An OG Image will be generated automatically for every post where this property **isn't** provided. If you would like to create your own for a specific post, include this property and a link to your image, the theme will then skip automatically generating one. |\n\n## Analytics\n\nYou may want to track the number of visitors you receive to your blog/website in order to understand trends and popular posts/pages you've created. There are a number of providers out there one could use, including web hosts such as [vercel](https://vercel.com/analytics), [netlify](https://www.netlify.com/products/analytics/), and [cloudflare](https://www.cloudflare.com/web-analytics/).\n\nThis theme/template doesn't include a specific solution due to there being a number of use cases and/or options which some people may or may not use.\n\nYou may be asked to included a snippet inside the **HEAD** tag of your website when setting it up, which can be found in `src/layouts/Base.astro`. Alternatively, you could add the snippet in `src/components/BaseHead.astro`.\n\nAnother popular provider is google analytics which you could integrate via the above method, or, for example adding [astro-google-analytics](https://www.npmjs.com/package/astro-google-analytics)\n\n```bash\npnpm install astro-google-analytics\n```\n\nEdit `src/layouts/Base.astro`, and add:\n\n```tsx\n---\nimport { GoogleAnalytics } from 'astro-google-analytics';\n// ...other imports\n---\n\n\u003chead\u003e\n  \u003c!-- Replace id with your own Google Analytics ID --\u003e\n  \u003cGoogleAnalytics id=\"G-XXXXXXXXXX\" /\u003e\n\u003c/head\u003e\n```\n\n## Deploy\n\n[Astro docs](https://docs.astro.build/en/guides/deploy/) has a great section and breakdown of how to deploy your own Astro site on various platforms and their idiosyncrasies.\n\nBy default the site will be built (see [Commands](#commands) section above) to a `/dist` directory.\n\n## Acknowledgment\n\nThis theme is inspired by [Hexo Theme Cactus](https://github.com/probberechts/hexo-theme-cactus)\n\n## License\n\nMIT\n\n\n---\n\n# Root Path\n- Change Path\n\nastro.config.ts\n  site : https://username.github.io\n  base : /repo\ndata/constatnt.ts\nsrc/pages/tags/index.astro\nsrc/pages/tags/tag/[...page].astro\nsrc/pages/posts/[...page].astro\nsrc/components/blog/Hero.astro\nsrc/components/blog/PostPreview.astro\n\n## Blogs\n- linux\n  - distro\n  - CLI\n  - system\n- Custom ROM\n- Windows\n- Gmail\n- Privacy\n  - PC : Linux , browser , \n  - Phone : \n\n# Example\n- https://christine.website/blog/birth-death-seo/\n- https://tailscale.dev/blog/funnel-101\nhttps://www.willghatch.net/blog/2020/06/27/nixos-the-good-the-bad-and-the-ugly/\nhttps://drakerossman.com/blog","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiyush-linux%2Fcyber","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpiyush-linux%2Fcyber","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiyush-linux%2Fcyber/lists"}