The Highlights Theme is for Grav CMS.
Highlights port from HTML5 UP
- Single page application
- Lightweight and minimal
- Fully responsive
- SCSS based CSS source files for easy customization
- Fontawesome icon support
-
Default view template
default.md -
Modular view templates:
modular.md- Header Modular view template
header.md - Part Modular view template
part.md
- Header Modular view template
Installing the Highlights theme can be done in one of two ways. Our GPM (Grav Package Manager) installation method enables you to quickly and easily install the theme with a simple terminal command, while the manual method enables you to do so via a zip file.
The simplest way to install this theme is via the Grav Package Manager (GPM) through your system's Terminal (also called the command line). From the root of your Grav install type:
bin/gpm install highlightsThis will install the Quark theme into your /user/themes directory within Grav. Its files can be found under /your/site/grav/user/themes/highlights.
To install this theme, just download the zip version of this repository and unzip it under /your/site/grav/user/themes. Then, rename the folder to highlights. You can find these files either on GitHub or via GetGrav.org.
You should now have all the theme files under
/your/site/grav/user/themes/highlights
Highlights comes with a few default options that can be set site-wide. These options are:
enabled: true # Enable the theme
logo_image: # A custom logo to use as favicon
background_image: # A custom image to use as the default background imageTo make modifications, you can copy the user/themes/highlights/highlights.yaml file to user/config/themes/ folder and modify, or you can use the admin plugin.
NOTE: Do not modify the
user/themes/highlights/highlights.yamlfile directly or your changes will be lost with any updates
To add a custom logo, you should put the log into the user/themes/highlights/images/logo folder. Standard image formats are support (.png,.jpg, .gif, .svg, etc.). Then reference the logo via the YAML like so:
logo_image:
- name: 'my-logo.png'Alternatively, you can you use the drag-n-drop "Logo image" field in the Highlights theme options.
To add a custom background image, you should put the log into the user/themes/highlights/images/background folder. Standard image formats are support (.png,.jpg, .gif, .svg, etc.). Then reference the logo via the YAML like so:
background_image:
- name: 'my-background.png'Alternatively, you can you use the drag-n-drop "Background image" field in the Highlights theme options.
As a single page theme, the modular page is the default one. Once you create your modular page, you should add modular content children : One header and one or more parts.
You can customize your header part with choosing to display or not a begin button leading to the first part of your single page website. You can also specify the label of this button
display_button: true
button_label: BeginEach part of your single page website is a part page which can have a custom background, a displayed title or not, a custom next button label, and an ability to render list as grids
display_title: true
next_label: Next
list_as_grid: false
background_image: mypic.jpgYou can also use a default grav structure with pages using default template. A minimal navigation bar will be included and your content will be rendered as one single page.
Each page can override the default website background image. The first uploaded image found in the page's folder will be used as background, but you can also specify another one if you uploaded more than one.
background_image: 'image_name'Highlight is build with Laravel-mix on top of webpack. You can install it and customize javascript and css using npm command prompt :
npm installYou can bundle your assets (defined in webpack.mix.js) using npm too.
npm run devbuilds you assets for development purpose
npm run productionbundles your assets for production.