GithubHelp home page GithubHelp logo

maksidaindie / 11r Goto Github PK

View Code? Open in Web Editor NEW

This project forked from reeseschultz/11r

0.0 0.0 0.0 730 KB

America's favorite Eleventy blog template.

Home Page: https://reeseschultz.github.io/11r/

License: MIT License

Shell 1.88% JavaScript 21.10% CSS 16.68% Nunjucks 60.34%

11r's Introduction

11r

America's favorite Eleventy blog template.

View the demo ๐Ÿ‘€...

Features

  • Eleventy for static site generation. See .eleventy.js.
  • Nunjucks for templating.
  • TailwindCSS for utility-first styling. See tailwind.config.js and src/styles/tailwind.css.
  • markdown-it-anchor for generating anchors for headings.
  • eleventy-plugin-nesting-toc for generating tables of contents from anchors. See this page for a demo.
  • Prism syntax highlighting for code with copy button scripting included via clipboard.js. See src/styles/base.css for the theme; and src/scripts/copy.js, which is used by main.js.
  • Rollup for bundling and compiling. See rollup.config.js.
  • JavaScript-based privacy policy notice dismissal handling. See src/scripts/privacy-policy.js, which is used by main.js.
  • Tags.
  • Pagination.
  • Deploy script for GitHub Pages via deploy.sh, using the gh-pages branch. Be sure to edit said script to work with your repository. Remember to also configure the repository appropriately.
  • Exemplary Flexbox usage.
  • SEO mostly done for you. Ensure you replace the data referenced in src/globals/site.json, including the images in public/.

Setup

  1. git clone [email protected]:reeseschultz/11r.git
  2. cd 11r && npm i
  3. npm run dev to serve the site.
  4. npm run build to build the site.
  5. ./deploy.sh to deploy the site to GitHub Pages (includes build).

Tag Styling

Tags are styled in src/styles/tags.css. Coloring custom tags works as such:

...

.tag.beer {
  @apply bg-blue-500;
}

.tag.spirituality {
  @apply bg-indigo-500;
}

.tag.orcas {
  @apply bg-purple-500;
}

...

Credits

License

All contributions to this repository are licensed under MIT.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.