sticky titles ok, only level 1, more level seems to not be doable
This commit is contained in:
@@ -268,7 +268,7 @@ var _Part = {
|
||||
this.enonces = vn.attrs.enonces;
|
||||
},
|
||||
view(vn){
|
||||
// console.log(vn.attrs.enonces);
|
||||
console.log("part enonces", vn.attrs.enonces);
|
||||
return m("section", {
|
||||
'id' :this.id,
|
||||
'class' :'part'
|
||||
@@ -278,7 +278,7 @@ var _Part = {
|
||||
m("h1", {'class':'part-title', 'part':this.id}, m.trust(markdown.renderInline(this.title))),
|
||||
// create text node
|
||||
this.enonces.map(e => {
|
||||
// console.log(e.type);
|
||||
console.log(e.title +" - "+ e.type);
|
||||
// var title = e.title || '';
|
||||
switch (e.type) {
|
||||
case "title":
|
||||
@@ -342,7 +342,7 @@ module.exports = {
|
||||
// // i18next.changeLanguage(vn.attrs.lang);
|
||||
// },
|
||||
view(vn){
|
||||
// console.log('_ModeText view : lang', vn.attrs.lang);
|
||||
// console.log('_ModeText view : _dbs.data', _dbs.data);
|
||||
return m('main', {id:"content", 'class':'mode-text'}, _dbs.data[vn.attrs.lang].map((p) => {
|
||||
// console.log("MAP _dbs", p);
|
||||
if(p.id == 'intro'){
|
||||
|
||||
Reference in New Issue
Block a user