A blogging theme for Grav CMS that borrows Medium's typography, built on Foundation 6
Install it, copy the demo pages, and you have a blog with tags, archives, and search.
bin/gpm install mediumRun that from the root of your Grav install. The theme lands in user/themes/medium. To install it by hand instead, clone this repository into that folder.
Seed the pages, then switch the theme over:
cp -R user/themes/medium/_demo/pages/* user/pages/
bin/grav clear-cacheSet theme: medium in user/config/system.yaml. The demo pages give you a home page, a blog listing with four posts, and an about page.
Copy user/themes/medium/medium.yaml to user/config/themes/medium.yaml and edit it there, or use the Themes screen in the Grav admin.
| Option | Default | What it does |
|---|---|---|
default_lang |
en |
Fallback for the <html lang> attribute when no Grav language is active. |
analytics |
Google Analytics property ID for the analytics partial. | |
social.twitter |
@getgrav |
Handle behind the avatar, the author name, and the Follow button. |
home_profile |
Puts the author profile block above the blog listing instead of the page header. |
Each one is optional, and the templates check whether it is enabled before rendering anything.
- Pagination: the Load More link at the foot of the blog listing.
- Archives: the month list in the sidebar.
- Taxonomy List: the featured tags in the sidebar.
- Random: the I'm Feeling Lucky button in the sidebar.
- SimpleSearch: the search box in the top bar and the results page.
- Feed: the Subscribe link in the top bar.
- LangSwitcher: the language switcher in the top bar.
- Comments come from Disqus, switched on per page with
disqus: truein the page header. The shortname intemplates/partials/disqus.html.twigis hardcoded and has to be changed to your own. - The analytics partial ships Google's retired
analytics.jssnippet, so aUA-property collects nothing. Leaveanalyticsunset and add your own tag instead. - The blog listing always loads the next page in place with jScroll, so Pagination has to be enabled for it to have anything to load. The
infinite_scrolloption in the config is not read by any template. - Foundation 6 and jQuery ship in the committed
bower_componentsfolder, with Font Awesome 4.7 and Google Fonts loaded from CDNs. Nothing has to be built to use the theme. - Last released in December 2023, and looked after only as far as keeping it rendering.
MIT
Crafted by Matthew Blode