From ee1872c79e265622055ad306bd9928a80ca1b3f7 Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Tue, 24 Oct 2017 21:18:50 +0200 Subject: Documentation updated. --- Templates.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Templates.md b/Templates.md index d0a4529..d58e6b1 100644 --- a/Templates.md +++ b/Templates.md @@ -50,6 +50,20 @@ Basic framework of the HTML document which contains the main content: * `$HEAD['OG_IMAGES']`: Contains a list of image URLs for the document * `$HTML`: Contains the documents main body (other templates) +**If you are on a page, post or user site:** +* `$TYPE`: Contains either `PAGE`, `POST` or `USER` as string value. + +**If `$TYPE` is `PAGE`:** +* `$PAGE`: [See reference for `@PAGE`] +* `$USER`: [See reference for `@USER`] + +**If `$TYPE` is `POST`:** +* `$POST`: [See reference for `@POST`] +* `$USER`: [See reference for `@USER`] + +**If `$TYPE` is `USER`:** +* `$USER`: [See reference for `@USER`] + ## Home Template `html/home.php` This is the default startpage template which contains a list with the last posts. -- cgit v1.2.3