Coder Social home page Coder Social logo

thedigitaloctopus / accessible-minimalism-hugo-theme Goto Github PK

View Code? Open in Web Editor NEW

This project forked from leonstafford/accessible-minimalism-hugo-theme

0.0 1.0 0.0 443 KB

Minimalist Hugo theme with a penchant for accessibility

Home Page: https://accessible-minimalism.netlify.app

License: The Unlicense

HTML 100.00%

accessible-minimalism-hugo-theme's Introduction

Accessible Minimalism Hugo Theme

Minimalist Hugo theme with a penchant for accessibility

Demo site

Project aims

  • XHTML 1.0 Strict valid and HTML 5 friendly code
  • minimal bloat in the generated markup
  • focus on accessibility
    • semantic, minimal markup for screen readers
    • minimal added CSS for partially sighted users
    • easy to read source code
    • minimal config required to get started and use in Hugo
  • RSS subscription support
  • favors fully-blind users over partially or fully sighted users
  • mobile-last development

Who is this for?

This aims at users who care more about content and inclusivity than dancing baby GIFs or whatever the 2020 equivalent is.

The early web was great for content, unburdened by MBs of JavaScript or CSS. RSS feeds allowed users to pull your content on demand vs being forced into giving you space in their precious inbox or following your social-ills.

Getting started

  1. In your Hugo site's root, clone this repo to your themes dir:

git clone --depth 1 https://github.com/leonstafford/accessible-minimalism-hugo-theme themes/accessible-minimalism

It may be preferable to use git's submodule functionality to keep the theme within your website's repository. To do this, use:

git submodule add https://github.com/leonstafford/accessible-minimalism-hugo-theme themes/accessible-minimalism

Using the https remote URI will make deployment of your website via some CI/CD, such as Netlify, easier.

  1. Copy the config.toml file from the exampleSite directory inside this repository to your site root:

cp themes/accessible-minimalism/exampleSite/config.toml .

Configuration

The main things you may want to adjust when using this theme are your content structure and main site menu. Copying the content directory from this theme's exampleSite directory will be a good place to start. You can compare this with the menu entries in the config.toml and it should make sense. Try making changes and see what happens. If it becomes a mess, reset both to initial states.

Development decisions

  • skip redundancy such as anchor's title attributes
  • default browser colors are high contrast enough

Screenshot

Screenshot

Testing

  • check theme against w3c validator
  • check using content dir from hugoBasicExample
  • check using content dir from exampleSite in this repo
  • check navigation and content in lynx(1) browser
  • check navigation and content in screen reader(s)
  • test accessibility in sites like:

Roadmap

  • theme options / config help for enabling footer links to email, RSS, socials
  • scriptless search (GET submission to engine + index generation)
  • multilingual site support (includine Hugo's sitemapindex)

License

The Unlicense - do whatever you like with this code.

accessible-minimalism-hugo-theme's People

Contributors

leonstafford avatar sirfredrick avatar

Watchers

 avatar

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.