Exploring Grav: A Flat-File CMS

29 Jan modified: 5 years ago

GSAP files as Named Assets

grav gsap

Adding GSAP TweenLite and dependencies as a named asset.

http://learn.getgrav.org/themes/asset-manager#named-assets

I'm having a terrible time getting named assets to work properly. For example, if I add the various files needed for a minimal instance of GSAP PLUS the custom-scripts file, it looks as if the stuff is being inserted into the footer error, but Dev Tools reports that there is a 404 error.

Need to look into this more at some point. Right now, I'm simply loading TweenMac and the custom-scripts files as separate .js entities into the footer area. This is working but not as elegantly as I would like.

Continue reading GSAP files as Named Assets ...

26 Jan modified: 5 years ago

Markdown in HTML

md html cookbook

Wrapping markdown into html

Although I understand that markdown extra needs to be enabled in order to add html classes to img tags. For example:

![Rubber Ducky - alt text](Ducky_500px.png?cropZoom=200,200) {.float-right}

Markdown pages are very comfortable running straight HTML in addition to markdo…

Continue reading Markdown in HTML ...

18 Jan modified: 5 years ago

Useful GRAV CLI commands

grav cli gChambers

Watch SCSS folder for changes to: _custom.scss**

A separate gitBash CLI needs to be opened from within the theme root directory, NOT the site root directory.

Open gitBash in the directory that contains the base scss folder. /c/MAMP/htdocs/gravBlog/user/themes/gregthemetwo Keep this terminal open th…

Continue reading Useful GRAV CLI commands ...

15 Jan modified: 5 years ago

Official Grav CLI Cheatsheet

grav git cli Gregory Chambers | gChambers

Issue Currently unable to do a fresh install of a grav instance via the CLI. Will need to pose a question in the forum asking for explicit instructions on using CLI with Windows.

Grav Cheatsheet

All of the commands listed below are compatible with any operating system.

Command Description
bin

Continue reading Official Grav CLI Cheatsheet ...