Open Square is NYU Press’s platform for publishing and reading open access books. This repository contains the custom Hugo theme for the Open Square website.
This theme provides the visual structure and styling for the Open Square website, built using the Hugo static site generator. It includes layouts, partials, assets (SCSS, images, JavaScript), and configuration to create a cohesive and accessible user experience.
- Custom Design: Unique visual identity tailored for NYU Press Open Square.
- Responsive Layout: Utilizes Material Design Components (MDC) Layout Grid for flexible display across devices.
- SCSS Styling: Organized and maintainable styles using SCSS, including custom mixins and partials.
- Pre-built Layouts: Includes layouts for the homepage, book details, series, subjects, and more.
- Partials: Reusable components for headers, footers, book summaries, contributor bios, etc.
- Accessibility: Focus on accessible design principles.
- Material Design Components (MDC): Used for layout and UI elements.
- Deque Systems Pattern Library: Used for accessible JS components
The theme offers several ways to customize the appearance and functionality of your Open Square website:
- SCSS Variables: Modify the SCSS variables in
assets/style.scssto adjust colors, fonts, and spacing. - Layouts: Override the theme's layouts by creating corresponding files in your project's
layoutsdirectory. For example, to customize the book detail page, create a file atlayouts/books/single.html. - Partials: Similarly, override partials by creating files in your project's
layouts/partialsdirectory. - Hugo Configuration: Use Hugo's configuration options to control various aspects of the site, such as menus, taxonomies, and site metadata.
assets/: Contains SCSS files, JavaScript, images, and other assets.assets/google-material-design/: Google Material Designassets/style.scss: Main SCSS fileassets/images/: Images used in the themeassets/js: Deque's Accessible JS Frameworkassets/mixins: Reusable SCSS functionsassets/partials: Reusable SCSS code blocks
layouts/: Contains the HTML templates for different page typeslayouts/index.html: Homepagelayouts/_default/: Default layouts for content pages and listslayouts/_default/term.html: Layout for series and subject pages
layouts/books/: Layouts specific to book pageslayouts/books/list.html: Layout for theall bookspagelayouts/books/single.html: Individual book pageslayouts/books/single.read.html: "Wrapper" iframe pages for individual books
layouts/partials/: Reusable HTML snippets
static/: Static assets that are copied directly to the public directorytheme.toml: Hugo theme configuration file
This theme is derived from vimux/blank and is released under the MIT license.