Clone the theme into your project.
git clone https://github.com/plyrolith/teerex themes/teerex
Setup your site configuration to use the theme:
theme = ["teerex"]
The Web Application Manifest json has to be placed as static/manifest.json
.
Favicons can be placed in static/ico
. For optimal results, the following files should be available:
android-chrome-192x192.png
android-chrome-512x512.png
apple-touch-icon.png
favicon.ico
favicon-16x16.png
favicon-32x32.png
Use these parameters in your website's config.toml
to customize the theme.
-
description
If set, this text will appear under the main page banner and be appended to the page title for the main page.
-
logo
Relative path to the logo drawn in the navigation bar.
-
herovideo
Relative path to the file for the main page full screen background video loop.
-
copyright
Default site parameter; will be displayed on the footer.
Additional parameters that can be set per page.
-
cover
Image displayed in post lists or grids. Set the path absolute or relative to current page.
-
herocover
Image displayed at the top of the page. Set the path absolute or relative to current page.
Use the HTML5 audio player to open given file. Parameters:
- file, absolute or relative to current page
{{< audio "audio/audio.mp3" >}}
Display given link as a button. Use variations to open it in a new tab or in fslightbox. Parameters:
- href, absolute or relative to current page
- text (optional)
- icon name (optional)
- play
- download
- file
{{< button "files/iframe.html" "Click this button!" "play" >}}
Create a gallery from images given with image
shortcodes.
Parameters:
- columns (optional, keep empty to use full width and responsive column count)
{{< gallery 3 >}}
{{< image "img/image1.jpg" >}}
{{< image "img/image2.jpg" >}}
{{< image "img/image3.jpg" >}}
{{< /gallery >}}
Display filtered posts in a cover image grid using the full page width. Parameters:
- tags for filtering posts
{{< grid "Portfolio" >}}
Display a single image and make it available for fslightbox. Parameters:
- href, absolute or relative to current page
{{< image "img/still.jpg" >}}
Open given file in an HTML5 video player with controls. Parameters:
- href, absolute or relative to current page
{{< video "video/myvideo.mp4" >}}
Same as video
, but using autoplay, muted and without controls. Resembles the legacy use of GIFs.
{{< video-loop "video/myloop.mp4" >}}
Replacement of the built-in shortcode to fit the theme better; same funtionality. Parameters:
- video ID
Easy table creation with automated styling. Nested th
shortcode will be displayed as header, nested tr
shortcodes will be displayed as rows.
{{< table >}}
{{< th Fruit Price Amount >}}
{{< tr Apple "1$" 7 >}}
{{< tr Pear "2$" 2 >}}
{{< /table >}}