Commit 326032cf authored by Denis Salem's avatar Denis Salem
Browse files

trigger error if missing arg in IfPages. Locate error origin in...

trigger error if missing arg in IfPages. Locate error origin in current_input_string, update unit test
parent 3a21bd9d
......@@ -169,14 +169,14 @@
DONE | Fix url with special char in chapter.
DONE | Add CodeHighlightInclude
WIP | Reorganize themes dependencies in setup.
TODO | Include threads preview in entry
TODO | Add command for reorder entries by criteria
WIP | Add relevant templates for themes.
WIP | Client-side search engine.
TODO | Add definition in documentation for optional fields in blog configuration.
TODO | Change nomenclature: Most of the usual patterns are changed. Fix doc.
WIP | Change nomenclature: Most of the usual patterns are changed. Fix doc.
# version 2.1.x
TODO | Include threads preview in entry
TODO | Add command for reorder entries by criteria
TODO | Use built in list in yaml instead to turn str to list.
TODO | Allow markdown2 setup.
TODO | Add --insert-chapter command.
......
......@@ -47,25 +47,24 @@
</div>
:.
.:IfPages::
<div id="blog-navigation-header">
<div id="blog-navigation-header-wrapper">
<div></div><span>Navigation</span><div></div>
<div id="blog-navigation-header">
<div id="blog-navigation-header-wrapper">
<div></div><span>Navigation</span><div></div>
</div>
</div>
</div>
.:IfInThread::
<div id="blog-navigation" class="navigation">
.:GetPreviousPage::<a class="navigation-previous" href="{path}"></a>·:.
<ul class="navigation-pages-list">.:ForPages::5::<li><a href="{path}">{page_number}</a></li>:: · :.</ul>
.:GetNextPage::·<a class="navigation-next" href="{path}"></a>:.
</div>
::
<div id="blog-navigation" class="navigation">
.:GetPreviousPage::<a class="navigation-previous" href="{path}" title="{entry_title}"></a>:.
.:GetNextPage::<a class="navigation-next" href="{path}" title="{entry_title}"></a>:.
</div>
:.
:.
.:IfInThread::
<div id="blog-navigation" class="navigation">
.:GetPreviousPage::<a class="navigation-previous" href="{path}"></a>·:.
<ul class="navigation-pages-list">.:ForPages::5::<li><a href="{path}">{page_number}</a></li>:: · :.</ul>
.:GetNextPage::·<a class="navigation-next" href="{path}"></a>:.
</div>
::
<div id="blog-navigation" class="navigation">
.:GetPreviousPage::<a class="navigation-previous" href="{path}" title="{entry_title}"></a>:.
.:GetNextPage::<a class="navigation-next" href="{path}" title="{entry_title}"></a>:.
</div>
:.
:: :.
</aside>
<div id="blog-content">
<header>
......
......@@ -268,7 +268,7 @@ class Processor():
e,
messages.unknown_pattern.format(pattern),
",;"+pattern+";;"+";;".join(argv)+";,",
error_origin = [':'+pattern+':']
error_origin = [self.current_input_string[self.vop:self.vcp]]
)
except UnknownContextual as e:
......@@ -284,7 +284,7 @@ class Processor():
e,
pattern+": "+e.info,
",;"+pattern+";;"+";;".join(argv)+";,",
error_origin = [".:"+pattern+"::"+"::".join(argv)+":."]
error_origin = [self.current_input_string[self.vop:self.vcp]]
)
except PatternInvalidArgument as e:
......@@ -292,7 +292,7 @@ class Processor():
e,
messages.wrong_pattern_argument.format(e.name, e.value, pattern)+' '+e.message,
",;"+pattern+";;"+";;".join(argv)+";,",
error_origin = [".:"+pattern+"::"+"::".join(argv)+":."]
error_origin = [self.current_input_string[self.vop:self.vcp]]
)
except GenericMessage as e:
......@@ -300,7 +300,7 @@ class Processor():
e,
e.message,
",;"+pattern+";;"+";;".join(argv)+";,",
error_origin = [".:"+pattern+"::"+"::".join(argv)+":."]
error_origin = [self.current_input_string[self.vop:self.vcp]]
)
# might be removed
......@@ -316,18 +316,19 @@ class Processor():
# Print out notification to user and replace erroneous pattern
def handle_error(self, exception, error, default_output, error_origin = list()):
extra= ""
if self.debug:
raise exception
err = get_formatted_message(error, "RED")+"\n"
if self.ressource != str():
err = messages.in_ressource.format(self.ressource)+'\n'+err
if error_origin != list():
err+=(''.join(self.current_input_string).strip())
if len(error_origin):
extra+=(''.join(self.current_input_string))
for origin in error_origin:
err = highlight_value(err, origin)
die(err, "RED")
extra = highlight_value(extra, origin)
die(err, "RED", extra)
def set_function(self, key, function):
self.functions[key] = function
......@@ -379,7 +380,8 @@ class Processor():
i = io
j = ic
vop, vcp = op[i], cp[j]
self.vop, self.vcp = op[i], cp[j]
vop, vcp = self.vop, self.vcp
fields = [field.strip() for field in string[vop+2:vcp].split("::") if field != '']
......@@ -408,6 +410,7 @@ class Processor():
new_chunk = cgi_escape(new_string)
string = string[0:vop] + new_chunk + string[vcp+2:]
self.current_input_string = string
offset = len(new_chunk) - (vcp + 2 - vop)
op = [ (v+offset if v > vop else v) for v in op]
......
......@@ -35,7 +35,7 @@ def highlight_value(text, value, color="RED"):
# Terminate nicely with notification
def die(msg, color="RED", extra=""):
notify(msg, color)
if extra != "":
if len(extra):
print(extra)
exit()
......
......@@ -25,6 +25,7 @@ import unidecode
from venc2.prompt import notify
from venc2.l10n import messages
from venc2.patterns.exceptions import PatternInvalidArgument
from venc2.patterns.exceptions import PatternMissingArguments
from venc2.patterns.processor import Processor
current_source = None
......@@ -198,6 +199,9 @@ class Thread:
return ''
def if_pages(self, argv):
if len(argv) < 2:
raise PatternMissingArguments(expected=2,got=len(argv))
if self.pages_count > 1:
return argv[0]
else:
......
......@@ -46,7 +46,6 @@ def test_theme(args, test_name):
sys.stdout = null
export_blog([theme])
sys.stdout = stdout
tested = tree_list_dir('blog', 1)
......
{"@context": "http://schema.org", "@type": ["Blog", "WebPage"], "name": "Theme Unit Test | 2019-08", "description": "Test blog output", "author": {"@type": "Person", "email": "venc@tuxfamily.org", "description": "VenC lead developper", "name": "Denis Salem"}, "keywords": "test, unittest, blog, venc", "inLanguage": "en", "license": {"@type": "CreativeWork", "name": "DWTFYWL"}, "breadcrumb": {"@type": "BreadcrumbList", "itemListElement": [{"@type": "ListItem", "position": 1, "item": {"@id": "http://127.0.0.1:8888/root.jsonld", "url": "http://127.0.0.1:8888", "name": "Theme Unit Test"}}, {"@type": "ListItem", "position": 2, "item": {"@id": "http://127.0.0.1:8888/2019-08/archives.jsonld", "url": "http://127.0.0.1:8888/2019-08", "name": "Theme Unit Test | 2019-08"}}]}, "blogPost": [{"@type": ["BlogPosting", "WebPage"], "@id": "/entry6.jsonld", "headline": "Display title in entry test", "author": [{"name": "Denis Salem", "@type": "Person"}], "publisher": [{"name": "Denis Salem", "@type": "Person"}], "datePublished": "2019-08-22T08:20:00", "keywords": ",Layout Tricks", "url": "http://127.0.0.1:8888/entry6.html"}, {"@type": ["BlogPosting", "WebPage"], "@id": "/entry5.jsonld", "headline": "Display title in thread test", "author": [{"name": "Denis Salem", "@type": "Person"}], "publisher": [{"name": "Denis Salem", "@type": "Person"}], "datePublished": "2019-08-22T07:36:00", "keywords": ",Templates > Layout Tricks", "url": "http://127.0.0.1:8888/entry5.html"}, {"@type": ["BlogPosting", "WebPage"], "@id": "/entry2.jsonld", "headline": "CodeHighlight unit test", "author": [{"name": "Denis Salem", "@type": "Person"}], "publisher": [{"name": "Denis Salem", "@type": "Person"}], "datePublished": "2019-08-13T18:18:00", "keywords": ",Templates > Patterns > CodeHighlight", "url": "http://127.0.0.1:8888/entry2.html"}, {"@type": ["BlogPosting", "WebPage"], "@id": "/entry4.jsonld", "headline": "Escape unit test", "author": [{"name": "Denis Salem", "@type": "Person"}], "publisher": [{"name": "Denis Salem", "@type": "Person"}], "datePublished": "2019-08-13T18:58:00", "keywords": ",Templates > Patterns > Escape", "url": "http://127.0.0.1:8888/entry4.html"}, {"@type": ["BlogPosting", "WebPage"], "@id": "/entry1.jsonld", "headline": "Footnotes unit test", "author": [{"name": "Denis Salem", "@type": "Person"}], "publisher": [{"name": "Denis Salem", "@type": "Person"}], "datePublished": "2019-08-13T08:09:00", "keywords": ",Templates > Footnotes", "url": "http://127.0.0.1:8888/entry1.html"}, {"@type": ["BlogPosting", "WebPage"], "@id": "/entry3.jsonld", "headline": "Latex2MathML unit test", "author": [{"name": "Denis Salem", "@type": "Person"}], "publisher": [{"name": "Denis Salem", "@type": "Person"}], "datePublished": "2019-08-13T18:44:00", "keywords": ",Templates > Patterns > Latex2MathML", "url": "http://127.0.0.1:8888/entry3.html"}], "@id": "http://127.0.0.1:8888/2019-08/archives.jsonld", "url": "http://127.0.0.1:8888/2019-08"}
\ No newline at end of file
{"@context": "http://schema.org", "@type": ["Blog", "WebPage"], "name": "Theme Unit Test | 2019-08", "description": "Test blog output", "author": {"@type": "Person", "email": "venc@tuxfamily.org", "description": "VenC lead developper", "name": "Denis Salem"}, "keywords": "test, unittest, blog, venc", "inLanguage": "en", "license": {"@type": "CreativeWork", "name": "DWTFYWL"}, "breadcrumb": {"@type": "BreadcrumbList", "itemListElement": [{"@type": "ListItem", "position": 1, "item": {"@id": "http://127.0.0.1:8888/root.jsonld", "url": "http://127.0.0.1:8888", "name": "Theme Unit Test"}}, {"@type": "ListItem", "position": 2, "item": {"@id": "http://127.0.0.1:8888/2019-08/archives.jsonld", "url": "http://127.0.0.1:8888/2019-08", "name": "Theme Unit Test | 2019-08"}}]}, "blogPost": [{"@type": ["BlogPosting", "WebPage"], "@id": "/entry6.jsonld", "headline": "Display title in entry test", "author": [{"name": "Denis Salem", "@type": "Person"}], "publisher": [{"name": "Denis Salem", "@type": "Person"}], "datePublished": "2019-08-22T08:20:00", "keywords": ",Templates > Layout Tricks", "url": "http://127.0.0.1:8888/entry6.html"}, {"@type": ["BlogPosting", "WebPage"], "@id": "/entry5.jsonld", "headline": "Display title in thread test", "author": [{"name": "Denis Salem", "@type": "Person"}], "publisher": [{"name": "Denis Salem", "@type": "Person"}], "datePublished": "2019-08-22T07:36:00", "keywords": ",Templates > Layout Tricks", "url": "http://127.0.0.1:8888/entry5.html"}, {"@type": ["BlogPosting", "WebPage"], "@id": "/entry2.jsonld", "headline": "CodeHighlight unit test", "author": [{"name": "Denis Salem", "@type": "Person"}], "publisher": [{"name": "Denis Salem", "@type": "Person"}], "datePublished": "2019-08-13T18:18:00", "keywords": ",Templates > Patterns > CodeHighlight", "url": "http://127.0.0.1:8888/entry2.html"}, {"@type": ["BlogPosting", "WebPage"], "@id": "/entry4.jsonld", "headline": "Escape unit test", "author": [{"name": "Denis Salem", "@type": "Person"}], "publisher": [{"name": "Denis Salem", "@type": "Person"}], "datePublished": "2019-08-13T18:58:00", "keywords": ",Templates > Patterns > Escape", "url": "http://127.0.0.1:8888/entry4.html"}, {"@type": ["BlogPosting", "WebPage"], "@id": "/entry1.jsonld", "headline": "Footnotes unit test", "author": [{"name": "Denis Salem", "@type": "Person"}], "publisher": [{"name": "Denis Salem", "@type": "Person"}], "datePublished": "2019-08-13T08:09:00", "keywords": ",Templates > Footnotes", "url": "http://127.0.0.1:8888/entry1.html"}, {"@type": ["BlogPosting", "WebPage"], "@id": "/entry3.jsonld", "headline": "Latex2MathML unit test", "author": [{"name": "Denis Salem", "@type": "Person"}], "publisher": [{"name": "Denis Salem", "@type": "Person"}], "datePublished": "2019-08-13T18:44:00", "keywords": ",Templates > Patterns > Latex2MathML", "url": "http://127.0.0.1:8888/entry3.html"}], "@id": "http://127.0.0.1:8888/2019-08/archives.jsonld", "url": "http://127.0.0.1:8888/2019-08"}
\ No newline at end of file
......@@ -33,7 +33,7 @@
</div>
</div>
<div id="blog-categories" class="__VENC_TREE_ROOT__">
<ul class="__VENC_TREE_NODE__"><li><a href="../Layout-Tricks/" title="1 publications">Layout Tricks</a></li><li><a href="../Templates/" title="5 publications">Templates</a><ul class="__VENC_TREE_NODE__"><li><a href="../Templates/Footnotes/" title="1 publications">Footnotes</a></li><li><a href="../Templates/Layout-Tricks/" title="1 publications">Layout Tricks</a></li><li><a href="../Templates/Patterns/" title="3 publications">Patterns</a><ul class="__VENC_TREE_NODE__"><li><a href="../Templates/Patterns/CodeHighlight/" title="1 publications">CodeHighlight</a></li><li><a href="../Templates/Patterns/Escape/" title="1 publications">Escape</a></li><li><a href="../Templates/Patterns/Latex2MathML/" title="1 publications">Latex2MathML</a></li></ul></li></ul></li></ul>
<ul class="__VENC_TREE_NODE__"><li><a href="../Templates/" title="6 publications">Templates</a><ul class="__VENC_TREE_NODE__"><li><a href="../Templates/Footnotes/" title="1 publications">Footnotes</a></li><li><a href="../Templates/Layout-Tricks/" title="2 publications">Layout Tricks</a></li><li><a href="../Templates/Patterns/" title="3 publications">Patterns</a><ul class="__VENC_TREE_NODE__"><li><a href="../Templates/Patterns/CodeHighlight/" title="1 publications">CodeHighlight</a></li><li><a href="../Templates/Patterns/Escape/" title="1 publications">Escape</a></li><li><a href="../Templates/Patterns/Latex2MathML/" title="1 publications">Latex2MathML</a></li></ul></li></ul></li></ul>
</div>
<div id="blog-chapters-header">
......@@ -42,18 +42,18 @@
</div>
</div>
<div id="blog-chapters" class="__VENC_TREE_ROOT__">
<ul class="chapter-level0 __VENC_TREE_NODE__"><li>1. <a href="../chapters/Footnotes%20unit%20test">Footnotes unit test</a><ul class="chapter-level1 __VENC_TREE_NODE__"><li>1.2. <a href="../chapters/CodeHighlight%20unit%20test">CodeHighlight unit test</a><ul class="chapter-level2 __VENC_TREE_NODE__"><li>1.2.3. <a href="../chapters/Latex2MathML%20unit%20test">Latex2MathML unit test</a></li></ul></li></ul></li><li>2. <a href="../chapters/Escape%20unit%20test">Escape unit test</a></li></ul>
<ul class="chapter-level0 __VENC_TREE_NODE__"><li>1. <a href="../chapters/Footnotes-unit-test">Footnotes unit test</a><ul class="chapter-level1 __VENC_TREE_NODE__"><li>1.2. <a href="../chapters/CodeHighlight-unit-test">CodeHighlight unit test</a><ul class="chapter-level2 __VENC_TREE_NODE__"><li>1.2.3. <a href="../chapters/Latex2MathML-unit-test">Latex2MathML unit test</a></li></ul></li></ul></li><li>2. <a href="../chapters/Escape-unit-test">Escape unit test</a></li></ul>
</div>
<div id="blog-navigation-header">
<div id="blog-navigation-header-wrapper">
<div></div><span>Navigation</span><div></div>
<div id="blog-navigation-header-wrapper">
<div></div><span>Navigation</span><div></div>
</div>
</div>
</div>
<div id="blog-navigation" class="navigation">
<ul class="navigation-pages-list"><li><a href="index.html">0</a></li>·<li><a href="index1.html">1</a></li>·<li><a href="index2.html">2</a></li>·<li><a href="index3.html">3</a></li>·<li><a href="index4.html">4</a></li>·<li><a href="index5.html">5</a></li></ul>
·<a class="navigation-next" href="index1.html"></a>
</div>
<div id="blog-navigation" class="navigation">
<ul class="navigation-pages-list"><li><a href="index.html">0</a></li>·<li><a href="index1.html">1</a></li>·<li><a href="index2.html">2</a></li>·<li><a href="index3.html">3</a></li>·<li><a href="index4.html">4</a></li>·<li><a href="index5.html">5</a></li></ul>
·<a class="navigation-next" href="index1.html"></a>
</div>
</aside>
<div id="blog-content">
<header>
......
......@@ -33,7 +33,7 @@
</div>
</div>
<div id="blog-categories" class="__VENC_TREE_ROOT__">
<ul class="__VENC_TREE_NODE__"><li><a href="../Layout-Tricks/" title="1 publications">Layout Tricks</a></li><li><a href="../Templates/" title="5 publications">Templates</a><ul class="__VENC_TREE_NODE__"><li><a href="../Templates/Footnotes/" title="1 publications">Footnotes</a></li><li><a href="../Templates/Layout-Tricks/" title="1 publications">Layout Tricks</a></li><li><a href="../Templates/Patterns/" title="3 publications">Patterns</a><ul class="__VENC_TREE_NODE__"><li><a href="../Templates/Patterns/CodeHighlight/" title="1 publications">CodeHighlight</a></li><li><a href="../Templates/Patterns/Escape/" title="1 publications">Escape</a></li><li><a href="../Templates/Patterns/Latex2MathML/" title="1 publications">Latex2MathML</a></li></ul></li></ul></li></ul>
<ul class="__VENC_TREE_NODE__"><li><a href="../Templates/" title="6 publications">Templates</a><ul class="__VENC_TREE_NODE__"><li><a href="../Templates/Footnotes/" title="1 publications">Footnotes</a></li><li><a href="../Templates/Layout-Tricks/" title="2 publications">Layout Tricks</a></li><li><a href="../Templates/Patterns/" title="3 publications">Patterns</a><ul class="__VENC_TREE_NODE__"><li><a href="../Templates/Patterns/CodeHighlight/" title="1 publications">CodeHighlight</a></li><li><a href="../Templates/Patterns/Escape/" title="1 publications">Escape</a></li><li><a href="../Templates/Patterns/Latex2MathML/" title="1 publications">Latex2MathML</a></li></ul></li></ul></li></ul>
</div>
<div id="blog-chapters-header">
......@@ -42,18 +42,18 @@
</div>
</div>
<div id="blog-chapters" class="__VENC_TREE_ROOT__">
<ul class="chapter-level0 __VENC_TREE_NODE__"><li>1. <a href="../chapters/Footnotes%20unit%20test">Footnotes unit test</a><ul class="chapter-level1 __VENC_TREE_NODE__"><li>1.2. <a href="../chapters/CodeHighlight%20unit%20test">CodeHighlight unit test</a><ul class="chapter-level2 __VENC_TREE_NODE__"><li>1.2.3. <a href="../chapters/Latex2MathML%20unit%20test">Latex2MathML unit test</a></li></ul></li></ul></li><li>2. <a href="../chapters/Escape%20unit%20test">Escape unit test</a></li></ul>
<ul class="chapter-level0 __VENC_TREE_NODE__"><li>1. <a href="../chapters/Footnotes-unit-test">Footnotes unit test</a><ul class="chapter-level1 __VENC_TREE_NODE__"><li>1.2. <a href="../chapters/CodeHighlight-unit-test">CodeHighlight unit test</a><ul class="chapter-level2 __VENC_TREE_NODE__"><li>1.2.3. <a href="../chapters/Latex2MathML-unit-test">Latex2MathML unit test</a></li></ul></li></ul></li><li>2. <a href="../chapters/Escape-unit-test">Escape unit test</a></li></ul>
</div>
<div id="blog-navigation-header">
<div id="blog-navigation-header-wrapper">
<div></div><span>Navigation</span><div></div>
<div id="blog-navigation-header-wrapper">
<div></div><span>Navigation</span><div></div>
</div>
</div>
</div>
<div id="blog-navigation" class="navigation">
<a class="navigation-previous" href="index.html"></a>·
<ul class="navigation-pages-list"><li><a href="index.html">0</a></li>·<li><a href="index1.html">1</a></li>·<li><a href="index2.html">2</a></li>·<li><a href="index3.html">3</a></li>·<li><a href="index4.html">4</a></li>·<li><a href="index5.html">5</a></li></ul>
·<a class="navigation-next" href="index2.html"></a>
</div>
<div id="blog-navigation" class="navigation">
<a class="navigation-previous" href="index.html"></a>·
<ul class="navigation-pages-list"><li><a href="index.html">0</a></li>·<li><a href="index1.html">1</a></li>·<li><a href="index2.html">2</a></li>·<li><a href="index3.html">3</a></li>·<li><a href="index4.html">4</a></li>·<li><a href="index5.html">5</a></li></ul>
·<a class="navigation-next" href="index2.html"></a>
</div>
</aside>
<div id="blog-content">
<header>
......
......@@ -33,7 +33,7 @@
</div>
</div>
<div id="blog-categories" class="__VENC_TREE_ROOT__">
<ul class="__VENC_TREE_NODE__"><li><a href="../Layout-Tricks/" title="1 publications">Layout Tricks</a></li><li><a href="../Templates/" title="5 publications">Templates</a><ul class="__VENC_TREE_NODE__"><li><a href="../Templates/Footnotes/" title="1 publications">Footnotes</a></li><li><a href="../Templates/Layout-Tricks/" title="1 publications">Layout Tricks</a></li><li><a href="../Templates/Patterns/" title="3 publications">Patterns</a><ul class="__VENC_TREE_NODE__"><li><a href="../Templates/Patterns/CodeHighlight/" title="1 publications">CodeHighlight</a></li><li><a href="../Templates/Patterns/Escape/" title="1 publications">Escape</a></li><li><a href="../Templates/Patterns/Latex2MathML/" title="1 publications">Latex2MathML</a></li></ul></li></ul></li></ul>
<ul class="__VENC_TREE_NODE__"><li><a href="../Templates/" title="6 publications">Templates</a><ul class="__VENC_TREE_NODE__"><li><a href="../Templates/Footnotes/" title="1 publications">Footnotes</a></li><li><a href="../Templates/Layout-Tricks/" title="2 publications">Layout Tricks</a></li><li><a href="../Templates/Patterns/" title="3 publications">Patterns</a><ul class="__VENC_TREE_NODE__"><li><a href="../Templates/Patterns/CodeHighlight/" title="1 publications">CodeHighlight</a></li><li><a href="../Templates/Patterns/Escape/" title="1 publications">Escape</a></li><li><a href="../Templates/Patterns/Latex2MathML/" title="1 publications">Latex2MathML</a></li></ul></li></ul></li></ul>
</div>
<div id="blog-chapters-header">
......@@ -42,18 +42,18 @@
</div>
</div>
<div id="blog-chapters" class="__VENC_TREE_ROOT__">
<ul class="chapter-level0 __VENC_TREE_NODE__"><li>1. <a href="../chapters/Footnotes%20unit%20test">Footnotes unit test</a><ul class="chapter-level1 __VENC_TREE_NODE__"><li>1.2. <a href="../chapters/CodeHighlight%20unit%20test">CodeHighlight unit test</a><ul class="chapter-level2 __VENC_TREE_NODE__"><li>1.2.3. <a href="../chapters/Latex2MathML%20unit%20test">Latex2MathML unit test</a></li></ul></li></ul></li><li>2. <a href="../chapters/Escape%20unit%20test">Escape unit test</a></li></ul>
<ul class="chapter-level0 __VENC_TREE_NODE__"><li>1. <a href="../chapters/Footnotes-unit-test">Footnotes unit test</a><ul class="chapter-level1 __VENC_TREE_NODE__"><li>1.2. <a href="../chapters/CodeHighlight-unit-test">CodeHighlight unit test</a><ul class="chapter-level2 __VENC_TREE_NODE__"><li>1.2.3. <a href="../chapters/Latex2MathML-unit-test">Latex2MathML unit test</a></li></ul></li></ul></li><li>2. <a href="../chapters/Escape-unit-test">Escape unit test</a></li></ul>
</div>
<div id="blog-navigation-header">
<div id="blog-navigation-header-wrapper">
<div></div><span>Navigation</span><div></div>
<div id="blog-navigation-header-wrapper">
<div></div><span>Navigation</span><div></div>
</div>
</div>
</div>
<div id="blog-navigation" class="navigation">
<a class="navigation-previous" href="index1.html"></a>·
<ul class="navigation-pages-list"><li><a href="index.html">0</a></li>·<li><a href="index1.html">1</a></li>·<li><a href="index2.html">2</a></li>·<li><a href="index3.html">3</a></li>·<li><a href="index4.html">4</a></li>·<li><a href="index5.html">5</a></li></ul>
·<a class="navigation-next" href="index3.html"></a>
</div>
<div id="blog-navigation" class="navigation">
<a class="navigation-previous" href="index1.html"></a>·
<ul class="navigation-pages-list"><li><a href="index.html">0</a></li>·<li><a href="index1.html">1</a></li>·<li><a href="index2.html">2</a></li>·<li><a href="index3.html">3</a></li>·<li><a href="index4.html">4</a></li>·<li><a href="index5.html">5</a></li></ul>
·<a class="navigation-next" href="index3.html"></a>
</div>
</aside>
<div id="blog-content">
<header>
......@@ -88,7 +88,7 @@ _Italic text for fun and non profit!_
<p><span style="color: red;">This is red text!</span></p>
<p>Please note that VenC syntax require you to close Escape pattern with ::EndEscape.</p>
<p>Please note that VenC syntax require you to close Escape pattern with ':&colon;EndEscape&colon;.' .</p>
</div>
</div>
......
......@@ -33,7 +33,7 @@
</div>
</div>
<div id="blog-categories" class="__VENC_TREE_ROOT__">
<ul class="__VENC_TREE_NODE__"><li><a href="../Layout-Tricks/" title="1 publications">Layout Tricks</a></li><li><a href="../Templates/" title="5 publications">Templates</a><ul class="__VENC_TREE_NODE__"><li><a href="../Templates/Footnotes/" title="1 publications">Footnotes</a></li><li><a href="../Templates/Layout-Tricks/" title="1 publications">Layout Tricks</a></li><li><a href="../Templates/Patterns/" title="3 publications">Patterns</a><ul class="__VENC_TREE_NODE__"><li><a href="../Templates/Patterns/CodeHighlight/" title="1 publications">CodeHighlight</a></li><li><a href="../Templates/Patterns/Escape/" title="1 publications">Escape</a></li><li><a href="../Templates/Patterns/Latex2MathML/" title="1 publications">Latex2MathML</a></li></ul></li></ul></li></ul>
<ul class="__VENC_TREE_NODE__"><li><a href="../Templates/" title="6 publications">Templates</a><ul class="__VENC_TREE_NODE__"><li><a href="../Templates/Footnotes/" title="1 publications">Footnotes</a></li><li><a href="../Templates/Layout-Tricks/" title="2 publications">Layout Tricks</a></li><li><a href="../Templates/Patterns/" title="3 publications">Patterns</a><ul class="__VENC_TREE_NODE__"><li><a href="../Templates/Patterns/CodeHighlight/" title="1 publications">CodeHighlight</a></li><li><a href="../Templates/Patterns/Escape/" title="1 publications">Escape</a></li><li><a href="../Templates/Patterns/Latex2MathML/" title="1 publications">Latex2MathML</a></li></ul></li></ul></li></ul>
</div>
<div id="blog-chapters-header">
......@@ -42,18 +42,18 @@
</div>
</div>
<div id="blog-chapters" class="__VENC_TREE_ROOT__">
<ul class="chapter-level0 __VENC_TREE_NODE__"><li>1. <a href="../chapters/Footnotes%20unit%20test">Footnotes unit test</a><ul class="chapter-level1 __VENC_TREE_NODE__"><li>1.2. <a href="../chapters/CodeHighlight%20unit%20test">CodeHighlight unit test</a><ul class="chapter-level2 __VENC_TREE_NODE__"><li>1.2.3. <a href="../chapters/Latex2MathML%20unit%20test">Latex2MathML unit test</a></li></ul></li></ul></li><li>2. <a href="../chapters/Escape%20unit%20test">Escape unit test</a></li></ul>
<ul class="chapter-level0 __VENC_TREE_NODE__"><li>1. <a href="../chapters/Footnotes-unit-test">Footnotes unit test</a><ul class="chapter-level1 __VENC_TREE_NODE__"><li>1.2. <a href="../chapters/CodeHighlight-unit-test">CodeHighlight unit test</a><ul class="chapter-level2 __VENC_TREE_NODE__"><li>1.2.3. <a href="../chapters/Latex2MathML-unit-test">Latex2MathML unit test</a></li></ul></li></ul></li><li>2. <a href="../chapters/Escape-unit-test">Escape unit test</a></li></ul>
</div>
<div id="blog-navigation-header">
<div id="blog-navigation-header-wrapper">
<div></div><span>Navigation</span><div></div>
<div id="blog-navigation-header-wrapper">
<div></div><span>Navigation</span><div></div>
</div>
</div>
</div>
<div id="blog-navigation" class="navigation">
<a class="navigation-previous" href="index2.html"></a>·
<ul class="navigation-pages-list"><li><a href="index.html">0</a></li>·<li><a href="index1.html">1</a></li>·<li><a href="index2.html">2</a></li>·<li><a href="index3.html">3</a></li>·<li><a href="index4.html">4</a></li>·<li><a href="index5.html">5</a></li></ul>
·<a class="navigation-next" href="index4.html"></a>
</div>
<div id="blog-navigation" class="navigation">
<a class="navigation-previous" href="index2.html"></a>·
<ul class="navigation-pages-list"><li><a href="index.html">0</a></li>·<li><a href="index1.html">1</a></li>·<li><a href="index2.html">2</a></li>·<li><a href="index3.html">3</a></li>·<li><a href="index4.html">4</a></li>·<li><a href="index5.html">5</a></li></ul>
·<a class="navigation-next" href="index4.html"></a>
</div>
</aside>
<div id="blog-content">
<header>
......@@ -67,11 +67,11 @@
<div class="entry_content">
<p>Example of Latex2MathML usage for rendering complex number expression:</p>
<math><mrow><mover><mrow><msub><mi>z</mi><mn>1</mn></msub></mrow><mo stretchy="true">&#x000AF;</mo></mover><mi>.</mi><mover><mrow><msub><mi>z</mi><mn>2</mn></msub></mrow><mo stretchy="true">&#x000AF;</mo></mover><mo>&#x0003D;</mo><mover><mrow><msub><mi>z</mi><mn>1</mn></msub><mi>.</mi><msub><mi>z</mi><mn>2</mn></msub></mrow><mo stretchy="true">&#x000AF;</mo></mover></mrow></math>
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><mrow><mover><mrow><msub><mi>z</mi><mn>1</mn></msub></mrow><mo stretchy="true">&#x000AF;</mo></mover><mi>.</mi><mover><mrow><msub><mi>z</mi><mn>2</mn></msub></mrow><mo stretchy="true">&#x000AF;</mo></mover><mo>&#x0003D;</mo><mover><mrow><msub><mi>z</mi><mn>1</mn></msub><mi>.</mi><msub><mi>z</mi><mn>2</mn></msub></mrow><mo stretchy="true">&#x000AF;</mo></mover></mrow></math>
<p>Another example combining Latex2MathML and Table for rendering lined up equation:</p>
<div class="__VENC_TABLE__"><table><tr><td><math><mrow><mover><mrow><msub><mi>z</mi><mn>1</mn></msub></mrow><mo stretchy="true">&#x000AF;</mo></mover><mi>.</mi><mover><mrow><msub><mi>z</mi><mn>2</mn></msub></mrow><mo stretchy="true">&#x000AF;</mo></mover></mrow></math></td><td>=</td><td><math><mrow><mover><mrow><mo>&#x00028;</mo><mi>a</mi><mo>&#x0002B;</mo><mi>i</mi><mi>b</mi><mo>&#x00029;</mo></mrow><mo stretchy="true">&#x000AF;</mo></mover><mover><mrow><mo>&#x00028;</mo><mi>c</mi><mo>&#x0002B;</mo><mi>i</mi><mi>d</mi><mo>&#x00029;</mo></mrow><mo stretchy="true">&#x000AF;</mo></mover></mrow></math></td></tr><tr><td></td><td>=</td><td><math><mrow><mo>&#x00028;</mo><mi>a</mi><mo>&#x02212;</mo><mi>i</mi><mi>b</mi><mo>&#x00029;</mo><mo>&#x00028;</mo><mi>c</mi><mo>&#x02212;</mo><mi>i</mi><mi>d</mi><mo>&#x00029;</mo></mrow></math></td></tr><tr><td></td><td>=</td><td><math><mrow><mi>a</mi><mi>c</mi><mo>&#x02212;</mo><mi>i</mi><mi>a</mi><mi>d</mi><mo>&#x02212;</mo><mi>i</mi><mi>b</mi><mi>c</mi><mo>&#x02212;</mo><mi>b</mi><mi>d</mi></mrow></math></td></tr><tr><td></td><td>=</td><td><math><mrow><mo>&#x00028;</mo><mi>a</mi><mi>c</mi><mo>&#x02212;</mo><mi>b</mi><mi>d</mi><mo>&#x00029;</mo><mo>&#x02212;</mo><mi>i</mi><mo>&#x00028;</mo><mi>a</mi><mi>d</mi><mo>&#x0002B;</mo><mi>b</mi><mi>c</mi><mo>&#x00029;</mo></mrow></math></td></tr></table></div>
<div class="__VENC_TABLE__"><table><tr><td><math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><mrow><mover><mrow><msub><mi>z</mi><mn>1</mn></msub></mrow><mo stretchy="true">&#x000AF;</mo></mover><mi>.</mi><mover><mrow><msub><mi>z</mi><mn>2</mn></msub></mrow><mo stretchy="true">&#x000AF;</mo></mover></mrow></math></td><td>=</td><td><math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><mrow><mover><mrow><mo stretchy="false">&#x00028;</mo><mi>a</mi><mo>&#x0002B;</mo><mi>i</mi><mi>b</mi><mo stretchy="false">&#x00029;</mo></mrow><mo stretchy="true">&#x000AF;</mo></mover><mover><mrow><mo stretchy="false">&#x00028;</mo><mi>c</mi><mo>&#x0002B;</mo><mi>i</mi><mi>d</mi><mo stretchy="false">&#x00029;</mo></mrow><mo stretchy="true">&#x000AF;</mo></mover></mrow></math></td></tr><tr><td></td><td>=</td><td><math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><mrow><mo stretchy="false">&#x00028;</mo><mi>a</mi><mo>&#x02212;</mo><mi>i</mi><mi>b</mi><mo stretchy="false">&#x00029;</mo><mo stretchy="false">&#x00028;</mo><mi>c</mi><mo>&#x02212;</mo><mi>i</mi><mi>d</mi><mo stretchy="false">&#x00029;</mo></mrow></math></td></tr><tr><td></td><td>=</td><td><math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><mrow><mi>a</mi><mi>c</mi><mo>&#x02212;</mo><mi>i</mi><mi>a</mi><mi>d</mi><mo>&#x02212;</mo><mi>i</mi><mi>b</mi><mi>c</mi><mo>&#x02212;</mo><mi>b</mi><mi>d</mi></mrow></math></td></tr><tr><td></td><td>=</td><td><math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><mrow><mo stretchy="false">&#x00028;</mo><mi>a</mi><mi>c</mi><mo>&#x02212;</mo><mi>b</mi><mi>d</mi><mo stretchy="false">&#x00029;</mo><mo>&#x02212;</mo><mi>i</mi><mo stretchy="false">&#x00028;</mo><mi>a</mi><mi>d</mi><mo>&#x0002B;</mo><mi>b</mi><mi>c</mi><mo stretchy="false">&#x00029;</mo></mrow></math></td></tr></table></div>
</div>
</div>
......
......@@ -33,7 +33,7 @@
</div>
</div>
<div id="blog-categories" class="__VENC_TREE_ROOT__">
<ul class="__VENC_TREE_NODE__"><li><a href="../Layout-Tricks/" title="1 publications">Layout Tricks</a></li><li><a href="../Templates/" title="5 publications">Templates</a><ul class="__VENC_TREE_NODE__"><li><a href="../Templates/Footnotes/" title="1 publications">Footnotes</a></li><li><a href="../Templates/Layout-Tricks/" title="1 publications">Layout Tricks</a></li><li><a href="../Templates/Patterns/" title="3 publications">Patterns</a><ul class="__VENC_TREE_NODE__"><li><a href="../Templates/Patterns/CodeHighlight/" title="1 publications">CodeHighlight</a></li><li><a href="../Templates/Patterns/Escape/" title="1 publications">Escape</a></li><li><a href="../Templates/Patterns/Latex2MathML/" title="1 publications">Latex2MathML</a></li></ul></li></ul></li></ul>
<ul class="__VENC_TREE_NODE__"><li><a href="../Templates/" title="6 publications">Templates</a><ul class="__VENC_TREE_NODE__"><li><a href="../Templates/Footnotes/" title="1 publications">Footnotes</a></li><li><a href="../Templates/Layout-Tricks/" title="2 publications">Layout Tricks</a></li><li><a href="../Templates/Patterns/" title="3 publications">Patterns</a><ul class="__VENC_TREE_NODE__"><li><a href="../Templates/Patterns/CodeHighlight/" title="1 publications">CodeHighlight</a></li><li><a href="../Templates/Patterns/Escape/" title="1 publications">Escape</a></li><li><a href="../Templates/Patterns/Latex2MathML/" title="1 publications">Latex2MathML</a></li></ul></li></ul></li></ul>
</div>
<div id="blog-chapters-header">
......@@ -42,18 +42,18 @@
</div>
</div>
<div id="blog-chapters" class="__VENC_TREE_ROOT__">
<ul class="chapter-level0 __VENC_TREE_NODE__"><li>1. <a href="../chapters/Footnotes%20unit%20test">Footnotes unit test</a><ul class="chapter-level1 __VENC_TREE_NODE__"><li>1.2. <a href="../chapters/CodeHighlight%20unit%20test">CodeHighlight unit test</a><ul class="chapter-level2 __VENC_TREE_NODE__"><li>1.2.3. <a href="../chapters/Latex2MathML%20unit%20test">Latex2MathML unit test</a></li></ul></li></ul></li><li>2. <a href="../chapters/Escape%20unit%20test">Escape unit test</a></li></ul>
<ul class="chapter-level0 __VENC_TREE_NODE__"><li>1. <a href="../chapters/Footnotes-unit-test">Footnotes unit test</a><ul class="chapter-level1 __VENC_TREE_NODE__"><li>1.2. <a href="../chapters/CodeHighlight-unit-test">CodeHighlight unit test</a><ul class="chapter-level2 __VENC_TREE_NODE__"><li>1.2.3. <a href="../chapters/Latex2MathML-unit-test">Latex2MathML unit test</a></li></ul></li></ul></li><li>2. <a href="../chapters/Escape-unit-test">Escape unit test</a></li></ul>
</div>
<div id="blog-navigation-header">
<div id="blog-navigation-header-wrapper">
<div></div><span>Navigation</span><div></div>
<div id="blog-navigation-header-wrapper">
<div></div><span>Navigation</span><div></div>
</div>
</div>
</div>
<div id="blog-navigation" class="navigation">
<a class="navigation-previous" href="index3.html"></a>·
<ul class="navigation-pages-list"><li><a href="index.html">0</a></li>·<li><a href="index1.html">1</a></li>·<li><a href="index2.html">2</a></li>·<li><a href="index3.html">3</a></li>·<li><a href="index4.html">4</a></li>·<li><a href="index5.html">5</a></li></ul>
·<a class="navigation-next" href="index5.html"></a>
</div>
<div id="blog-navigation" class="navigation">
<a class="navigation-previous" href="index3.html"></a>·
<ul class="navigation-pages-list"><li><a href="index.html">0</a></li>·<li><a href="index1.html">1</a></li>·<li><a href="index2.html">2</a></li>·<li><a href="index3.html">3</a></li>·<li><a href="index4.html">4</a></li>·<li><a href="index5.html">5</a></li></ul>
·<a class="navigation-next" href="index5.html"></a>
</div>
</aside>
<div id="blog-content">
<header>
......
......@@ -33,7 +33,7 @@
</div>
</div>
<div id="blog-categories" class="__VENC_TREE_ROOT__">
<ul class="__VENC_TREE_NODE__"><li><a href="../Layout-Tricks/" title="1 publications">Layout Tricks</a></li><li><a href="../Templates/" title="5 publications">Templates</a><ul class="__VENC_TREE_NODE__"><li><a href="../Templates/Footnotes/" title="1 publications">Footnotes</a></li><li><a href="../Templates/Layout-Tricks/" title="1 publications">Layout Tricks</a></li><li><a href="../Templates/Patterns/" title="3 publications">Patterns</a><ul class="__VENC_TREE_NODE__"><li><a href="../Templates/Patterns/CodeHighlight/" title="1 publications">CodeHighlight</a></li><li><a href="../Templates/Patterns/Escape/" title="1 publications">Escape</a></li><li><a href="../Templates/Patterns/Latex2MathML/" title="1 publications">Latex2MathML</a></li></ul></li></ul></li></ul>
<ul class="__VENC_TREE_NODE__"><li><a href="../Templates/" title="6 publications">Templates</a><ul class="__VENC_TREE_NODE__"><li><a href="../Templates/Footnotes/" title="1 publications">Footnotes</a></li><li><a href="../Templates/Layout-Tricks/" title="2 publications">Layout Tricks</a></li><li><a href="../Templates/Patterns/" title="3 publications">Patterns</a><ul class="__VENC_TREE_NODE__"><li><a href="../Templates/Patterns/CodeHighlight/" title="1 publications">CodeHighlight</a></li><li><a href="../Templates/Patterns/Escape/" title="1 publications">Escape</a></li><li><a href="../Templates/Patterns/Latex2MathML/" title="1 publications">Latex2MathML</a></li></ul></li></ul></li></ul>
</div>
<div id="blog-chapters-header">
......@@ -42,18 +42,18 @@
</div>
</div>
<div id="blog-chapters" class="__VENC_TREE_ROOT__">
<ul class="chapter-level0 __VENC_TREE_NODE__"><li>1. <a href="../chapters/Footnotes%20unit%20test">Footnotes unit test</a><ul class="chapter-level1 __VENC_TREE_NODE__"><li>1.2. <a href="../chapters/CodeHighlight%20unit%20test">CodeHighlight unit test</a><ul class="chapter-level2 __VENC_TREE_NODE__"><li>1.2.3. <a href="../chapters/Latex2MathML%20unit%20test">Latex2MathML unit test</a></li></ul></li></ul></li><li>2. <a href="../chapters/Escape%20unit%20test">Escape unit test</a></li></ul>
<ul class="chapter-level0 __VENC_TREE_NODE__"><li>1. <a href="../chapters/Footnotes-unit-test">Footnotes unit test</a><ul class="chapter-level1 __VENC_TREE_NODE__"><li>1.2. <a href="../chapters/CodeHighlight-unit-test">CodeHighlight unit test</a><ul class="chapter-level2 __VENC_TREE_NODE__"><li>1.2.3. <a href="../chapters/Latex2MathML-unit-test">Latex2MathML unit test</a></li></ul></li></ul></li><li>2. <a href="../chapters/Escape-unit-test">Escape unit test</a></li></ul>
</div>
<div id="blog-navigation-header">
<div id="blog-navigation-header-wrapper">
<div></div><span>Navigation</span><div></div>
<div id="blog-navigation-header-wrapper">
<div></div><span>Navigation</span><div></div>
</div>
</div>
</div>
<div id="blog-navigation" class="navigation">
<a class="navigation-previous" href="index4.html"></a>·
<ul class="navigation-pages-list"><li><a href="index.html">0</a></li>·<li><a href="index1.html">1</a></li>·<li><a href="index2.html">2</a></li>·<li><a href="index3.html">3</a></li>·<li><a href="index4.html">4</a></li>·<li><a href="index5.html">5</a></li></ul>
</div>
<div id="blog-navigation" class="navigation">
<a class="navigation-previous" href="index4.html"></a>·
<ul class="navigation-pages-list"><li><a href="index.html">0</a></li>·<li><a href="index1.html">1</a></li>·<li><a href="index2.html">2</a></li>·<li><a href="index3.html">3</a></li>·<li><a href="index4.html">4</a></li>·<li><a href="index5.html">5</a></li></ul>
</div>
</aside>
<div id="blog-content">
<header>
......
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>Theme Unit Test</title>
<subtitle>Test blog output</subtitle>
<link href="http://127.0.0.1:8888"/>
<updated>2010-05-13T18:30:02Z</updated>
<author>
<name>Denis Salem</name>
<email>venc@tuxfamily.org</email>
</author>
<entry>
<title>Display title in entry test</title>
<link href="../entry6.html"/>
<content type="xhtml">
<p>With Tessellation you can tell VenC if it must display entry title or not.</p>
<p>By default, entry title are disabled.</p>
<p>On the user side, to display the entry title in the entry, one have to set up the above metadata "<strong>display_title_in_entry</strong>".</p>
<p>By looking the source of the Tessellation theme, in <em>entry.html</em> you'll see that we are calling the following patterns to achieve the trick.</p>
<p></p>
<pre>.:GetEntryMetadataIfExists::display_title_in_entry::&lt;h1&gt;Display title in entry test&lt;/h1&gt;:.</pre>
<p></p>
</content>
</entry>
</feed>
{"@context": "http://schema.org", "@type": ["Blog", "WebPage"], "@id": "http://127.0.0.1:8888/Layout Tricks/categories.jsonld", "url": "http://127.0.0.1:8888/Layout Tricks/", "name": "Theme Unit Test | Layout Tricks", "description": "Test blog output", "author": {"@type": "Person", "email": "venc@tuxfamily.org", "description": "VenC lead developper", "name": "Denis Salem"}, "keywords": "test, unittest, blog, venc", "inLanguage": "en", "license": {"@type": "CreativeWork", "name": "DWTFYWL"}, "breadcrumb": {"@type": "BreadcrumbList", "itemListElement": [{"@type": "ListItem", "position": 1, "item": {"@id": "http://127.0.0.1:8888/root.jsonld", "url": "http://127.0.0.1:8888", "name": "Theme Unit Test"}}, {"@type": "ListItem", "position": 2, "item": {"@id": "http://127.0.0.1:8888/Layout Tricks/categories.jsonld", "url": "http://127.0.0.1:8888/Layout Tricks/", "name": "Theme Unit Test | Layout Tricks"}}, {"@type": "ListItem", "position": 3, "item": {"@id": "http://127.0.0.1:8888/Layout Tricks//categories.jsonld", "url": "http://127.0.0.1:8888/Layout Tricks//", "name": "Theme Unit Test | "}}]}, "blogPost": [{"@type": ["BlogPosting", "WebPage"], "@id": "/entry6.jsonld", "headline": "Display title in entry test", "author": [{"name": "Denis Salem", "@type": "Person"}], "publisher": [{"name": "Denis Salem", "@type": "Person"}], "datePublished": "2019-08-22T08:20:00", "keywords": ",Layout Tricks", "url": "http://127.0.0.1:8888/entry6.html"}]}
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<atom:link href="http://127.0.0.1:8888/feed.xml" rel="self" type="application/rss+xml" />
<title>Theme Unit Test</title>
<link>http://127.0.0.1:8888</link>
<description>Test blog output</description>
<item>
<title>Display title in entry test</title>
<link>http://127.0.0.1:8888/../entry6.html</link>
<guid isPermaLink="true">http://127.0.0.1:8888/../entry6.html</guid>
<description>
<![CDATA[
<p>With Tessellation you can tell VenC if it must display entry title or not.</p>
<p>By default, entry title are disabled.</p>
<p>On the user side, to display the entry title in the entry, one have to set up the above metadata "<strong>display_title_in_entry</strong>".</p>
<p>By looking the source of the Tessellation theme, in <em>entry.html</em> you'll see that we are calling the following patterns to achieve the trick.</p>
<p></p>
<pre>.:GetEntryMetadataIfExists::display_title_in_entry::&lt;h1&gt;Display title in entry test&lt;/h1&gt;:.</pre>
<p></p>
]]>
</description>
</item>
</channel>
</rss>
......@@ -33,7 +33,7 @@
</div>
</div>
<div id="blog-categories" class="__VENC_TREE_ROOT__">
<ul class="__VENC_TREE_NODE__"><li><a href="../../Layout-Tricks/" title="1 publications">Layout Tricks</a></li><li><a href="../../Templates/" title="5 publications">Templates</a><ul class="__VENC_TREE_NODE__"><li><a href="../../Templates/Footnotes/" title="1 publications">Footnotes</a></li><li><a href="../../Templates/Layout-Tricks/" title="1 publications">Layout Tricks</a></li><li><a href="../../Templates/Patterns/" title="3 publications">Patterns</a><ul class="__VENC_TREE_NODE__"><li><a href="../../Templates/Patterns/CodeHighlight/" title="1 publications">CodeHighlight</a></li><li><a href="../../Templates/Patterns/Escape/" title="1 publications">Escape</a></li><li><a href="../../Templates/Patterns/Latex2MathML/" title="1 publications">Latex2MathML</a></li></ul></li></ul></li></ul>
<ul class="__VENC_TREE_NODE__"><li><a href="../../Templates/" title="6 publications">Templates</a><ul class="__VENC_TREE_NODE__"><li><a href="../../Templates/Footnotes/" title="1 publications">Footnotes</a></li><li><a href="../../Templates/Layout-Tricks/" title="2 publications">Layout Tricks</a></li><li><a href="../../Templates/Patterns/" title="3 publications">Patterns</a><ul class="__VENC_TREE_NODE__"><li><a href="../../Templates/Patterns/CodeHighlight/" title="1 publications">CodeHighlight</a></li><li><a href="../../Templates/Patterns/Escape/" title="1 publications">Escape</a></li><li><a href="../../Templates/Patterns/Latex2MathML/" title="1 publications">Latex2MathML</a></li></ul></li></ul></li></ul>
</div>
<div id="blog-chapters-header">
......@@ -42,7 +42,7 @@
</div>
</div>
<div id="blog-chapters" class="__VENC_TREE_ROOT__">
<ul class="chapter-level0 __VENC_TREE_NODE__"><li>1. <a href="../../chapters/Footnotes%20unit%20test">Footnotes unit test</a><ul class="chapter-level1 __VENC_TREE_NODE__"><li>1.2. <a href="../../chapters/CodeHighlight%20unit%20test">CodeHighlight unit test</a><ul class="chapter-level2 __VENC_TREE_NODE__"><li>1.2.3. <a href="../../chapters/Latex2MathML%20unit%20test">Latex2MathML unit test</a></li></ul></li></ul></li><li>2. <a href="../../chapters/Escape%20unit%20test">Escape unit test</a></li></ul>
<ul class="chapter-level0 __VENC_TREE_NODE__"><li>1. <a href="../../chapters/Footnotes-unit-test">Footnotes unit test</a><ul class="chapter-level1 __VENC_TREE_NODE__"><li>1.2. <a href="../../chapters/CodeHighlight-unit-test">CodeHighlight unit test</a><ul class="chapter-level2 __VENC_TREE_NODE__"><li>1.2.3. <a href="../../chapters/Latex2MathML-unit-test">Latex2MathML unit test</a></li></ul></li></ul></li><li>2. <a href="../../chapters/Escape-unit-test">Escape unit test</a></li></ul>
</div>
</aside>
......
......@@ -8,6 +8,26 @@
<name>Denis Salem</name>
<email>venc@tuxfamily.org</email>
</author>
<entry>
<title>Display title in entry test</title>
<link href="../../entry6.html"/>
<content type="xhtml">
<p>With Tessellation you can tell VenC if it must display entry title or not.</p>
<p>By default, entry title are disabled.</p>
<p>On the user side, to display the entry title in the entry, one have to set up the above metadata "<strong>display_title_in_entry</strong>".</p>
<p>By looking the source of the Tessellation theme, in <em>entry.html</em> you'll see that we are calling the following patterns to achieve the trick.</p>
<p></p>
<pre>.:GetEntryMetadataIfExists::display_title_in_entry::&lt;h1&gt;Display title in entry test&lt;/h1&gt;:.</pre>
<p></p>
</content>
</entry>
<entry>
<title>Display title in thread test</title>
<link href="../../entry5.html"/>
......
{"@context": "http://schema.org", "@type": ["Blog", "WebPage"], "@id": "http://127.0.0.1:8888/Templates/Layout Tricks/categories.jsonld", "url": "http://127.0.0.1:8888/Templates/Layout Tricks/", "name": "Theme Unit Test | Layout Tricks", "description": "Test blog output", "author": {"@type": "Person", "email": "venc@tuxfamily.org", "description": "VenC lead developper", "name": "Denis Salem"}, "keywords": "test, unittest, blog, venc", "inLanguage": "en", "license": {"@type": "CreativeWork", "name": "DWTFYWL"}, "breadcrumb": {"@type": "BreadcrumbList", "itemListElement": [{"@type": "ListItem", "position": 1, "item": {"@id": "http://127.0.0.1:8888/root.jsonld", "url": "http://127.0.0.1:8888", "name": "Theme Unit Test"}}, {"@type": "ListItem", "position": 2, "item": {"@id": "http://127.0.0.1:8888/Templates/categories.jsonld", "url": "http://127.0.0.1:8888/Templates/", "name": "Theme Unit Test | Templates"}}, {"@type": "ListItem", "position": 3, "item": {"@id": "http://127.0.0.1:8888/Templates/Layout Tricks/categories.jsonld", "url": "http://127.0.0.1:8888/Templates/Layout Tricks/", "name": "Theme Unit Test | Layout Tricks"}}, {"@type": "ListItem", "position": 4, "item": {"@id": "http://127.0.0.1:8888/Templates/Layout Tricks//categories.jsonld", "url": "http://127.0.0.1:8888/Templates/Layout Tricks//", "name": "Theme Unit Test | "}}]}, "blogPost": [{"@type": ["BlogPosting", "WebPage"], "@id": "/entry5.jsonld", "headline": "Display title in thread test", "author": [{"name": "Denis Salem", "@type": "Person"}], "publisher": [{"name": "Denis Salem", "@type": "Person"}], "datePublished": "2019-08-22T07:36:00", "keywords": ",Templates > Layout Tricks", "url": "http://127.0.0.1:8888/entry5.html"}]}
\ No newline at end of file
{"@context": "http://schema.org", "@type": ["Blog", "WebPage"], "@id": "http://127.0.0.1:8888/Templates/Layout Tricks/categories.jsonld", "url": "http://127.0.0.1:8888/Templates/Layout Tricks/", "name": "Theme Unit Test | Layout Tricks", "description": "Test blog output", "author": {"@type": "Person", "email": "venc@tuxfamily.org", "description": "VenC lead developper", "name": "Denis Salem"}, "keywords": "test, unittest, blog, venc", "inLanguage": "en", "license": {"@type": "CreativeWork", "name": "DWTFYWL"}, "breadcrumb": {"@type": "BreadcrumbList", "itemListElement": [{"@type": "ListItem", "position": 1, "item": {"@id": "http://127.0.0.1:8888/root.jsonld", "url": "http://127.0.0.1:8888", "name": "Theme Unit Test"}}, {"@type": "ListItem", "position": 2, "item": {"@id": "http://127.0.0.1:8888/Templates/categories.jsonld", "url": "http://127.0.0.1:8888/Templates/", "name": "Theme Unit Test | Templates"}}, {"@type": "ListItem", "position": 3, "item": {"@id": "http://127.0.0.1:8888/Templates/Layout Tricks/categories.jsonld", "url": "http://127.0.0.1:8888/Templates/Layout Tricks/", "name": "Theme Unit Test | Layout Tricks"}}, {"@type": "ListItem", "position": 4, "item": {"@id": "http://127.0.0.1:8888/Templates/Layout Tricks//categories.jsonld", "url": "http://127.0.0.1:8888/Templates/Layout Tricks//", "name": "Theme Unit Test | "}}]}, "blogPost": [{"@type": ["BlogPosting", "WebPage"], "@id": "/entry6.jsonld", "headline": "Display title in entry test", "author": [{"name": "Denis Salem", "@type": "Person"}], "publisher": [{"name": "Denis Salem", "@type": "Person"}], "datePublished": "2019-08-22T08:20:00", "keywords": ",Templates > Layout Tricks", "url": "http://127.0.0.1:8888/entry6.html"}, {"@type": ["BlogPosting", "WebPage"], "@id": "/entry5.jsonld", "headline": "Display title in thread test", "author": [{"name": "Denis Salem", "@type": "Person"}], "publisher": [{"name": "Denis Salem", "@type": "Person"}], "datePublished": "2019-08-22T07:36:00", "keywords": ",Templates > Layout Tricks", "url": "http://127.0.0.1:8888/entry5.html"}]}
\ No newline at end of file