Theme Unit Test

CATEGORIES

ARCHIVES


With Tessellation you can tell VenC if it must display entry title or not.

By default, entry title are disabled.

On the user side, to display the entry title in the entry, one have to set up the above metadata "display_title_in_entry".

By looking the source of the Tessellation theme, in entry.html you'll see that we are calling the following patterns to achieve the trick.

.:GetEntryMetadataIfExists::display_title_in_entry::<h1>Display title in entry test</h1>:.

Example of Latex2MathML usage for rendering complex number expression:

z1¯.z2¯=z1.z2¯

Another example combining Latex2MathML and Table for rendering lined up equation:

z1¯.z2¯=(a+ib)¯(c+id)¯
=(aib)(cid)
=aciadibcbd
=(acbd)i(ad+bc)

Display title in thread test

With Tessellation you can tell VenC if it must display entry title or not.

By default, entry title are disabled.

On the user side, to display the entry title in blog thread, one have to set up the above metadata "display_title_in_threads".

By looking the source of the Tessellation theme, in entry.html you'll see that we are calling the following patterns to achieve the trick.

.:GetEntryMetadataIfExists::display_title_in_threads::<h1>.:GetEntryTitle:.</h1>:.

Example of C++ syntax coloration with line number:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
#include <iostream>:

class Example {
	public:
		static void do_something();
};

void Example::do_something() {
	std::cout << "Well, not really" << std::endl;
}

int main(int argc, char ** argv) {
	Example::do_something();
	return 0;
}

Another example of Python syntax coloration without line number:

def merge(iterable, argv):
    if len(argv) != 2:
        raise PatternMissingArguments(expected=2,got=len(argv))
    try:
        return argv[1].join([argv[0].format(**something) for something in iterable])
        
    except IndexError as e:
        if e.args == ('tuple index out of range',):
            raise PatternInvalidArgument(name="string", value=argv[0])
                
        raise e

As shown below Escape will disable parsing of VenC patterns between Escape/EndEscape pair. In the other hand, the behavior of DisableMarkup is pretty straightforward.

With Escape/EndEscape and DisableMarkup

- Hello VenC! - Hello lovely user! _Italic text for fun and non profit!_

.:SetColor::This is red text!t::red:.

Without Escape/EndEscape and DisableMarkup

  • Hello VenC!
  • Hello lovely user!

Italic text for fun and non profit!

This is red text!

Please note that VenC syntax require you to close Escape pattern with '::EndEscape:.' .

This template is designed to work with defaults themes

The following¹ will display aside if used with Academik theme. Otherwise, it will be display below the current paragraphe.

A first footnote for the sake of the demonstration

You can go directly to this second footnote by clicking the link. Do not forget to add a line break so the parser will know that the footnote is not part of this paragraphe

² The first argument is the css id name, the second is the css class name