diff --git a/.github/workflows/pages-deploy.yml b/.github/workflows/pages-deploy.yml index e38bc72..410743c 100644 --- a/.github/workflows/pages-deploy.yml +++ b/.github/workflows/pages-deploy.yml @@ -9,6 +9,9 @@ on: - README.md - LICENSE + # Build and test pull requests too (without deploying them) + pull_request: + # Allows you to run this workflow manually from the Actions tab workflow_dispatch: @@ -37,6 +40,7 @@ jobs: - name: Setup Pages id: pages + if: github.event_name != 'pull_request' uses: actions/configure-pages@v5 - name: Setup Ruby @@ -57,11 +61,13 @@ jobs: \-\-ignore-urls "/^http:\/\/127.0.0.1/,/^http:\/\/0.0.0.0/,/^http:\/\/localhost/" - name: Upload site artifact + if: github.event_name != 'pull_request' uses: actions/upload-pages-artifact@v4 with: path: "_site${{ steps.pages.outputs.base_path }}" deploy: + if: github.event_name != 'pull_request' environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} diff --git a/.gitmodules b/.gitmodules deleted file mode 100644 index 58062c5..0000000 --- a/.gitmodules +++ /dev/null @@ -1,3 +0,0 @@ -[submodule "assets/lib"] - path = assets/lib - url = https://github.com/cotes2020/chirpy-static-assets.git diff --git a/404.html b/404.html new file mode 100644 index 0000000..14c8069 --- /dev/null +++ b/404.html @@ -0,0 +1,8 @@ +--- +layout: default +title: Not found +permalink: /404.html +sitemap: false +--- +

404

+

Nothing lives at this address. Try writing or home.

