Preview Grav Tutorial (PDF Version)
Total Page:16
File Type:pdf, Size:1020Kb
Grav About the Tutorial Grav is a flat-file based content management system which doesn't use database to store the content instead it uses text file (.txt) or markdown (.md) file to store the content. The flat-file part specifically refers to the readable text and it handles the content in an easy way which can be simple for a developer. Audience This tutorial has been prepared for anyone who has a basic knowledge of Markdown and has an urge to develop websites. After completing this tutorial, you will find yourself at a moderate level of expertise in developing websites using Grav. Prerequisites Before you start proceeding with this tutorial, we assume that you are already aware about the basics of Markdown. If you are not well aware of these concepts, then we will suggest you to go through our short tutorials on Markdown. Copyright & Disclaimer Copyright 2017 by Tutorials Point (I) Pvt. Ltd. All the content and graphics published in this e-book are the property of Tutorials Point (I) Pvt. Ltd. The user of this e-book is prohibited to reuse, retain, copy, distribute or republish any contents or a part of contents of this e-book in any manner without written consent of the publisher. We strive to update the contents of our website and tutorials as timely and as precisely as possible, however, the contents may contain inaccuracies or errors. Tutorials Point (I) Pvt. Ltd. provides no guarantee regarding the accuracy, timeliness or completeness of our website or its contents including this tutorial. If you discover any errors on our website or in this tutorial, please notify us at [email protected] i Grav Table of Contents About the Tutorial .................................................................................................................................... i Audience .................................................................................................................................................. i Prerequisites ............................................................................................................................................ i Copyright & Disclaimer ............................................................................................................................. i Table of Contents .................................................................................................................................... ii GRAV ─ OVERVIEW .............................................................................................................. 1 GRAV ─ INSTALLATION......................................................................................................... 3 Software Requirements for Grav ............................................................................................................. 3 Download Grav ....................................................................................................................................... 3 Setup Wizard ........................................................................................................................................... 4 GRAV ─ PAGES ..................................................................................................................... 7 Page Types .............................................................................................................................................. 8 Folders .................................................................................................................................................. 10 Ordering ................................................................................................................................................ 11 Page File ................................................................................................................................................ 12 Summary Size and Separator ................................................................................................................. 12 Finding other Pages ............................................................................................................................... 13 GRAV ─ MARKDOWN SYNTAX ............................................................................................ 14 Headings ............................................................................................................................................... 15 Comments ............................................................................................................................................. 15 Horizontal rules ..................................................................................................................................... 16 Body Copy ............................................................................................................................................. 16 Emphasis ............................................................................................................................................... 17 Notices .................................................................................................................................................. 19 ii Grav Lists ....................................................................................................................................................... 22 Code ...................................................................................................................................................... 24 Tables .................................................................................................................................................... 25 Links ...................................................................................................................................................... 27 Add a Title ............................................................................................................................................. 28 Images................................................................................................................................................... 28 GRAV ─ PAGE LINKING ....................................................................................................... 30 Slug Relative.......................................................................................................................................... 31 Directory Relative ................................................................................................................................. 32 Absolute Links ....................................................................................................................................... 33 Remote ................................................................................................................................................. 35 GRAV ─ IMAGE LINKING ..................................................................................................... 37 Slug Relative.......................................................................................................................................... 38 Directory Relative ................................................................................................................................. 39 Absolute ................................................................................................................................................ 40 Remote ................................................................................................................................................. 41 Media Actions on Images ...................................................................................................................... 42 GRAV ─ MEDIA................................................................................................................... 43 Supported Media Files .......................................................................................................................... 43 Display Modes ....................................................................................................................................... 43 Locating Thumbnails ............................................................................................................................. 43 Lightboxes and Links ............................................................................................................................. 44 Actions .................................................................................................................................................. 44 Grav ─ Media URL .................................................................................................................................. 45 Grav - Media html ................................................................................................................................. 45 iii Grav Grav - Media Link .................................................................................................................................. 46 Grav - Media Lightbox ........................................................................................................................... 47 Grav - Media Thumbnails ...................................................................................................................... 48 Grav - Media Resize ..............................................................................................................................