Skip to content

Commit

Permalink
RSS feeds and paged indexes for all tags and authors
Browse files Browse the repository at this point in the history
  • Loading branch information
Frank Boës committed Sep 14, 2016
1 parent 59d0e63 commit 63f611e
Show file tree
Hide file tree
Showing 16 changed files with 667 additions and 600 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ If you do not want to use [`node ./index.js`](index.js), [read the manual](docs/
Version
-------

Version: 0.3.1 (2016-09-14)
Version: 0.4.0 (2016-09-15)

Legal stuff
-----------
Expand Down
4 changes: 3 additions & 1 deletion generate.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
#!/usr/bin/env node
'use strict';

var generator = require('./src/generator');
var Generator = require('./src/generator');
var args = require('./src/helpers/arguments')();
var config = require('./src/config');

if (args.log) {
console.log('---- ' + new Date() + ' -----');
}

var generator = new Generator(config);
generator
.getArticles()
.then(function () {
Expand Down
18 changes: 14 additions & 4 deletions install.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ var configFilename = defaultValues.directories.user + '/config.json';
var themesAvailable= fs.readdirSync(defaultValues.directories.theme);
var args = require('./src/helpers/arguments')();
var Mustache = require('mustache');
var manifest = require('./src/models/manifest');

Mustache.escape = function(string) {
var entityMap = {
Expand Down Expand Up @@ -253,9 +254,9 @@ inquirer.prompt(questions).then(
}
), function(err) {
if (err) {
console.error('htdocs/robots.txt' + ' could not be written' ); process.exit(1);
console.error(defaultValues.directories.htdocs+'/robots.txt' + ' could not be written' ); process.exit(1);
} else {
console.log( 'htdocs/robots.txt' + ' created');
console.log( defaultValues.directories.htdocs+'/robots.txt' + ' created');
}
});
fs.writeFile(defaultValues.directories.htdocs+'/browserconfig.xml', Mustache.render(
Expand All @@ -264,11 +265,20 @@ inquirer.prompt(questions).then(
}
), function(err) {
if (err) {
console.error('htdocs/browserconfig.xml' + ' could not be written' ); process.exit(1);
console.error(defaultValues.directories.htdocs+'/browserconfig.xml' + ' could not be written' ); process.exit(1);
} else {
console.log( 'htdocs/browserconfig.xml' + ' created');
console.log( defaultValues.directories.htdocs+'/browserconfig.xml' + ' created');
}
});

fs.writeFile( defaultValues.directories.htdocs+'/manifest.json', JSON.stringify(manifest(defaultValues), undefined, 2), function(err) {
if (err) {
console.error(defaultValues.directories.htdocs+'/manifest.json' + ' could not be written' ); process.exit(1);
} else {
console.log( defaultValues.directories.htdocs+'/manifest.json' + ' created');
}
});

},
function(err) { console.error(err); process.exit(1); }
);
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "blogophon",
"version": "0.3.1",
"version": "0.4.0",
"description": "A small and simple Static Site Generator for blogs.",
"main": "./index.js",
"repository": {
Expand Down
3 changes: 2 additions & 1 deletion src/blogophon-console.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ var fs = require('fs-extra-promise');
var shell = require('shelljs');
var Mustache = require('./helpers/blogophon-mustache').getTemplates(config.directories.currentTheme + '/templates');
var chalk = require('chalk');
var generator = require('./generator');
var Generator = require('./generator');

/**
* Represents the Inquirer dialogue with which to edit articles.
Expand Down Expand Up @@ -320,6 +320,7 @@ var BlogophonConsole = function() {
}
}
];
var generator = new Generator(config);
inquirer
.prompt(questions)
.then(
Expand Down
Loading

0 comments on commit 63f611e

Please sign in to comment.