Giter Club home page Giter Club logo

node-blog's Introduction

node-blog is a basic blog written in Node.js with nice inline composing and markdown storage. All writing is done within your web browser using the ace editor, published articles as well as drafts are stored as markdown files on your server.

node-blog

You can easily manage your personal site with node-blog, see semu.mp for a working example using node-blog. There is a nice tag cloud available, an RSS news feed for sure and comments with the help from disqus.

Configuration

Please edit config.json for setting up your own node-blog. Please pay attention to the strict JSON syntax, you can validate your configuration with JSONLint if you run into any problems!

{
  "host": "example.com",
  "port": 8080,
  "admin": {"username": "admin", "password": "loremipsumdolorsitamet"},
  "author": "Lorem Ipsum",
  "disqus": "loremipsum",
  "paths": {
    "articles": "markdown"}
}

Using node-blog

After configuration is done just start node-blog with node app.js and point your web browser to the defined host and port. All needed information for customizing node-blog and about composing articles can be found in the folder markfiles/ or at your new node-blog…

Article Format

/*
 Title: Lorem Ipsum dolor sit amet
 Hidden: true
 Date: 2012-02-10 22:17:09
 Tags: Example
 Category: Example
 Sources:
   example.com: http://example.com 
*/

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas orci nibh, convallis ac venenatis at, aliquet eget neque. Nulla tortor nulla, varius quis ultricies sit amet, posuere nec velit. In hac habitasse platea dictumst. Suspendisse a nulla lacus, dignissim dignissim felis. Morbi ut dui lacus. Sed aliquet tristique malesuada. Morbi sit amet neque eu nunc fringilla sollicitudin. Quisque condimentum arcu non odio pulvinar eget placerat mauris auctor. Quisque quam nulla, vestibulum vitae tincidunt eu, lacinia eget metus. Nam commodo cursus facilisis. Nam convallis porta orci, in sodales erat vestibulum quis.

MIT License

Copyright (c) 2012 Sebastian Müller

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

node-blog's People

Contributors

sbstjn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

node-blog's Issues

Can't use inline HTML

(Love your design philosophy, this looks like a highly promising tool, thank you for putting it out there!)

Trying to use inline HTML in a post as per Gruber's example escapes the tags and presents them as text.

To reproduce: Create a post with the following text

This is a regular paragraph.

<table>
    <tr>
        <td>Foo</td>
    </tr>
</table>

This is another regular paragraph.

Expected output:

A table element with the text foo

Actual output:

The HTML code

Removing Article

How can I remove an article that was published?

I tried to just delete the folder markdown but it did not work.

Error when running 'npm install'

npm http GET https://registry.npmjs.org/kickstart
npm http GET https://registry.npmjs.org/node-markdownblog
npm http 304 https://registry.npmjs.org/node-markdownblog

npm ERR! Error: No compatible version found: node-markdownblog@'>=1.0.1'
npm ERR! No valid targets found.
npm ERR! Perhaps not compatible with your version of node?
npm ERR!     at installTargetsError (/usr/local/lib/node_modules/npm/lib/cache.js:488:10)
npm ERR!     at next_ (/usr/local/lib/node_modules/npm/lib/cache.js:438:17)
npm ERR!     at next (/usr/local/lib/node_modules/npm/lib/cache.js:415:44)
npm ERR!     at /usr/local/lib/node_modules/npm/lib/cache.js:408:5
npm ERR!     at saved (/usr/local/lib/node_modules/npm/lib/utils/npm-registry-client/get.js:147:7)
npm ERR!     at Object.oncomplete (/usr/local/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:231:7)
npm ERR! You may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <[email protected]>
npm ERR! 
npm ERR! System Darwin 10.8.0
npm ERR! command "node" "/usr/local/bin/npm" "install"
npm ERR! cwd /Users/brianandrich/Sites/node-blog
npm ERR! node -v v0.6.11
npm ERR! npm -v 1.1.1
npm ERR! message No compatible version found: node-markdownblog@'>=1.0.1'
npm ERR! message No valid targets found.
npm ERR! message Perhaps not compatible with your version of node?
npm http 304 https://registry.npmjs.org/kickstart
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /Users/brianandrich/Sites/myblog/npm-debug.log
npm not ok

No editor on Safari 6

The bundled Ace editor doesn't show up properly when running on Safari 6. Should probably just be updated to latest version which works fine.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.