Medium is a simple and modern blogging theme based on Medium.com's design language, built for Grav CMS.
Installing the Medium 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 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 medium
This will install the Medium theme into your /user/themes
directory within Grav. Its files can be found under /your/site/grav/user/themes/medium
.
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 medium
. 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/medium
The simplest way to update this theme is via the Grav Package Manager (GPM). You can do this with this by navigating to the root directory of your Grav install using your system's Terminal (also called command line) and typing the following:
bin/gpm update medium
If you want to set Medium as the default theme, you can do so by following these steps:
/your/site/grav/user/config
.theme:
setting to theme: medium
.bin/grav clear-cache
.To get your blog up and running, copy the pages
folder from /your/site/grav/user/themes/medium/_demo
and replace it with /your/site/grav/user/pages
. This will help set-up a basic structure of your website using the templates.
The Medium theme has a few simple options that help you configure the theme (medium.yaml
):
enabled: true
default_lang: en
infinite_scroll: true
analytics: UA-YOURCODE
social:
twitter: @getgrav
In order to configure Medium, you should copy the theme's medium.yaml
file into a file of your own: user/config/themes/medium.yaml
and make your modifications there.
cd /your/site/grav/user/themes/medium
.npm install
.bower install
.gulp
.src
folder.templates
.Pull requests are the way to go.
Matthew Blode
MIT © Matthew Blode