Skip to content

cauliturtle/harp-simple-blog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Sample Blog using Harp

It is an simple real world example on using Harp to make a blog.

What features in Harp we used here

How to get started?

$ git clone git@github.com:cauliturtle/harp-simple-blog.git
$ cd harp-simple-blog
$ harp server

Your simple blog is now running at http://localhost:9000

Here is the detailed blog post: http://www.codersgrid.com/2013/10/14/make-a-blog-with-harp/

Site Structure

/my-simple-blog 			# the webroot folder
+- public
	+- _parts/				# Partial folder, for reuse element
		|- footer.ejs 		# footer layout
		|- header.ejs 		# header layout
		|- nav.ejs 			# nav layout
	+- assets/ 				# assets folder
		|- css/
			|- main.less 	# the blog main css using less
	+- blogs/
		|- _data.json 		# store what blogs are published and its meta
		|- first-blog-post-using-harp.md # blog post
		|- index.ejs 		# blog index
	+- 404.md 				# 404 page
	+- _layout.ejs 			# global layout
	+- contact-us.md 		# contact us page
	+- index.md				# index page

Contribute

I dont know if it does help you to start making general static site using harp, but if it does and found some problem heres, please send me a pull request!

License

MIT

About

a real world blog example using harp

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages