mixu / ghost-render Goto Github PK
View Code? Open in Web Editor NEWRender static blog sites from Markdown using Ghost themes
Render static blog sites from Markdown using Ghost themes
Hi, what is the current status of this project? Is it still maintained?
I tried this project out following the README and got hit with:
/home/tim/nvm/versions/node/v8.1.2/lib/node_modules/ghost-render/lib/theme.js:102
if (err) { throw err; }
^
Error: Missing helper: 'is'
at Exception (/home/tim/nvm/versions/node/v8.1.2/lib/node_modules/ghost-render/node_modules/handlebars/dist/cjs/handlebars/exception.js:13:41)
at Object.<anonymous> (/home/tim/nvm/versions/node/v8.1.2/lib/node_modules/ghost-render/node_modules/handlebars/dist/cjs/handlebars/base.js:66:13)
at Object.eval (eval at createFunctionContext (/home/tim/nvm/versions/node/v8.1.2/lib/node_modules/ghost-render/node_modules/handlebars/dist/cjs/handlebars/compiler/javascript-compiler.js:171:23), <anonymous>:4:68)
at ret (/home/tim/nvm/versions/node/v8.1.2/lib/node_modules/ghost-render/node_modules/handlebars/dist/cjs/handlebars/runtime.js:137:30)
at ret (/home/tim/nvm/versions/node/v8.1.2/lib/node_modules/ghost-render/node_modules/handlebars/dist/cjs/handlebars/compiler/compiler.js:422:21)
at Object.invokePartial (/home/tim/nvm/versions/node/v8.1.2/lib/node_modules/ghost-render/node_modules/handlebars/dist/cjs/handlebars/runtime.js:181:12)
at Object.invokePartialWrapper [as invokePartial] (/home/tim/nvm/versions/node/v8.1.2/lib/node_modules/ghost-render/node_modules/handlebars/dist/cjs/handlebars/runtime.js:46:39)
at Object.eval (eval at createFunctionContext (/home/tim/nvm/versions/node/v8.1.2/lib/node_modules/ghost-render/node_modules/handlebars/dist/cjs/handlebars/compiler/javascript-compiler.js:171:23), <anonymous>:7:17)
at prog (/home/tim/nvm/versions/node/v8.1.2/lib/node_modules/ghost-render/node_modules/handlebars/dist/cjs/handlebars/runtime.js:168:15)
at Object.<anonymous> (/home/tim/nvm/versions/node/v8.1.2/lib/node_modules/ghost-render/node_modules/handlebars/dist/cjs/handlebars/base.js:187:14)
My guess is the newest Casper theme uses some helpers that weren't there when you last tested this.
I tried to monkey-patch the code to add in the handlebars-helpers
module, but I can't seem to get it hooked up.
I want to run my blog in a sub directory, not at the / of my web server. When I but my blog in https://blah.org/blog, ghost-render will break it by using /assets for css etc.
I'm on Windows7. Install went ok. I created two folders in "ghost-render" folder called /blog and /webkid (for the template which is in there). Then I run this command from "ghost-render" folder -
g:\nodejs\node_modules\ghost-render>ghost-render --input ./blog/ --settings ./sett
ings.json --theme ./webkid --output ./tmp
g:\nodejs\node_modules\ghost-render>
Nothing is created and I get no errors on screen. How to troubleshoot?
I've followed the instructions for install ghost-render. But any time I attempt ghost-render --settings ./settings.json
with any command I receive and Unexpected Token Syntax Error. I've double checked those settings and I've run them through a validator but can't seem to find the issue.
How do I increase the limit of five posts per page on the site homepage? I couldn't find any docs regarding this doubt.
It seems this project is far behind the official Ghost.
I'm trying to convert my blog, but the features {{#next_post}}
and {{#prev_post}}
do not work, and they are very important to me (otherwise the blog won't have any kind of navigation).
Any chance of updating the renderer?
(Unfortunately I'm just a user, I don't know how I could fix this by myself. Sorry.)
Currently the license is set to BSD
in package.json
, however this requires the field to be a valid SPDX license identifier https://spdx.org/licenses/ which BSD
is not. If you could update the license, perhaps to either to BSD-2-Clause
or BSD-3-Clause
which are the most common BSD licenses, that would be great!
In lib/ghost/helpers/helpers.js in coreHelpers.meta_title(), posts are incorrectly detected as author pages, resulting in incorrect title being generated.
This looks great along with markdown-styles you wrote. I want to create a blog using markdown files but I want to choose my own generic html template. Should I use this app, ghost-render, or markdown-styles?? I'm not sure markdown-styles does blog posts or is it just for pages only?
The README shows how path generation will happen automatically without published_at in various ways.
I want the opposite :)
I'd like to have my posts directory be just folders named based on title and then have the site dir generate proper date-based path structure from published_at metadata.
This means that when I'm authoring, I don't have to care about all these directories, can just focus on writing. If I'm late by a day, whatevs, don't have to worry about recreating all the paths, links, etc.
ghost-render --settings .\settings.json --theme .\Casper
ghost-render --settings ./settings.json --theme ./Casper
Outputs nothing. Not even errors. File and path exist. Executed as admin or non-admin. Makes no difference.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.