add native desi view
This commit is contained in:
parent
0de6cc6f41
commit
dc4ae437c6
@ -9,6 +9,7 @@
|
|||||||
var newview
|
var newview
|
||||||
, analytics
|
, analytics
|
||||||
, comments
|
, comments
|
||||||
|
, desi = {}
|
||||||
;
|
;
|
||||||
|
|
||||||
comments = view.site.disqus_shortname &&
|
comments = view.site.disqus_shortname &&
|
||||||
@ -25,8 +26,17 @@
|
|||||||
}})
|
}})
|
||||||
;
|
;
|
||||||
|
|
||||||
|
Object.keys(view).forEach(function (key) {
|
||||||
|
desi[key] = view[key];
|
||||||
|
});
|
||||||
|
desi.desi = {};
|
||||||
|
Object.keys(view).forEach(function (key) {
|
||||||
|
desi.desi[key] = view[key];
|
||||||
|
});
|
||||||
|
|
||||||
newview = {
|
newview = {
|
||||||
content: view.contents
|
desi: desi
|
||||||
|
, content: view.contents
|
||||||
, page: {
|
, page: {
|
||||||
title: view.entity.yml.title || view.site.title // in rt
|
title: view.entity.yml.title || view.site.title // in rt
|
||||||
, tagline: view.entity.yml.tagline // in rt
|
, tagline: view.entity.yml.tagline // in rt
|
||||||
|
Loading…
x
Reference in New Issue
Block a user