18F / guides-and-methods-hugo

18F Guides and Methods using Hugo site engine

Home Page:https://federalist-1d60e1c6-edfd-4ed3-b30a-e8a2a15b5cae.sites.pages.cloud.gov/site/18f/guides-and-methods-hugo/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

18F Guides and Methods Hugo Prototype

This is an experimental repository by the 18F Guides and Methods team.

Features

  • It's on cloud.gov Pages
  • Flexible layout templates
  • Dynamic navigation
  • Section specific themes
  • Page bundle archetypes
  • Improved performance
  • Sample governance workflow
  • Sample content management workflow
  • Multilingual support using USWDS 3 Patterns

Getting Started (developers)

Please follow the instructions for Installing Hugo locally.

  1. Clone https://github.com/18F/guides-and-methods-hugo.git
  2. cd into new directory.
  3. Start the built-in live server via hugo server.
  4. Visit default URL: localhost:1313

To clone the wiki locally as a root subdirectory:

git clone https://github.com/18F/guides-and-methods-hugo.wiki.git wiki

For a detailed technical overview, visit our Wiki!

Create new content

  1. Add single files with hugo new <SECTIONNAME>/<FILENAME>.<FORMAT>.
  2. Add a new guide (aka section) with hugo new --kind section-bundle <SECTIONNAME>

Getting Started (content managers)

In this GitHub repository, find content organized by Section under content/en, or use the GitHub search feature to find the file. All content files end in .md for Markdown. To edit a page,

  1. click on the edit pencil.
  2. Make content changes. The content supports plain text and Commonmark flavored Markdown.
  3. Attach files by dragging and dropping, selecting or pasting them.
  4. Save your changes by clicking the Commit changes button. This will create a new branch for this commit to start a pull request.
  5. The guides-admins group (hey, that's us!) is set as the default reviewers.
  6. Preview your changes using the cloud.gov Pages preview link.

Keep watching this repo for Content Management System tests. Let us know if you'd like to participate!

Accessibility

Hopefully you already have pa11y-ci running globally! Hugo generates a default sitemap for each language out of the box. Let pa11y-ci check all the URLs in the sitemap with the following command:

pa11y-ci -s http://localhost:1313/en/sitemap.xml --sitemap-find "//localhost:1313" --sitemap-replace "http://localhost:1313/"

Architectural Decision Records

Check out our ADR directory (#3 (comment))) for a history of architectural decisions!

Contact

Open a GitHub issue and assign to the @guides-admins group.

About

18F Guides and Methods using Hugo site engine

https://federalist-1d60e1c6-edfd-4ed3-b30a-e8a2a15b5cae.sites.pages.cloud.gov/site/18f/guides-and-methods-hugo/


Languages

Language:SCSS 50.6%Language:JavaScript 30.4%Language:Twig 13.9%Language:HTML 5.1%