https://github.com/arjunattam/arjun.is
https://github.com/arjunattam/arjun.is
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/arjunattam/arjun.is
- Owner: arjunattam
- Created: 2018-06-04T03:58:07.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2024-06-18T07:34:18.000Z (almost 2 years ago)
- Last Synced: 2025-06-21T23:03:04.366Z (12 months ago)
- Language: Nunjucks
- Homepage: https://arjun.is
- Size: 9.89 MB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# arjun.is
This repo powers arjun.is. Built with Eleventy and hosted on Vercel.
## Usage
```bash
npm install
npm run build
```
For local setup, run the following (`fetchPosts.js` fetches posts from GitHub Issues). Delete `scripts/.cached-issues.json` to force a re-fetch.
```bash
node scripts/fetchPosts.js
npm run serve
```
Pre-requisites for local:
- Setup a [PAT](https://github.com/settings/tokens?type=beta) in `GITHUB_TOKEN=xyz` in .env. This token needs to have permissions to access issues on this repo
- (Note to self) While committing changes, don't stage `.md` changes in `.gitignore`
## How it works
The current version supports two sources of content (blog posts): markdown files and GitHub Issues. Effectively, this makes GitHub Issues the CMS for my blog. My intent was to move over to GitHub Issues completely, but given that I had existing posts in markdown, I went ahead with this approach (instead of neater? [approaches](https://github.com/NickColley/website-from-github-issues) that build on 11ty magic.)

### Issue tag convention
- All tags are passthrough — except ones prefixed with `meta:`
- For example
- `meta:internal` for issues related to site fixes
- `meta:published` for issues that are published