Browse Source

changed permissiosn to Post (644)

master
Sean Clarke 1 month ago
parent
commit
0f64d16b8b
4 changed files with 10 additions and 1 deletions
  1. +1
    -1
      app.js
  2. +3
    -0
      model/Post.js
  3. +5
    -0
      package-lock.json
  4. +1
    -0
      package.json

+ 1
- 1
app.js View File

@@ -34,4 +34,4 @@ var posts = new Listing();

posts = allPosts.forYear(2019);
posts.buildIndex();
console.log(posts.posts[0].generateListing());
posts.posts[0].build();

+ 3
- 0
model/Post.js View File

@@ -1,4 +1,5 @@
var fs = require('fs');
var chmodr = require('chmodr');
var showdown = require('showdown');
var convert = new showdown.Converter();

@@ -48,6 +49,8 @@ Post.prototype.build = function(){
html += fs.readFileSync(process.cwd() + '/partials/footer.html', 'utf8');

fs.writeFileSync(this.html, html, 'utf8');
// modifying file permissions
fs.chmodSync(this.html, '744');
// return this.getPost();
}


+ 5
- 0
package-lock.json View File

@@ -36,6 +36,11 @@
"resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz",
"integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg=="
},
"chmodr": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/chmodr/-/chmodr-1.2.0.tgz",
"integrity": "sha512-Y5uI7Iq/Az6HgJEL6pdw7THVd7jbVOTPwsmcPOBjQL8e3N+pz872kzK5QxYGEy21iRys+iHWV0UZQXDFJo1hyA=="
},
"cliui": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/cliui/-/cliui-5.0.0.tgz",

+ 1
- 0
package.json View File

@@ -7,6 +7,7 @@
"remove-site": "node remove-site.js"
},
"dependencies": {
"chmodr": "^1.2.0",
"mkdirp-sync": "0.0.3",
"rimraf": "^3.0.0",
"showdown": "^1.9.1"

Loading…
Cancel
Save