8000 GitHub - aao-fyi/masonsq
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

aao-fyi/masonsq

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MasonSQ

MasonSQ is a masonry, expanding grid, portfolio theme built with Bootstrap for Hugo. The base theme for MasonSQ is Shock. 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.146.0+extended
  • Go >= 1.20.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://codeberg.org/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 codeberg.org/username/project

Add MasonSQ to a project as a theme compontent in the Hugo configuration file.

theme = 'codeberg.org/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.

Languages

  • HTML 63.6%
  • SCSS 25.9%
  • JavaScript 10.5%
0