Tag: 博客

鬼CMS – sudo npm安装 – 生产 – 错误

我正在尝试在当地的stream浪者箱子上安装鬼怪cms。 在我input“sudo npm install –production”后,我得到这个错误: npm ERR! Linux 3.16.0-4-amd64 npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "–production" npm ERR! node v4.2.3 npm ERR! npm v3.5.1 `npm ERR! path /var/www/html/ghost/node_modules/node-pre- `gyp/node_modules/rc/node_modules/strip-json-comments/cli.js npm ERR! code ENOENT npm ERR! errno -2 npm ERR! syscall chmod npm ERR! enoent ENOENT: no such file or directory, chmod '/var/www/html/ghost/node_modules/node-pre-gyp/node_modules/rc/node_modules/strip-json-comments/cli.js' npm ERR! enoent […]

你如何覆盖生成的元标记?

我想覆盖我的Hexo博客的meta标签: <meta property="og:type" content="website"> <meta property="og:title" content="Borgez"> <meta property="og:url" content="http://feliborgez.github.io/blog/index.html"> <meta property="og:site_name" content="Borgez"> <meta property="og:description" content="The personal blog of Felipe Borgez"> <meta name="twitter:card" content="summary"> <meta name="twitter:title" content="Borgez"> <meta name="twitter:description" content="The personal blog of Felipe Borgez"> 但是,它们似乎并不是由主题产生的(或者我可以轻易改变它们)。 他们在哪里产生?

将博客添加到node.js应用程序

我有一个在node.js和Express上运行的SAAS应用程序。 我需要添加一个博客来制作一些博客内容并分享 http://www.myapp.com/blog/ 有什么东西准备好使用,我可以添加到我的应用程序,像WordPress?

如何使用博主api nodejs插入post

根据文档,我已经通过request callvalidation了我的应用,并尝试插入post: var blogger = google.blogger('v3'); app.post('/creatGoogleBloggerPost', function(req, res, next){ console.log('creatGoogleBloggerPost called'); var oauth2Client = new google.auth.OAuth2(); var key = require('./public_html/SoulSeeker2-1bxxxaaa727d.json'); var jwtClient; jwtClient = new google.auth.JWT(key.client_email, null, key.private_key, ['https://www.googleapis.com/auth/blogger'], null); jwtClient.authorize(function(err, tokens) { console.log('retrieved tokens.access_token from google', tokens.access_token); google.options({ auth: jwtClient }); if (err) { console.log(err); return; } else { blogger.posts.insert({ auth: jwtClient, blogId: […]

鬼定制分页

我只是通过阅读幽灵主题文档来devise一个鬼博客平台的主题。 我现在需要的是定制分页。 文件说在partial文件夹里面创build一个pagination.hbs 。 但问题是我不知道标记应该如何。