Compare commits
No commits in common. "master" and "v1.0.1" have entirely different histories.
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "desirae-datamap-ruhoh",
|
"name": "desirae-datamap-ruhoh",
|
||||||
"version": "1.0.2",
|
"version": "1.0.1",
|
||||||
"homepage": "https://github.com/DearDesi/datamap-ruhoh",
|
"homepage": "https://github.com/DearDesi/datamap-ruhoh",
|
||||||
"authors": [
|
"authors": [
|
||||||
"AJ ONeal <awesome@coolaj86.com>"
|
"AJ ONeal <awesome@coolaj86.com>"
|
||||||
|
@ -9,7 +9,6 @@
|
|||||||
var newview
|
var newview
|
||||||
, analytics
|
, analytics
|
||||||
, comments
|
, comments
|
||||||
, desi = {}
|
|
||||||
;
|
;
|
||||||
|
|
||||||
comments = view.site.disqus_shortname &&
|
comments = view.site.disqus_shortname &&
|
||||||
@ -26,20 +25,10 @@
|
|||||||
}})
|
}})
|
||||||
;
|
;
|
||||||
|
|
||||||
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 = {
|
||||||
desi: desi
|
content: view.contents
|
||||||
, 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
|
||||||
, filename: view.entity.name // in rt
|
|
||||||
, tagline: view.entity.yml.tagline // in rt
|
, tagline: view.entity.yml.tagline // in rt
|
||||||
, description: view.entity.yml.description // in rt
|
, description: view.entity.yml.description // in rt
|
||||||
, content: view.contents
|
, content: view.contents
|
||||||
@ -51,7 +40,6 @@
|
|||||||
, 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
|
||||||
@ -72,12 +60,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'));
|
||||||
};
|
};
|
||||||
}}
|
}}
|
||||||
|
12
package.json
12
package.json
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "desirae-datamap-ruhoh",
|
"name": "desirae-datamap-ruhoh",
|
||||||
"version": "1.0.6",
|
"version": "1.0.1",
|
||||||
"description": "A ruhoh datamap plugin for desirae",
|
"description": "A ruhoh datamap plugin for desirae",
|
||||||
"main": "datamapper-ruhoh.js",
|
"main": "datamapper-ruhoh.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@ -8,7 +8,7 @@
|
|||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://git.coolaj86.com/coolaj86/desirae-datamap-ruhoh.js.git"
|
"url": "https://github.com/DearDesi/datamap-ruhoh.git"
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"ruhoh",
|
"ruhoh",
|
||||||
@ -18,12 +18,12 @@
|
|||||||
"datamap"
|
"datamap"
|
||||||
],
|
],
|
||||||
"author": "AJ ONeal <coolaj86@gmail.com> (http://coolaj86.com/)",
|
"author": "AJ ONeal <coolaj86@gmail.com> (http://coolaj86.com/)",
|
||||||
"license": "(MIT OR ISC OR Apache-2.0)",
|
"license": "Apache2",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://git.coolaj86.com/coolaj86/desirae-datamap-ruhoh.js/issues"
|
"url": "https://github.com/DearDesi/datamap-ruhoh/issues"
|
||||||
},
|
},
|
||||||
"homepage": "https://git.coolaj86.com/coolaj86/desirae-datamap-ruhoh.js",
|
"homepage": "https://github.com/DearDesi/datamap-ruhoh",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"mustache": "^2.3.2"
|
"mustache": "^1.0.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user