Skip to content

vanityURLs/website

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

107 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Logo

GitHub Stars GitHub forks GitHub Last Commit GitHub licence

vanityURLs is a simple solution to deploy a budget-friendly Url Shortener. It runs at scale in your Cloudflare subscription with continuous integration.

This repository contains the source code for the vanityURLs.link website, built using the Hugo static site generator.

🚀 Quick Start

To preview the site locally, ensure you have Hugo installed and run:

hugo server --buildDrafts

Then, visit http://localhost:1313 in your browser.

📚 Documentation Hub

We maintain separate guides for specific workflows:

  1. 🛠️ Development Guide: Local environment setup, coding patterns, and testing
  2. 🚀 Hosting & Deployment: Production infrastructure and deployment pipelines
  3. 📊 Analytics & Metrics: Tracking configuration and data privacy

Key features

i18n

  • Bilingual content: page.en.md / page.fr.md side-by-side
  • UI strings in i18n/en.yaml and i18n/fr.yaml (45+ keys with pluralization)
  • Localized dates via date_format_long i18n key
  • Language-neutral data file paths (layouts prepend /en/ or /fr/ via relLangURL)
  • Language switcher preserves current page when translation exists

Documentation

  • Multi-level sidebar driven by data/{en,fr}/docs_nav.yaml — paths are language-neutral
  • Table of contents, breadcrumbs, Edit-on-GitHub, prev/next, mobile <select> dropdown

Blog

  • Featured post via featured: true front matter (one per language)
  • Reading progress bar, social share (X, LinkedIn, copy-link), related posts, tags, RSS

UX / Accessibility

  • Dark mode with no-flash-on-load
  • Copy-to-clipboard on every <pre>
  • ⌘K search via Pagefind
  • Skip-to-content link, arrow-key sidebar nav, anchor hover

SEO / Performance

  • hreflang, Open Graph, JSON-LD (SoftwareApplication, TechArticle, BreadcrumbList)
  • Favicon + apple-touch-icon from /logo.svg
  • Language-scoped PWA manifest
  • Fingerprinted + minified CSS with SRI

Shortcodes

{{< callout type="warning" title="Breaking change" >}}
This option was removed in v2.
{{< /callout >}}

{{< code file="config/deploy.yml" lang="yaml" >}}
service: my-app
{{< /code >}}

{{< details title="Why not Kubernetes?" >}}
Kubernetes is overkill for most teams.
{{< /details >}}

{{< cards cols="3" >}}
{{< card title="Installation" icon="download" href="/docs/installation/" >}}
Get up and running in minutes.
{{< /card >}}
{{< /cards >}}

{{< filetree/container >}}
  {{< filetree/folder name="config" >}}
    {{< filetree/file name="deploy.yml" annotation="// edit this" >}}
  {{< /filetree/folder >}}
{{< /filetree/container >}}

Contributions

Contributions are welcome! We recognize all types based on the all-contributors specification. Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

Benoît H. Dicaire
Benoît H. Dicaire

💻 📖 🛡️
Brian J. Adams
Brian J. Adams

🖋 🤔 📖 📓
Félix Léger
Félix Léger

💻 🤔 📓 📣

Related

  • dnsConfiguration – Automated DNS configuration with StackOverflow's DNSControl and Git

Licence

vanityURLs is Copyright 2023 Benoît H. Dicaire and licensed under the MIT licence.