Exploring Grav: A Flat-File CMS

13 May modified: 8 years ago

Figur Shortcode

grav plugin unsplash

Now we're going to attempt and even more ambitious shortcode investigation with the creation of a custom shortcode plugin. I've been researching how to add variables to the shortcode. The content of these variables will be specified within the shortcode definition in the markdown markup in the artic…

Continue reading Figur Shortcode ...

27 Apr modified: 8 years ago

Typography Over-Ride

grav ui Bruno Martins | unsplash

The core Grav theme template (Antimatter) comes pre-configured to display two Google fonts downloaded from Google Fonts CDN. The two fonts used in the default configuration are: Montserrat (for all the header and display functions) and Raleway (for body text). Although these fonts are quite a nice c…

Continue reading Typography Over-Ride ...

07 Apr modified: 8 years ago

Auto-Update Webhook — Part 2

grav github unsplash

Revised approach to configuration

OK, the first time I tried the GitHub automatic webhook it didn't work out so well. The intent is to automatically upload to the production server any changes or additions made to items located in /user folder. Although it seemed to function properly at first, my in…

Continue reading Auto-Update Webhook — Part 2 ...

01 Apr modified: 8 years ago

Markdown Basics

grav Markdown Dayne Topkin | unsplash

TLDR

My primary text creation tool is SublimeText. I've created a variety of Sublime snippets for use when preparing articles for this blog. Here are a few of them:

  • mdimage + TAB = image tag in GRAV format
  • mdatt + TAB = photo credit shortcode
  • mdlink + TAB = vanilla HTML link tag
  • mdlinkkey + TAB = c…

Continue reading Markdown Basics ...

02 Mar modified: 8 years ago

Shortcode Sandbox

grav plugin shortcode Mike Arney | unsplash

Let's try a built-in core shortcode. The following shortcode will add an underline to some text. The third word is underlined. OK, now we are going to try a modified shortcode that I put together.

This one will turn the selected text bold and red. The trigger will be... (can't show you). Your chain…

Continue reading Shortcode Sandbox ...