From 0fca7012b1d0d67f13bc1ec8a480f7af3d4d7cab Mon Sep 17 00:00:00 2001 From: Ghislain Loaec Date: Wed, 2 Sep 2015 09:52:18 +0200 Subject: [PATCH] Icon persistent --- www/index.html | 46 +++++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/www/index.html b/www/index.html index 16a24fc..fbf8fa3 100644 --- a/www/index.html +++ b/www/index.html @@ -93,32 +93,32 @@ {% } %}
- - {% if(!(o.titlePersistent || o.meta.titlePersistent)){ %} - {%# (o.titleSeparator || o.meta.titleSeparator) %} - {% } %} - - {% var icon = (o.titlePersistent || o.meta.titlePersistent) ? o.meta.icon : o.icon || o.meta.icon; %} - {% if(icon){ %} - {%# tmpl('momo-icon-tmpl', { icon: icon, size: 20, header: true }) %} - {% } %} - - - {% if(o.titlePersistent || o.meta.titlePersistent){ %} - {%= o.meta.title %} + + {% if(!(o.titlePersistent || o.meta.titlePersistent || o.id == 'home')){ %} {%# (o.titleSeparator || o.meta.titleSeparator) %} - - {% if(o.meta.icon && o.icon){ %} - {%# tmpl('momo-icon-tmpl', { icon: o.icon, size: 20, header: true }) %} - {% } %} - {%# o.title %} - - {% } else { %} - {%# (o.title || o.meta.title) %} {% } %} + + {% var icon = (o.titlePersistent || o.meta.titlePersistent || o.id == 'home') ? o.meta.icon : o.icon || o.meta.icon; %} + {% if(icon){ %} + {%# tmpl('momo-icon-tmpl', { icon: icon, size: 20, header: true }) %} + {% } %} + + + {% if(o.titlePersistent || o.meta.titlePersistent || o.id == 'home'){ %} + {%= o.meta.title %} + {%# (o.titleSeparator || o.meta.titleSeparator) %} + + {% if(o.meta.icon && o.icon){ %} + {%# tmpl('momo-icon-tmpl', { icon: o.icon, size: 20, header: true }) %} + {% } %} + {%# o.title %} + + {% } else { %} + {%# (o.title || o.meta.title) %} + {% } %} + - -
+