Skip to content

uncenter/uncenter.dev

Repository files navigation

uncenter.dev

Eleventy Tailwind Cloudflare

Features

Development

pnpm install  # install dependencies
pnpm dev      # start development server
pnpm build    # run production build
pnpm clean    # clean up build artifacts
pnpm format   # format files

Structure

  • src/_layouts/, src/_includes/: nunjucks templates for layouts and components
  • src/_data/: data used in templates
  • src/generated: root files (feeds, sitemap, robots.txt)
  • src/assets/: static assets (styling, scripts, fonts)
  • src/posts/: blog posts
  • images/: images for blog posts
  • public/: favicons and fonts
  • config/11ty/: collections, shortcodes, and filters for 11ty
  • config/markdown/: markdown configuration
  • config/transforms/: various functions for transforming/processing CSS, HTML, and JS
  • functions/: stores Cloudflare Pages Functions
    • Currently the only function in use checks to see if the request user-agent is from the CLI program curl and returns the "whoami" code block seen on the home page in JSON form (#78).

License

Source code is under MIT, blog posts (and other written content) are under CC BY-SA 4.0.