The Rana Theme is a simple app-like mobile first and content-focused Grav theme for Grav CMS. To see the full capabilities of this theme, it is highly recommended to use the breadcrumbs plugin as well as TNT-search plugin.
A simple app-like mobile first and content-focused Grav theme which is also optimized for large screens.
The theme provides several options. If you are using the admin panel, you can easily modify these settings under Themes > Rana. If you are not using admin, you probably know where to modify these settings directly.
Desktop min width
value, which can be set below. routable: false
in the frontmatter of the page. Otherwise, the subpages are only expanded in the menu. Please note: If you do not use Desktop Mode or - when in Desktop Mode - the screen-width is smaller then the amount set above, the menu closes each time you click a routable parent.Installing the Rana 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 via 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 rana
This will install the Rana theme into your /user/themes
directory within Grav. Its files can be found under /your/site/grav/user/themes/rana
.
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 Rana
. 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/rana
NOTE: This theme is a modular component for Grav which requires the Grav, Error and Problems plugins.
As development for the Rana theme continues, new versions may become available that add additional features and functionality, improve compatibility with newer Grav releases, and generally provide a better user experience. Updating Rana is easy, and can be done through Grav's GPM system, as well as manually.
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 Rana
This command will check your Grav install to see if your Rana theme is due for an update. If a newer release is found, you will be asked whether or not you wish to update. To continue, type y
and hit enter. The theme will automatically update and clear Grav's cache.
Manually updating Rana is pretty simple. Here is what you will need to do to get this done:
your/site/user/themes/rana
directory.your/site/user/themes
and rename the resulting folder to Rana
.bin/grav clear-cache
.Note: Any changes you have made to any of the files listed under this directory will also be removed and replaced by the new set. Any files located elsewhere (for example a YAML settings file placed in
user/config/themes
) will remain intact.
The theme was developed to provide learning materials and course information to students. It is focused on the content, so it is kept very simple.
Beside a default template Rana comes with only one additional template to easily generate a decimal structured table of contents. I actually did not use a template for this, but for the release I included one. If you prefer, you may use any plugin to generate a full table of contents of the page. However, I usually need to provide a different TOC of my courses for my students that basically has nothing to do with the structure of the page.
Just write Markdown like this to generate a decimal structure.
1. First part
1. Subpart of first part
1. Some other section
1. Dive into this topic
1. And stay at this level
1. Limits and other things
1. Applications in Science
1. Second part
1. ...
which renders like:
1. First part
1.1 Subpart of first part
1.2 Some other section
1.2.1 Dive into this topic
1.2.2 And stay at this level
1.3 Limits and other things
1.4 Applications in Science
2. Second part
...
Actually you dont even need this template. To generate the TOC without the template, you may simply enable Markdown-Extra and wrap the above Markdown in a
<div class="toc-page" markdown="1">
...
</div>
For all content of my courses I use plugins like MathJax to write LaTeX, YouTube for adding Videos, ...
Only three settings are provided: