add native desi view

This commit is contained in:
AJ ONeal 2015-01-31 00:40:41 -07:00
parent 0de6cc6f41
commit dc4ae437c6
1 changed files with 11 additions and 1 deletions

View File

@ -9,6 +9,7 @@
var newview
, analytics
, comments
, desi = {}
;
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 = {
content: view.contents
desi: desi
, content: view.contents
, page: {
title: view.entity.yml.title || view.site.title // in rt
, tagline: view.entity.yml.tagline // in rt