added view.url, data.host

This commit is contained in:
AJ ONeal 2015-01-23 17:44:29 -07:00
parent f2ef8c6857
commit 332566a662
1 changed files with 2 additions and 1 deletions

View File

@ -40,6 +40,7 @@
, next: view.entities[view.entity_index + 1] , next: view.entities[view.entity_index + 1]
, previous: view.entities[view.entity_index - 1] , previous: view.entities[view.entity_index - 1]
, date: view.entity.year + '-' + view.entity.month + '-' + view.entity.day , date: view.entity.year + '-' + view.entity.month + '-' + view.entity.day
, url: view.entity.relative_link
// TODO , url: view.entities. // TODO , url: view.entities.
} }
, 'page?previous': view.entities[view.entity_index - 1] // ruhoh-twitter only , 'page?previous': view.entities[view.entity_index - 1] // ruhoh-twitter only
@ -60,12 +61,12 @@
, twitter: view.author.twitter , twitter: view.author.twitter
} }
, title: view.site.title , title: view.site.title
, host: view.env.base_url.replace(/^https?:\/\//, '')
} }
, stylesheets: { 'load': function () { , stylesheets: { 'load': function () {
return function (text, render) { return function (text, render) {
// TODO pay attention to text of which styles to load? // TODO pay attention to text of which styles to load?
// this is unescaped, right? // this is unescaped, right?
console.log('$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ magicstache');
return render(view.desi.styles.join('\n')); return render(view.desi.styles.join('\n'));
}; };
}} }}