Skip to content

aao-fyi/masonsq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MasonSQ

MasonSQ is a masonry, expanding grid, portfolio theme built with Bootstrap for Hugo. This project is a fork of Frances by Michael Crawford.

Grid functionality now utilizes Bootstrap exclusively. Content structure switched from JSON to Markdown. The jQuery, Modernizr, and ImagesLoaded plugins were removed.

Dependencies

Required

This Hugo theme requires Hugo extended edition and Go.

  • Hugo >= 0.110.0+extended
  • Go >= 1.18.0

Optional

This project supports PostCSS and is pre-configured for PurgeCSS. These features are disabled by default, and have additional dependencies if enabled.

  • NodeJS >= 16.0.0
  • NPM >= 7.0.0

Usage

Local Theme

Use Hugo as a local theme in your project directory. Navigate to your project directory and create a folder named themes, if it does not already exist.

cd ~/example.com
mkdir themes

Inside the themes directory, clone the MasonSQ git repository. Alternativley, download the repository zip file and manually extract it to the themes directory.

cd themes
git clone https://gitlab.com/aao-fyi/masonsq.git masonsq

Inside the Hugo configuration file, set the theme to masonsq.

theme = 'masonsq'

Hugo Module

Use MasonSQ as a Hugo module. Refer to the Hugo Modules documentation for more information.

Initialize the project as a module, specifying the project repository.

hugo mod init gitlab.com/username/project

Add MasonSQ to a project as a theme compontent in the Hugo configuration file. The project is mirrored to GitHub; if necessary, replace gitlab.com with github.com.

theme = 'gitlab.com/aao-fyi/masonsq'

Fetch project modules.

hugo mod get -u

PostCSS / PurgeCSS

To utilize PostCSS and PurgeCSS functionality, install the required NPM packages before enabling the postCSS parameter. Refer to the PurgeCSS documentation for more information.

npm install postcss postcss-cli @fullhuman/postcss-purgecss

Enable the postCSS parameter to enable PostCSS and utilize the PurgeCSS feature.

[postCSS]
  state = true

License

MasonSQ is distributed under the MIT License.