diff --git a/Gemfile b/Gemfile index a6c528d..5f900de 100644 --- a/Gemfile +++ b/Gemfile @@ -2,7 +2,13 @@ source "https://rubygems.org" -gem "jekyll-theme-chirpy", "~> 7.5" +gem "jekyll", "~> 4.4" + +group :jekyll_plugins do + gem "jekyll-feed", "~> 0.17" + gem "jekyll-seo-tag", "~> 2.8" + gem "jekyll-sitemap", "~> 1.4" +end gem "html-proofer", "~> 5.0", group: :test diff --git a/README.md b/README.md index 793cd08..586dcd1 100644 --- a/README.md +++ b/README.md @@ -1,43 +1,31 @@ -# Chirpy Starter +# bishal -[![Gem Version](https://img.shields.io/gem/v/jekyll-theme-chirpy)][gem]  -[![GitHub license](https://img.shields.io/github/license/cotes2020/chirpy-starter.svg?color=blue)][mit] +Personal site: essays and projects. Plain Jekyll, no theme, one stylesheet. -When installing the [**Chirpy**][chirpy] theme through [RubyGems.org][gem], Jekyll can only read files in the folders -`_data`, `_layouts`, `_includes`, `_sass` and `assets`, as well as a small part of options of the `_config.yml` file -from the theme's gem. If you have ever installed this theme gem, you can use the command -`bundle info --path jekyll-theme-chirpy` to locate these files. +## Writing -The Jekyll team claims that this is to leave the ball in the user’s court, but this also results in users not being -able to enjoy the out-of-the-box experience when using feature-rich themes. +- Essays go in `_posts/` as `YYYY-MM-DD-slug.md` and are published at `/posts/slug/`. +- Front matter: `title`, `date`, optional `tags`, and `math: true` for posts with LaTeX. +- Math: `$...$` is inline, `$$...$$` is display. It's rendered by KaTeX, which only loads on posts with `math: true`. +- Tables, images, footnotes and `
` blocks work as normal Markdown/HTML. -To fully use all the features of **Chirpy**, you need to copy the other critical files from the theme's gem to your -Jekyll site. The following is a list of targets: +## Projects -```shell -. -├── _config.yml -├── _plugins -├── _tabs -└── index.html -``` - -To save you time, and also in case you lose some files while copying, we extract those files/configurations of the -latest version of the **Chirpy** theme and the [CD][CD] workflow to here, so that you can start writing in minutes. +Edit `_data/projects.yml`. `featured: true` puts a project on the home page, and `show: false` hides it. -## Usage +## Settings -Check out the [theme's docs](https://github.com/cotes2020/jekyll-theme-chirpy/wiki). +`_config.yml` holds the title, the contact email (defined once), and social handles. -## Contributing +## Local preview -This repository is automatically updated with new releases from the theme repository. If you encounter any issues or want to contribute to its improvement, please visit the [theme repository][chirpy] to provide feedback. +```sh +bundle install +bundle exec jekyll serve --livereload +``` -## License +## Deploy -This work is published under [MIT][mit] License. +Pushing to `main` builds and deploys through `.github/workflows/pages-deploy.yml`. -[gem]: https://rubygems.org/gems/jekyll-theme-chirpy -[chirpy]: https://github.com/cotes2020/jekyll-theme-chirpy/ -[CD]: https://en.wikipedia.org/wiki/Continuous_deployment -[mit]: https://github.com/cotes2020/chirpy-starter/blob/master/LICENSE +The site is served at https://bishal.co.uk. The domain is set in Settings → Pages (no `CNAME` file is needed when deploying with Actions), and DNS lives in Cloudflare. diff --git a/_config.yml b/_config.yml index c96cb86..012a7fd 100644 --- a/_config.yml +++ b/_config.yml @@ -1,182 +1,70 @@ -# The Site Configuration -# Import the theme -theme: jekyll-theme-chirpy - -# The language of the webpage +# Site settings +title: Bishal +description: Essays and projects by Bishal. +author: Bishal lang: en - -# Change to your timezone timezone: Asia/Dhaka -# jekyll-seo-tag settings -# ↓ -------------------------- +# Contact: the only place the address is defined. Use {{ site.email }} elsewhere. +email: hi@bishal.co.uk -title: Spidey -description: >- - A repository of bunch of stuff I'll be writing. - -# Fill in the protocol & hostname for your site. -url: "https://spideyonmoon.github.io" +# The custom domain itself is set in the repo: Settings → Pages → Custom domain. +url: "https://bishal.co.uk" +baseurl: "" -github: - username: spideyonmoon +github_username: spideyonmoon +twitter_username: spideyonmoon +# Used by jekyll-seo-tag twitter: username: spideyonmoon - social: - name: Spidey - email: spidey.wtf.69@gmail.com + name: Bishal links: - - https://x.com/spideyonmoon - https://github.com/spideyonmoon + - https://x.com/spideyonmoon -# Site Verification Settings -webmaster_verifications: - google: - bing: - alexa: - yandex: - baidu: - facebook: - -# ↑ -------------------------- -# The end of `jekyll-seo-tag` settings - -# Web Analytics Settings -analytics: - google: - id: - goatcounter: - id: - umami: - id: - domain: - matomo: - id: - domain: - cloudflare: - id: - fathom: - id: - -# Page views settings -pageviews: - provider: - -# Prefer color scheme setting. -theme_mode: dark # Locked to dark mode for that clean, IDE-style aesthetic - -# The CDN endpoint for media resources. -cdn: - -# the avatar on sidebar, support local or CORS resources -avatar: - -# The URL of the site-wide social preview image used in SEO `og:image` meta tag. -social_preview_image: - -# boolean type, the global switch for TOC in posts. -toc: true - -comments: - provider: giscus - giscus: - repo: spideyonmoon/spideyonmoon.github.io - repo_id: R_kgDORtj8gA - category: Announcements - category_id: DIC_kwDORtj8gM4C5AyP - mapping: pathname - strict: 0 - reactions_enabled: 1 - emit_metadata: 0 - input_position: bottom - theme: preferred_color_scheme - lang: en - -# Self-hosted static assets -assets: - self_host: - enabled: - env: - -pwa: - enabled: true - cache: - enabled: true - deny_paths: - -paginate: 10 - -# The base URL of your site -baseurl: "" - -# ------------ The following options are not recommended to be modified ------------------ - +markdown: kramdown kramdown: - footnote_backlink: "↩︎" + input: GFM + # A single newline in a post renders as a line break, as it does in most + # Markdown editors. Set to false for strict Markdown paragraphs. + hard_wrap: true + math_engine: mathjax # emits \( \) and \[ \], rendered client-side by KaTeX syntax_highlighter: rouge - syntax_highlighter_opts: + syntax_highlighter_opts: css_class: highlight - span: - line_numbers: false block: - line_numbers: true - start_line: 1 + line_numbers: false -collections: - tabs: - output: true - sort_by: order +plugins: + - jekyll-feed + - jekyll-seo-tag + - jekyll-sitemap + +# Existing post URLs (/posts//) are kept so old links still work. +permalink: /posts/:title/ defaults: - scope: - path: "" + path: "" type: posts values: layout: post - comments: true - toc: true - permalink: /posts/:title/ - - scope: - path: _drafts - values: - comments: false - scope: path: "" - type: tabs values: layout: page - permalink: /:title/ sass: style: compressed -compress_html: - clippings: all - comments: all - endings: all - profile: false - blanklines: false - ignore: - envs: [development] - exclude: - - "*.gem" - - "*.gemspec" - - docs - - tools - README.md - LICENSE - - purgecss.js - - "*.config.js" - - "package*.json" - -jekyll-archives: - enabled: [categories, tags] - layouts: - category: category - tag: tag - permalinks: - tag: /tags/:name/ - category: /categories/:name/ + - Gemfile + - Gemfile.lock + - tools + - vendor + - .devcontainer + - .vscode diff --git a/_data/contact.yml b/_data/contact.yml deleted file mode 100644 index ed40acb..0000000 --- a/_data/contact.yml +++ /dev/null @@ -1,40 +0,0 @@ -# The contact options. - -- type: github - icon: "fab fa-github" - -- type: twitter - icon: "fa-brands fa-x-twitter" - -- type: email - icon: "fas fa-envelope" - noblank: true # open link in current tab - -- type: rss - icon: "fas fa-rss" - noblank: true -# Uncomment and complete the url below to enable more contact options -# -# - type: mastodon -# icon: 'fab fa-mastodon' # icons powered by -# url: '' # Fill with your Mastodon account page, rel="me" will be applied for verification -# -# - type: linkedin -# icon: 'fab fa-linkedin' # icons powered by -# url: '' # Fill with your Linkedin homepage -# -# - type: stack-overflow -# icon: 'fab fa-stack-overflow' -# url: '' # Fill with your stackoverflow homepage -# -# - type: bluesky -# icon: 'fa-brands fa-bluesky' -# url: '' # Fill with your Bluesky profile link -# -# - type: reddit -# icon: 'fa-brands fa-reddit' -# url: '' # Fill with your Reddit profile link -# -# - type: threads -# icon: 'fa-brands fa-threads' -# url: '' # Fill with your Threads profile link diff --git a/_data/projects.yml b/_data/projects.yml new file mode 100644 index 0000000..10b183e --- /dev/null +++ b/_data/projects.yml @@ -0,0 +1,103 @@ +# Projects shown on /projects/ (and on the home page when `featured: true`). +# Descriptions are placeholders: rewrite them in your own words. +# +# Fields: +# name, description, lang, year (first year worked on), status +# repo GitHub URL. Leave out for private repos so nothing links to a 404. +# link Live site / bot / docs, if any. +# featured true = also listed on the home page. +# show false = kept here but not published. Private repos start hidden. + +- name: karen + description: A Telegram bot that tries to do far too much, and mostly manages it. Moderation, utilities and whatever else I needed that week. + lang: Go + year: 2026 + status: active + repo: https://github.com/spideyonmoon/karen + featured: true + show: true + +- name: freegamesradar + description: A Telegram channel bot that posts free game giveaways as they appear, using the GamerPower API. + lang: Python + year: 2026 + status: active + repo: https://github.com/spideyonmoon/freegamesradar + link: https://t.me/freegamesradarhq + featured: true + show: true + +- name: quota-tracker + description: A small dashboard for keeping an eye on how much of my AI usage quota is left. + lang: TypeScript + year: 2026 + status: active + repo: https://github.com/spideyonmoon/quota-tracker + link: https://spideyonmoon.github.io/quota-tracker/ + featured: true + show: true + +- name: ielts-writing-simulator + description: A timed IELTS writing exam simulator in the browser, built to practise under real conditions. With dark mode. + lang: HTML + year: 2026 + status: done + repo: https://github.com/spideyonmoon/ielts-writing-simulator + link: https://spideyonmoon.github.io/ielts-writing-simulator/ + show: true + +- name: study-tracking-portal + description: A web portal for logging study sessions and seeing where the hours actually went. + lang: TypeScript + year: 2026 + status: active + repo: https://github.com/spideyonmoon/study-tracking-portal + link: https://study-tracking-portal.vercel.app + show: true + +- name: batch-zipper + description: A Python script that uses NanaZip to archive many folders under one path in a single go. + lang: Python + year: 2026 + status: done + repo: https://github.com/spideyonmoon/batch-zipper + show: true + +- name: fpilot-quicklook + description: Space-bar QuickLook previews in File Pilot, the way they work in Explorer. + lang: C# + year: 2026 + status: archived + repo: https://github.com/spideyonmoon/fpilot-quicklook + show: true + +# --- Private repos: shown as a showcase, with no links ---------------------- + +- name: audio-forensic + description: 'Tools for checking whether a "lossless" file really is: spectrograms, cut-off detection and upscale checks. Python original, a C app, and a Rust rewrite of the core.' + lang: Rust · Python · C + year: 2026 + status: active + show: true + +- name: alfred + description: 'A personal assistant across platforms: an Android app, a Windows client and an audio-focused Telegram bot.' + lang: Kotlin · Rust · Python + year: 2026 + status: active + show: true + +# --- Private repos: hidden until you decide to publish them ----------------- + +- name: mon-key + description: A typing trainer that mixes Monkeytype's feel with Keybr's adaptive lessons. + year: 2025 + status: active + show: false + +- name: tg-cleanup-suite + description: A Python script for cleaning up a Telegram account in bulk. + lang: Python + year: 2026 + status: done + show: false diff --git a/_data/share.yml b/_data/share.yml deleted file mode 100644 index edbc02b..0000000 --- a/_data/share.yml +++ /dev/null @@ -1,50 +0,0 @@ -# Sharing options at the bottom of the post. -# Icons from - -platforms: - - type: Twitter - icon: "fa-brands fa-square-x-twitter" - link: "https://twitter.com/intent/tweet?text=TITLE&url=URL" - - - type: Facebook - icon: "fab fa-facebook-square" - link: "https://www.facebook.com/sharer/sharer.php?title=TITLE&u=URL" - - - type: Telegram - icon: "fab fa-telegram" - link: "https://t.me/share/url?url=URL&text=TITLE" - - # Uncomment below if you need to. - # - # - type: Linkedin - # icon: "fab fa-linkedin" - # link: "https://www.linkedin.com/feed/?shareActive=true&shareUrl=URL" - # - # - type: Weibo - # icon: "fab fa-weibo" - # link: "https://service.weibo.com/share/share.php?title=TITLE&url=URL" - # - # - type: Mastodon - # icon: "fa-brands fa-mastodon" - # # See: https://github.com/justinribeiro/share-to-mastodon#properties - # instances: - # - label: mastodon.social - # link: "https://mastodon.social/" - # - label: mastodon.online - # link: "https://mastodon.online/" - # - label: fosstodon.org - # link: "https://fosstodon.org/" - # - label: photog.social - # link: "https://photog.social/" - # - # - type: Bluesky - # icon: "fa-brands fa-bluesky" - # link: "https://bsky.app/intent/compose?text=TITLE%20URL" - # - # - type: Reddit - # icon: "fa-brands fa-square-reddit" - # link: "https://www.reddit.com/submit?url=URL&title=TITLE" - # - # - type: Threads - # icon: "fa-brands fa-square-threads" - # link: "https://www.threads.net/intent/post?text=TITLE%20URL" diff --git a/_includes/math.html b/_includes/math.html new file mode 100644 index 0000000..7ff4690 --- /dev/null +++ b/_includes/math.html @@ -0,0 +1,18 @@ +{%- comment -%} + KaTeX, loaded only on pages with `math: true`. + kramdown turns $$...$$ into \(...\) (inside a paragraph) or \[...\] (on its own), + and leaves single $...$ untouched. So \( and \[ always came from $$ in the source + and are rendered as display math; $...$ is inline. +{%- endcomment -%} + + + diff --git a/_includes/project.html b/_includes/project.html new file mode 100644 index 0000000..f25b2e2 --- /dev/null +++ b/_includes/project.html @@ -0,0 +1,11 @@ +{%- assign p = include.project -%} +
  • +
    + {% if p.repo or p.link %}{{ p.name }}{% else %}{{ p.name }}{% endif %} + {{ p.lang }}{% if p.lang and p.year %} · {% endif %}{{ p.year }}{% if p.status %} · {{ p.status }}{% endif %} +
    +

    {{ p.description }}

    + {% if p.repo and p.link %} + + {% endif %} +
  • diff --git a/_includes/reading-time.html b/_includes/reading-time.html new file mode 100644 index 0000000..d2b7843 --- /dev/null +++ b/_includes/reading-time.html @@ -0,0 +1,3 @@ +{%- assign words = include.content | strip_html | number_of_words -%} +{%- assign minutes = words | divided_by: 220 | at_least: 1 -%} +{{ minutes }} min read diff --git a/_layouts/default.html b/_layouts/default.html new file mode 100644 index 0000000..9565a83 --- /dev/null +++ b/_layouts/default.html @@ -0,0 +1,46 @@ + + + + + + + + + + + + {% seo %} + {% feed_meta %} + {% if page.math %}{% include math.html %}{% endif %} + + + + +
    + {{ content }} +
    + + + + diff --git a/_layouts/page.html b/_layouts/page.html new file mode 100644 index 0000000..4efbab0 --- /dev/null +++ b/_layouts/page.html @@ -0,0 +1,9 @@ +--- +layout: default +--- +
    + {% if page.title %}

    {{ page.title }}

    {% endif %} +
    + {{ content }} +
    +
    diff --git a/_layouts/post.html b/_layouts/post.html new file mode 100644 index 0000000..fbf0d77 --- /dev/null +++ b/_layouts/post.html @@ -0,0 +1,30 @@ +--- +layout: default +--- +
    +
    +

    + + + {% include reading-time.html content=content %} + {% if page.last_modified_at %} + + updated + {% endif %} +

    +

    {{ page.title }}

    + {% if page.tags.size > 0 %} +

    {% for tag in page.tags %}{{ tag }}{% endfor %}

    + {% endif %} +
    + +
    + {{ content }} +
    + + +
    diff --git a/_tabs/about.md b/_tabs/about.md deleted file mode 100644 index ddb2bc4..0000000 --- a/_tabs/about.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -# the default layout is 'page' -icon: fas fa-info-circle -order: 4 ---- - -> Add Markdown syntax content to file `_tabs/about.md`{: .filepath } and it will show up on this page. -{: .prompt-tip } diff --git a/_tabs/archives.md b/_tabs/archives.md deleted file mode 100644 index c3abc59..0000000 --- a/_tabs/archives.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -layout: archives -icon: fas fa-archive -order: 3 ---- diff --git a/_tabs/categories.md b/_tabs/categories.md deleted file mode 100644 index 2d241be..0000000 --- a/_tabs/categories.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -layout: categories -icon: fas fa-stream -order: 1 ---- diff --git a/_tabs/tags.md b/_tabs/tags.md deleted file mode 100644 index ded3adc..0000000 --- a/_tabs/tags.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -layout: tags -icon: fas fa-tags -order: 2 ---- diff --git a/about.md b/about.md new file mode 100644 index 0000000..8845bee --- /dev/null +++ b/about.md @@ -0,0 +1,12 @@ +--- +title: About +permalink: /about/ +--- + +I'm Bishal. I write about audio — lossless formats, mastering, the loudness war, and the gap between what a file claims to be and what it is. I also build small tools: Telegram bots, audio forensics utilities, and whatever else scratches an itch. + +## Contact + +Email is best: [{{ site.email }}](mailto:{{ site.email }}). + +I'm also on [GitHub](https://github.com/{{ site.github_username }}) and [X](https://x.com/{{ site.twitter_username }}). diff --git a/assets/css/jekyll-theme-chirpy.scss b/assets/css/jekyll-theme-chirpy.scss deleted file mode 100644 index 416be94..0000000 --- a/assets/css/jekyll-theme-chirpy.scss +++ /dev/null @@ -1,49 +0,0 @@ ---- ---- -/* prettier-ignore */ -@use 'main{%- if jekyll.environment == "production" -%}.bundle{%- endif -%}'; - -/* Load the local Tiempos font */ -@font-face { - font-family: 'Tiempos'; - src: url('/assets/fonts/TestTiemposText-Regular.otf') format('opentype'); - font-weight: normal; - font-style: normal; - font-display: swap; -} - -/* 1. Apply Tiempos STRICTLY to the main title and article prose */ -h1[data-toc-skip], -.content p, -.content h1, -.content h2, -.content h3, -.content h4, -.content h5, -.content h6, -.content li, -.content blockquote { - font-family: 'Tiempos', serif !important; -} - -/* 2. Protect inline code and preformatted blocks */ -.content code, -.content pre { - font-family: var(--font-monospace) !important; -} - -/* 3. Hide the Right Sidebar Bloat */ -#access-lastmod, -#access-tags { - display: none !important; -} - -/* 4. Strip the Post Metadata */ -/* Hides the 'Updated' date */ -.post-meta > span:not(:first-child) { - display: none !important; -} -/* Hides the 'By Spidey' author block but preserves the Read Time */ -.post-meta > div > span:first-child { - display: none !important; -} diff --git a/assets/css/style.css b/assets/css/style.css new file mode 100644 index 0000000..ce977fc --- /dev/null +++ b/assets/css/style.css @@ -0,0 +1,354 @@ +/* bishal — notebook style: mono for the interface, serif for reading. */ + +/* Geist Serif (SIL OFL 1.1, assets/fonts/geist-serif/LICENSE.txt). A display face with + one weight and no italic yet, so it's used for titles only, not essay body text. */ +@font-face { + font-family: "Geist Serif"; + src: url("/assets/fonts/geist-serif/GeistSerif-Regular.woff2") format("woff2"); + font-weight: 400; + font-style: normal; + font-display: swap; +} + +:root { + --bg: #fbfaf7; + --bg-soft: #f2f0ea; + --fg: #1c1b19; + --muted: #6d6a62; + --rule: #e2dfd7; + --accent: #b4410e; + --accent-soft: rgba(180, 65, 14, 0.09); + + --mono: ui-monospace, "Cascadia Code", "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace; + --display: "Geist Serif", Charter, "Sitka Text", Georgia, serif; + --serif: Charter, "Bitstream Charter", "Sitka Text", "Iowan Old Style", Cambria, Georgia, serif; + + --measure: 42rem; + color-scheme: light dark; +} + +@media (prefers-color-scheme: dark) { + :root { + --bg: #131312; + --bg-soft: #1c1c1a; + --fg: #e7e4dd; + --muted: #9a968c; + --rule: #2c2b28; + --accent: #ef8a4c; + --accent-soft: rgba(239, 138, 76, 0.12); + } +} + +*, *::before, *::after { box-sizing: border-box; } + +html { + -webkit-text-size-adjust: 100%; + text-size-adjust: 100%; +} + +body { + margin: 0 auto; + max-width: calc(var(--measure) + 2rem); + padding: 0 1rem; + background: var(--bg); + color: var(--fg); + font-family: var(--mono); + font-size: 0.9375rem; + line-height: 1.6; +} + +a { color: inherit; text-decoration-color: var(--rule); text-underline-offset: 0.2em; text-decoration-thickness: 1px; } +a:hover { color: var(--accent); text-decoration-color: currentColor; } +:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; } + +::selection { background: var(--accent-soft); } + +/* Header & footer --------------------------------------------------------- */ + +.site-header { + display: flex; + flex-wrap: wrap; + align-items: baseline; + justify-content: space-between; + gap: 0.5rem 1.5rem; + padding: 2rem 0 1rem; + border-bottom: 1px solid var(--rule); +} + +.site-title { font-weight: 700; text-decoration: none; } +.site-title::before { content: "~/"; color: var(--accent); font-weight: 400; } + +.site-nav { display: flex; gap: 1.25rem; } +.site-nav a { color: var(--muted); text-decoration: none; } +.site-nav a:hover, .site-nav a[aria-current] { color: var(--fg); } +.site-nav a[aria-current]::before { content: "/"; color: var(--accent); } + +main { padding: 2.5rem 0 3rem; min-height: 60vh; } + +.site-footer { + display: flex; + flex-wrap: wrap; + gap: 0.25rem 0.6rem; + padding: 1.25rem 0 2.5rem; + border-top: 1px solid var(--rule); + color: var(--muted); + font-size: 0.8125rem; +} +.site-footer a { color: inherit; } +.sep { color: var(--rule); } + +/* Shared bits ------------------------------------------------------------- */ + +.label { + display: block; + margin: 0 0 0.75rem; + color: var(--muted); + font-size: 0.75rem; + font-weight: 400; + letter-spacing: 0.08em; + text-transform: uppercase; +} + +.meta { margin: 0; color: var(--muted); font-size: 0.8125rem; } + +.tags { margin: 0.75rem 0 0; display: flex; flex-wrap: wrap; gap: 0.4rem; } +.tag { + padding: 0.05rem 0.45rem; + border: 1px solid var(--rule); + border-radius: 3px; + color: var(--muted); + font-size: 0.75rem; +} + +.page-title, .post-title { + margin: 0; + font-family: var(--display); + font-size: clamp(2rem, 1.6rem + 1.8vw, 2.75rem); + font-weight: 400; + line-height: 1.15; + letter-spacing: -0.015em; +} +.page-title { margin-bottom: 1.5rem; } + +section + section { margin-top: 3rem; } + +.more { display: inline-block; margin-top: 1rem; color: var(--muted); font-size: 0.8125rem; } + +/* Home ------------------------------------------------------------------- */ + +.intro { + margin: 0 0 3rem; + font-family: var(--serif); + font-size: 1.1875rem; + line-height: 1.6; +} +.intro p { margin: 0 0 0.75em; } + +.feature { display: block; text-decoration: none; } +.feature h2 { + margin: 0.25rem 0 0.5rem; + font-family: var(--display); + font-size: 1.75rem; + font-weight: 400; + line-height: 1.25; +} +.feature p { margin: 0; color: var(--muted); font-family: var(--serif); font-size: 1.0625rem; } +.feature:hover h2 { color: var(--accent); } +.feature:hover p { color: var(--muted); } + +/* Writing index ----------------------------------------------------------- */ + +.year { + margin: 2rem 0 0.5rem; + color: var(--accent); + font-size: 0.8125rem; + font-weight: 400; +} +.year:first-child { margin-top: 0; } + +.index { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); } +.index li { + display: grid; + grid-template-columns: 6.5rem 1fr auto; + gap: 1rem; + align-items: baseline; + padding: 0.6rem 0; + border-bottom: 1px solid var(--rule); +} +.index time, .index .reading-time { color: var(--muted); font-size: 0.8125rem; } +.index a { font-family: var(--serif); font-size: 1.0625rem; text-decoration: none; } + +/* Projects --------------------------------------------------------------- */ + +.projects { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); } +.projects li { padding: 1rem 0; border-bottom: 1px solid var(--rule); } +.project-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; } +.project-name { font-weight: 700; } +.project-meta { color: var(--muted); font-size: 0.75rem; } +.project-desc { margin: 0.35rem 0 0; font-family: var(--serif); font-size: 1.0625rem; } +.project-links { margin: 0.4rem 0 0; display: flex; gap: 1rem; font-size: 0.8125rem; color: var(--muted); } +.project-links a { color: inherit; } + +/* Post ------------------------------------------------------------------- */ + +.post-header { margin-bottom: 2.5rem; } +.post-header .meta { margin-bottom: 0.6rem; } + +.post-nav { + display: grid; + gap: 0.75rem; + margin-top: 4rem; + padding-top: 1.25rem; + border-top: 1px solid var(--rule); + font-size: 0.875rem; +} +.post-nav a { text-decoration: none; } +.post-nav .label { margin: 0; font-size: 0.6875rem; } +.post-nav .all { color: var(--muted); } + +/* Prose: the essay body -------------------------------------------------- */ + +.prose { + font-family: var(--serif); + font-size: 1.1875rem; + line-height: 1.7; + overflow-wrap: break-word; + hanging-punctuation: first; +} + +.prose > :first-child { margin-top: 0; } + +.prose p, .prose ul, .prose ol, .prose blockquote, .prose table, +.prose details, .prose pre, .prose figure { margin: 0 0 1.25em; } + +.prose h1, .prose h2, .prose h3, .prose h4 { + margin: 2.25em 0 0.75em; + font-family: var(--mono); + line-height: 1.3; + letter-spacing: -0.01em; +} +.prose h2 { font-size: 1.0625rem; } +.prose h2::before { content: "## "; color: var(--accent); font-weight: 400; } +.prose h3 { font-size: 0.9375rem; } +.prose h3::before { content: "### "; color: var(--accent); font-weight: 400; } +.prose h4 { font-size: 0.875rem; } +.prose h5, .prose h6 { + margin: 1.5em 0 1em; + font-size: 1.1875rem; + font-weight: 400; + line-height: 1.5; +} + +.prose a { color: var(--accent); text-decoration-color: var(--accent-soft); } +.prose a:hover { text-decoration-color: currentColor; } + +.prose strong { font-weight: 700; } + +.prose ul, .prose ol { padding-left: 1.4em; } +.prose li { margin: 0.25em 0; } +.prose li::marker { color: var(--muted); } + +.prose hr { + margin: 2.5em auto; + width: 4rem; + border: 0; + border-top: 1px solid var(--rule); +} + +.prose blockquote { + padding: 0.1em 0 0.1em 1.1em; + border-left: 2px solid var(--accent); + color: var(--muted); +} +.prose blockquote > :last-child { margin-bottom: 0; } + +.prose img, .prose video { display: block; max-width: 100%; height: auto; margin: 1.5em auto; border-radius: 3px; } + +/* Code */ +.prose code, .prose kbd, .prose pre { + font-family: var(--mono); + font-size: 0.8em; +} +.prose :not(pre) > code { + padding: 0.1em 0.35em; + border-radius: 3px; + background: var(--bg-soft); +} +.prose pre { + padding: 0.9rem 1rem; + overflow-x: auto; + border: 1px solid var(--rule); + border-radius: 4px; + background: var(--bg-soft); + line-height: 1.55; +} +.prose div.highlighter-rouge, .prose figure.highlight { margin: 0 0 1.25em; } +.prose div.highlighter-rouge pre, .prose figure.highlight pre { margin: 0; } + +/* Tables: scroll sideways on small screens instead of squashing. */ +.prose table { + display: block; + width: max-content; + max-width: 100%; + overflow-x: auto; + border-collapse: collapse; + font-family: var(--mono); + font-size: 0.8125rem; + line-height: 1.5; +} +.prose th, .prose td { padding: 0.45rem 1rem 0.45rem 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; } +.prose th { color: var(--muted); font-weight: 400; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.6875rem; border-bottom-color: var(--fg); } + +/*
    */ +.prose details { + padding: 0.75rem 1rem; + border: 1px solid var(--rule); + border-radius: 4px; + background: var(--bg-soft); + font-size: 1.0625rem; +} +.prose summary { + cursor: pointer; + font-family: var(--mono); + font-size: 0.8125rem; + color: var(--muted); + list-style: none; +} +.prose summary::-webkit-details-marker { display: none; } +.prose summary::before { content: "+ "; color: var(--accent); } +.prose details[open] summary::before { content: "− "; } +.prose details[open] summary { margin-bottom: 0.6rem; } +.prose summary:hover { color: var(--fg); } + +/* Math */ +.prose .katex { font-size: 1.05em; } +.prose .katex-display { margin: 0.75em 0; overflow-x: auto; overflow-y: hidden; padding: 0.25em 0; } + +/* Footnotes */ +.prose .footnotes { margin-top: 3em; padding-top: 1em; border-top: 1px solid var(--rule); font-size: 0.9375rem; } +.prose sup { line-height: 0; } + +/* Syntax highlighting (rouge) */ +.highlight .c, .highlight .c1, .highlight .cm, .highlight .cs { color: var(--muted); font-style: italic; } +.highlight .k, .highlight .kd, .highlight .kn, .highlight .kr, .highlight .kt { color: var(--accent); } +.highlight .s, .highlight .s1, .highlight .s2, .highlight .sb, .highlight .sx { color: #3f7d4f; } +.highlight .m, .highlight .mi, .highlight .mf, .highlight .mh { color: #8a5aa8; } +.highlight .nf, .highlight .nc { font-weight: 700; } +@media (prefers-color-scheme: dark) { + .highlight .s, .highlight .s1, .highlight .s2, .highlight .sb, .highlight .sx { color: #8fc69b; } + .highlight .m, .highlight .mi, .highlight .mf, .highlight .mh { color: #c6a0e0; } +} + +/* Small screens ----------------------------------------------------------- */ + +@media (max-width: 34rem) { + .site-header { padding-top: 1.25rem; } + .prose, .intro { font-size: 1.0625rem; } + .index li { grid-template-columns: 1fr auto; gap: 0.1rem 1rem; } + .index li a { grid-column: 1 / -1; grid-row: 1; } +} + +@media print { + .site-header, .site-footer, .post-nav { display: none; } + body { max-width: none; } +} diff --git a/assets/favicon.svg b/assets/favicon.svg new file mode 100644 index 0000000..abfa18f --- /dev/null +++ b/assets/favicon.svg @@ -0,0 +1 @@ +b diff --git a/assets/fonts/TestTiemposText-Regular.otf b/assets/fonts/TestTiemposText-Regular.otf deleted file mode 100644 index ccc2bd1..0000000 Binary files a/assets/fonts/TestTiemposText-Regular.otf and /dev/null differ diff --git a/assets/fonts/geist-serif/GeistSerif-Regular.woff2 b/assets/fonts/geist-serif/GeistSerif-Regular.woff2 new file mode 100644 index 0000000..55f84ff Binary files /dev/null and b/assets/fonts/geist-serif/GeistSerif-Regular.woff2 differ diff --git a/assets/fonts/geist-serif/LICENSE.txt b/assets/fonts/geist-serif/LICENSE.txt new file mode 100644 index 0000000..8d003fe --- /dev/null +++ b/assets/fonts/geist-serif/LICENSE.txt @@ -0,0 +1,92 @@ +Copyright (c) 2023 Vercel, in collaboration with basement.studio + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +http://scripts.sil.org/OFL + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION AND CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/assets/lib b/assets/lib deleted file mode 160000 index f45457d..0000000 --- a/assets/lib +++ /dev/null @@ -1 +0,0 @@ -Subproject commit f45457d2daaef83e2558a8985f403eed777eadf0 diff --git a/index.html b/index.html index 1357b08..50315a6 100644 --- a/index.html +++ b/index.html @@ -1,4 +1,34 @@ --- -layout: home -# Index page +layout: default --- +
    +

    I'm Bishal. I write long-form essays, mostly about audio and how digital music actually works, and build small tools when something annoys me enough.

    +

    This is where both end up.

    +
    + +{% assign latest = site.posts.first %} +{% if latest %} +
    +

    Latest essay

    + +

    + + + {% include reading-time.html content=latest.content %} +

    +

    {{ latest.title }}

    +

    {{ latest.description | default: latest.excerpt | strip_html | strip | truncate: 220 }}

    +
    + {% if site.posts.size > 1 %}all writing →{% endif %} +
    +{% endif %} + +
    +

    Projects

    +
      + {% for project in site.data.projects %} + {% if project.show and project.featured %}{% include project.html project=project %}{% endif %} + {% endfor %} +
    + all projects → +
    diff --git a/projects.html b/projects.html new file mode 100644 index 0000000..c106561 --- /dev/null +++ b/projects.html @@ -0,0 +1,14 @@ +--- +layout: default +title: Projects +permalink: /projects/ +--- +

    Projects

    + +
      + {% for project in site.data.projects %} + {% if project.show %}{% include project.html project=project %}{% endif %} + {% endfor %} +
    + +more on github → diff --git a/writing.html b/writing.html new file mode 100644 index 0000000..c0d03c1 --- /dev/null +++ b/writing.html @@ -0,0 +1,22 @@ +--- +layout: default +title: Writing +permalink: /writing/ +--- +

    Writing

    + +{% for post in site.posts %} + {% assign year = post.date | date: "%Y" %} + {% if year != current_year %} + {% unless forloop.first %}{% endunless %} +

    {{ year }}

    +
      + {% assign current_year = year %} + {% endif %} +
    • + + {{ post.title }} + {% include reading-time.html content=post.content %} +
    • + {% if forloop.last %}
    {% endif %} +{% endfor %}