Skip to content

dorajistyle/blogger-docpad

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Import Google Blooger articles by label and generate Docpad static blog.

Installation

git clone git://github.com/creationix/nvm.git ~/.nvm
printf "\n\n# NVM\nif [ -s ~/.nvm/nvm.sh ]; then\n\tNVM_DIR=~/.nvm\n\tsource ~/.nvm/nvm.sh\nfi" >> ~/.bashrc
NVM_DIR=~/.nvm
source ~/.nvm/nvm.sh
nvm install v0.10.25
nvm alias default 0.10
nvm use 0.10
gem install jekyll-import
sudo npm install docpad -g
npm install --save cheerio
git clone https://github.com/dorajistyle/blogger-docpad 
cd blogger-docpad
docpad install sitemap
docpad install cleancss 
docpad install uglify
docpad install ghpages
docpad install moment
docpad install sitemap
cd src
npm install -g grunt
npm install --save-dev grunt-contrib-watch 
npm install --save-dev grunt-shell
npm install --save-dev time-grunt

Edit config files to fit your blog

Make sure that a category name should be unique.

  • import.sh

    • line 37 : git repository.
    • line 40 : domain name.
  • docpad.coffee

    • categories
    • docpadConfig/templateData/site
    • docpadConfig/templateData/collections
  • src/Gruntfile

    • categories
    • intros
    • titles
    • descriptions
  • src/partials

  • src/layouts

  • src/documents/scripts

  • src/documents/styles

  • src/documents/images

Execute

  • Run init.sh to init blogger-docpad
./init.sh
  • Run import.sh
./import.sh

How to handle large number of files with docpad?

It's very tough. The sample blog dorajistyle.pe.kr has more than 1000 articles. But docpad can't handle large number of files. However we have a trick. That's adding 'ignored' flag into your article's header. Before generating an article, set 'ignored' flag as false. When the article generated well, change 'ignored' flag to true. Docpad will ignore articles that already generated. Unfortunately cleanurls plugin not working with this trick. If you use the plugin, docpad generate ignored articles without layouts.

Sample


Attributions

Blogger-Docpad is under the MIT license.

About

Google blogger to Docpad static blog.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published