meteor-blog
atmosphere package for meteor blog
It allows you to create your own blog posts locally or to pull from Medium so you don't have to write twice.
This is very early release, expect some bugs. However we are using it extensively in few our projects, so we fix it eagerly.
Howto
Create 2 routes:
1import('meteor/ipstas:meteor-blog'); 2FlowRouter.route('/blog', { 3 name: 'Blog. ' + title, 4 title: 'Blog. ' + title, 5 action: function(params) { 6 console.log('blog', this, params); 7 8 BlazeLayout.render('layout', { nav: nav, main: 'blogIt', footer: 'footer' }); 9 SEO.set({ 10 title: 'Blog. ' + title, 11 }); 12 }, 13}); 14FlowRouter.route('/blog/post/:postid', { 15 name: 'Blog Post. ' + title, 16 title: 'Blog Post. ' + title, 17 action(params, queryParams) { 18 console.log('blogpost', this, params, queryParams); 19 window.prerenderReady = false; 20 BlazeLayout.render('layout', { nav: navdsk, main: 'blogPost' }); 21 SEO.set({ 22 title: 'Blog Post. ' + title, 23 }); 24 if (window.ll) ll('tagScreen', name); 25 }, 26});
You need to be an admin (set in alanning:roles), blog accepts two variants:
1(Roles.userIsInRole(userId, ['admin', 'editor'], 'admGroup') || Roles.userIsInRole(userId, ['admin', 'editor']))
Go to Aggregated first, put something like "Smart Home" and click Submit. It should pull at least 4-10 articles from Medium. From here you can select Ban (and that author will never be pulled again) or just Hide and this particular article will be hidden. Next click on the article subject and decide if you want to publish. To publish toggle publish and now it is published under Content
To create your own blog post click on New and then you have pretty much the same editor as Medium offers. Don't forget to schedule the time of publishing. By default the article is going to be Draft and visible to editors only