write_down 0.0.5 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (106) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +9 -21
  3. data/.travis.yml +4 -0
  4. data/Gemfile +1 -1
  5. data/LICENSE.txt +17 -18
  6. data/README.md +20 -8
  7. data/Rakefile +9 -0
  8. data/bin/console +14 -0
  9. data/bin/setup +7 -0
  10. data/exe/write_down +3 -0
  11. data/lib/write_down/converter/base.rb +18 -0
  12. data/lib/write_down/converter/markdown.rb +18 -0
  13. data/lib/write_down/converter/org.rb +18 -0
  14. data/lib/write_down/erb/container.erb +19 -0
  15. data/lib/write_down/erb/essay.erb +5 -0
  16. data/lib/write_down/erb/layout.erb +64 -0
  17. data/lib/write_down/erb/page.erb +4 -0
  18. data/lib/write_down/erb/post.erb +5 -0
  19. data/lib/write_down/erb/slide.erb +79 -0
  20. data/lib/write_down/model/asset.rb +36 -0
  21. data/lib/write_down/model/base.rb +63 -0
  22. data/lib/write_down/model/container.rb +35 -0
  23. data/lib/write_down/model/essay.rb +35 -0
  24. data/lib/write_down/model/layout.rb +75 -0
  25. data/lib/write_down/model/page.rb +47 -0
  26. data/lib/write_down/model/post.rb +47 -0
  27. data/lib/write_down/model/slide.rb +27 -0
  28. data/lib/write_down/utils/qiniu_sync.rb +23 -0
  29. data/lib/write_down/version.rb +1 -1
  30. data/lib/write_down.rb +13 -33
  31. data/write_down.gemspec +23 -12
  32. metadata +54 -91
  33. data/bin/write_down +0 -43
  34. data/lib/write_down/article.rb +0 -64
  35. data/lib/write_down/configuration.rb +0 -6
  36. data/lib/write_down/converter.rb +0 -8
  37. data/lib/write_down/page.rb +0 -6
  38. data/lib/write_down/series.rb +0 -10
  39. data/lib/write_down/site.rb +0 -10
  40. data/lib/write_down/template.rb +0 -20
  41. data/template/emacs/404.html +0 -157
  42. data/template/emacs/CHANGELOG.md +0 -133
  43. data/template/emacs/CONTRIBUTING.md +0 -154
  44. data/template/emacs/LICENSE.md +0 -19
  45. data/template/emacs/README.md +0 -1
  46. data/template/emacs/apple-touch-icon-precomposed.png +0 -0
  47. data/template/emacs/crossdomain.xml +0 -15
  48. data/template/emacs/css/custom.css +0 -18
  49. data/template/emacs/css/main.css +0 -304
  50. data/template/emacs/css/normalize.css +0 -527
  51. data/template/emacs/favicon.ico +0 -0
  52. data/template/emacs/humans.txt +0 -15
  53. data/template/emacs/img/.gitignore +0 -0
  54. data/template/emacs/index.html +0 -62
  55. data/template/emacs/js/main.js +0 -1
  56. data/template/emacs/js/plugins.js +0 -24
  57. data/template/emacs/js/vendor/jquery-1.10.2.min.js +0 -6
  58. data/template/emacs/js/vendor/modernizr-2.6.2.min.js +0 -4
  59. data/template/emacs/post.html +0 -80
  60. data/template/emacs/robots.txt +0 -3
  61. data/template/simple/404.html +0 -157
  62. data/template/simple/CNAME +0 -1
  63. data/template/simple/README.md +0 -1
  64. data/template/simple/_disqus.mustache +0 -19
  65. data/template/simple/_footer.mustache +0 -28
  66. data/template/simple/_header.mustache +0 -38
  67. data/template/simple/apple-touch-icon-precomposed.png +0 -0
  68. data/template/simple/crossdomain.xml +0 -15
  69. data/template/simple/css/layout.css +0 -72
  70. data/template/simple/css/main.css +0 -304
  71. data/template/simple/css/normalize.css +0 -527
  72. data/template/simple/favicon.ico +0 -0
  73. data/template/simple/humans.txt +0 -15
  74. data/template/simple/img/.gitignore +0 -0
  75. data/template/simple/index.html +0 -12
  76. data/template/simple/js/main.js +0 -1
  77. data/template/simple/js/plugins.js +0 -24
  78. data/template/simple/js/vendor/jquery-1.10.2.min.js +0 -6
  79. data/template/simple/js/vendor/modernizr-2.6.2.min.js +0 -4
  80. data/template/simple/post.html +0 -9
  81. data/template/simple/robots.txt +0 -3
  82. data/theme/ghost/assets/css/screen.css +0 -911
  83. data/theme/ghost/index.html +0 -75
  84. data/theme/ghost/post.html +0 -112
  85. data/theme/html5-boilerplate/.gitattributes +0 -1
  86. data/theme/html5-boilerplate/.gitignore +0 -2
  87. data/theme/html5-boilerplate/.htaccess +0 -551
  88. data/theme/html5-boilerplate/404.html +0 -157
  89. data/theme/html5-boilerplate/CHANGELOG.md +0 -133
  90. data/theme/html5-boilerplate/CONTRIBUTING.md +0 -154
  91. data/theme/html5-boilerplate/LICENSE.md +0 -19
  92. data/theme/html5-boilerplate/README.md +0 -61
  93. data/theme/html5-boilerplate/apple-touch-icon-precomposed.png +0 -0
  94. data/theme/html5-boilerplate/crossdomain.xml +0 -15
  95. data/theme/html5-boilerplate/css/main.css +0 -297
  96. data/theme/html5-boilerplate/css/normalize.css +0 -527
  97. data/theme/html5-boilerplate/favicon.ico +0 -0
  98. data/theme/html5-boilerplate/humans.txt +0 -15
  99. data/theme/html5-boilerplate/img/.gitignore +0 -0
  100. data/theme/html5-boilerplate/index.html +0 -91
  101. data/theme/html5-boilerplate/js/main.js +0 -1
  102. data/theme/html5-boilerplate/js/plugins.js +0 -24
  103. data/theme/html5-boilerplate/js/vendor/jquery-1.10.2.min.js +0 -6
  104. data/theme/html5-boilerplate/js/vendor/modernizr-2.6.2.min.js +0 -4
  105. data/theme/html5-boilerplate/post.html +0 -70
  106. data/theme/html5-boilerplate/robots.txt +0 -3
@@ -1,75 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta http-equiv="Content-Type" content="text/html" charset="UTF-8" />
5
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
6
- <title>The Ghost Blog</title>
7
- <meta name="description" content="The official blog of the Ghost open source blogging platform. Major announcements, development progress, and much more!" />
8
- <meta name="HandheldFriendly" content="True" />
9
- <meta name="MobileOptimized" content="320" />
10
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
11
- <link rel="stylesheet" type="text/css" href="assets/css/screen.css" />
12
- <link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic|Open+Sans:700,400" />
13
-
14
- <meta name="generator" content="Ghost 0.3" />
15
- <link rel="alternate" type="application/rss+xml" title="RSS" href="/rss/"></head>
16
- <body class="home-template">
17
- <header id="site-head" style="background-image: url(/content/images/2013/Sep/cover.png)">
18
- <div class="vertical">
19
- <div id="site-head-content" class="inner">
20
- <a id="blog-logo" href="http://blog.ghost.org">
21
- <img src="/content/images/2013/Sep/bloglogo-1.png" alt="Blog Logo" />
22
- </a>
23
- </div>
24
- </div>
25
- </header>
26
- <main class="content" role="main">
27
-
28
- <!-- 遍历文章列表 -->
29
- {{# articles}}
30
- <article class="post tag-building-ghost">
31
- <header class="post-header">
32
- <span class="post-meta">
33
- <time datetime="2013-04-29">{{created_at}} | {{updated_at}}</time>
34
- on Building Ghost
35
- </span>
36
- <h2 class="post-title">
37
- <a href="/ghost-kickstarter/">{{ title }}</a>
38
- </h2>
39
- </header>
40
- <section class="post-excerpt">
41
- <p>
42
- {{{ content }}}
43
- </p>
44
- </section>
45
- </article>
46
- {{/ articles}}
47
-
48
-
49
- <nav class="pagination" role="pagination">
50
- <span class="page-number">Page 1 of 1</span>
51
- </nav>
52
-
53
- </main>
54
-
55
- <footer class="site-footer">
56
- <a class="subscribe icon-feed" href="http://blog.ghost.org/rss/">
57
- <span class="tooltip">Subscribe!</span>
58
- </a>
59
- <div class="inner">
60
- <section class="copyright">
61
- All content copyright
62
- <a href="/">The Ghost Blog</a>
63
- &copy; 2013 &bull; All rights reserved.
64
- </section>
65
- <section class="poweredby">
66
- Proudly published with
67
- <a class="icon-ghost" href="http://tryghost.org">Ghost</a>
68
- </section>
69
- </div>
70
- </footer>
71
-
72
- <script src="/shared/vendor/jquery/jquery.js"></script>
73
- <script type="text/javascript" src="assets/js/index.js"></script>
74
- </body>
75
- </html>
@@ -1,112 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta http-equiv="Content-Type" content="text/html" charset="UTF-8" />
5
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
6
- <title>The Ghost Blog</title>
7
- <meta name="description" content="The official blog of the Ghost open source blogging platform. Major announcements, development progress, and much more!" />
8
- <meta name="HandheldFriendly" content="True" />
9
- <meta name="MobileOptimized" content="320" />
10
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
11
- <link rel="stylesheet" type="text/css" href="assets/css/screen.css" />
12
- <link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic|Open+Sans:700,400" />
13
- <meta name="generator" content="Ghost 0.3.0" />
14
- </head>
15
- <body class="post-template">
16
- <main class="content" role="main">
17
- <article class="post">
18
- <header class="post-header">
19
- <a id="blog-logo" href="http://blog.ghost.org">
20
- <img src="/content/images/2013/Sep/bloglogo-1.png" alt="Blog Logo" />
21
- </a>
22
- </header>
23
- <span class="post-meta"><time datetime="2013-10-14">14 Oct 2013</time> on Release</span>
24
- <h1 class="post-title">Ghost Launches to The Public</h1>
25
- <section class="post-content">
26
- <p><em>Today we are very proud to announce the first public release of the Ghost blogging platform tthe public.</em></p
27
- <p>Following three weeks of intense testing after <a href="http://blog.ghost.org/launch/">launching</ to our 6,000 Kickstarter backers, today we are releasing an updated Ghost 0.3.2 to everyone in thworld.</p
28
- <p>It was less than a year ago that I first <a href="http://john.onolan.org/ghost">published my idea<> for a simpler blogging platform. I can't believe how far we've come already, and the incrediblsupport we've had at every step of the way.</p
29
- <p>This first public release of Ghost represents code contributions from over 20 people, from evercontinent on earth with the exception of Antarctica (we're working on that one). We have successfullcreated the world's first fully functioning blogging platform built entirely with JavaScript.</p
30
- <p><em>The future of Ghost is incredibly bright and we welcome you to join us on the journey of thisits first chapter.</em></p
31
- <p>With that, we have an absolute ton of news about today's launch which is incredibly exciting:</p
32
- <h2 id="opensignuponghostorg">Open Signup on Ghost.org</h2
33
- <p>The most important piece of news, of course, is that <a href="http://ghost.org">Ghost.org</a> inow open for signups from everybody. Get over there, create your account, grab your username, downloaGhost, and check out the forums.</p
34
- <h2 id="ourhostedservice">Our Hosted Service</h2
35
- <p>As announced in the Kickstarter campaign, we have set up a world-class hosted platform for Ghoswhich allows you to set up and run a Ghost blog with just a couple of clicks of your mouse.</p
36
- <p>Last week we started rolling out access to our hosted platform to a few beta testers - and we wilnow continue to add people each week as our testing progresses. We will be rolling this out first anforemost to Kickstarter backers, and hope to open it up publicly to everyone in a couple of months.</p
37
- <p>To answer the two most frequently asked questions: Yes, you will be able to use a custom domainame with it - and we will be announcing pricing details in the coming weeks.</p
38
- <p>This means that for now - you will need to download and install Ghost manually in order to use itThat process has been a little bit complicated until now... but wait...</p
39
- <h2 id="autoghostinstallersgalore">Auto Ghost Installers Galore</h2
40
- <p>We've been working away with a number of incredible companies for the last few months to makgetting Ghost up and running as easy as possible. Today we're very, very excited to announce just few of those which are available, right now:</p
41
- <h3 id="bitnamighostinstaller">Bitnami Ghost Installer</h3
42
- <p><a href="http://bitnami.com/">Bitnami</a> are an incredible company who make auto-installers foevery popular platform under the sun (almost). We worked with Bitnami to create a set of Ghosinstallers which mean that <strong>you can download, install, and run Ghost on your computer with jusa few clicks and zero programming knowledge</strong>. They also have services to allow you to deployour Ghost install to a live server.</p
43
- <p>Check out the <a href="http://bitnami.com/stack/ghost">Bitnami Ghost Installers</a> to get starte</p
44
- <h3 id="digitaloceanghostdroplet">Digital Ocean Ghost Droplet</h3
45
- <p><a href="https://www.digitalocean.com/">Digital Ocean</a> are one of the most popular VPS hosts ithe world, offering people fully functioning cloud servers at the crazy-low price of just $5/month. Wworked with Digital Ocean to create a Ghost Droplet which allows you to deploy a live Ghost bloincredibly quickly with just a few clicks inside their installer.</p
46
- <p>Check out the <a href="https://www.digitalocean.com/community/articles/how-to-use-the-digitaloceaghost-application">Digital Ocean Droplet</a> to get started.</p
47
- <h3 id="rackspaceghostdeployment">Rackspace Ghost Deployment</h3
48
- <p><a href="http://rackspace.com">Rackspace</a> are one of the largest enterprise hosting companies ithe world, who offer rock-solid, performance web hosting. We worked with RackSpace to create a GhosImage which automatically configures and deploys a new Ghost install in a matter of moments.</p
49
- <p>Check out the <a href="http://developer.rackspace.com/blog/launch-ghost-with-rackspace-deploymenthtml">Rackspace Ghost Deployment</a> to get started.</p
50
- <h4 id="andmanymoretocome">and many more to come</h4
51
- <p>We've been working with many amazing people for the last months and it won't be long before you seGhost installers popping up for many, many more hosting companies out there.</p
52
- <h2 id="envatoannounced5000ghostthemingcompetition">Envato Announce $5,000 Ghost Theming Competitionh2
53
- <p>Our launch partners <a href="http://envato.com">Envato</a> today announced a <a href="http:themeforest.net/forums/thread/envatos-most-wanted-5000-for-ghost-themes/110967">$5,000 Most WanteCompetition</a> to seed their brand new Ghost Themes category on ThemeForest. </p
54
- <p>There will be a $5,000 bounty for Ghost Theme submissions:</p
55
- <p><strong>$3,500 for the first approved 20 Ghost Themes</strong></p
56
- <ul>
57
- <li>$250 for the each of the first 10 approved items</li>
58
- <li>$100 for the each of the following 10 approved items</li>
59
- </ul
60
- <p><strong>$1,500 of "Best Theme" bonus prizes</strong></p
61
- <ul>
62
- <li>$1,000 Bonus Prize for the best original Ghost Theme</li>
63
- <li>$500 Bonus Prize for the best Ghost Theme converted from an existing theme or site template</li>
64
- </ul
65
- <p>Additionally, the first 10 approved items will be part of a featured collection that will appear othe ThemeForest homepage for 60 days</p
66
- <p>The first 10 approved items will also be a part of a featured collection that will mentioned in thDecember and January Envato Newsletter</p
67
- <p>Each of the two bonus prize winning items will also be individually featured on the ThemeForeshomepage and the Ghost Marketplace for one week.</p
68
- <h2 id="032maintenancerelease">0.3.2 Maintenance Release</h2
69
- <p>Finally, today we released a maintenance update to Ghost to address some final issues prior to thpublic launch:</p
70
- <ul>
71
- <li><strong>[Fixed]</strong> Tag class handling in post<em>class and body</em>class</li>
72
- <li><strong>[Fixed]</strong> Potential XSS vulnerability in admin</li>
73
- <li><strong>[Fixed]</strong> Handlebars template files being served on front end</li>
74
- <li><strong>[Fixed]</strong> Incorrect mail example in config.example.js</li>
75
- <li><strong>[Fixed]</strong> Mail 'from' address is now configurable</li>
76
- <li><strong>[Fixed]</strong> Issues with adding images via URL</li>
77
- <li><strong>[Added]</strong> Support for sockets rather than ports</li>
78
- <li><strong>[Added]</strong> SECURITY.md for reporting security issues</li>
79
- </ul
80
- <p>This update is available now.</p
81
- <h2 id="thegithubrepository">The Github Repository</h2
82
- <p>For those of you who are developers, the Ghost Github repository is <a href="http://github.coTryGhost/Ghost">now available</a> for starring, forking, and pull requesting.</p
83
- <p>Thank you to everyone who has been involved with this project already, and here's to the years tcome.</p
84
- <p>John, Hannah and the whole Ghost Team.</p>
85
- </section>
86
- <footer class="post-footer">
87
- <section class="author">
88
- <h4>John O&#x27;Nolan</h4>
89
- <p>A designer, developer and entrepreneur. Spends his time travelling the world with a bag of kitesLikes journalism and publishing platforms.</p>
90
- </section>
91
- <section class="share">
92
- <h4>Share this post</h4>
93
- <a class="icon-twitter" href="http://twitter.com/share?text=Ghost Launches to The Public&url=http:blog.ghost.org/public-launch/"><span class="hidden">Twitter</span></a>
94
- <a class="icon-facebook" href="http://www.facebook.com/sharer.php?u=http://blog.ghost.org/publilaunch/"><span class="hidden">Facebook</span></a>
95
- <a class="icon-google-plus" href="#"><span class="hidden">Google+</span></a>
96
- </section>
97
- </footer>
98
- </article>
99
- </main>
100
-
101
- <footer class="site-footer">
102
- <a class="subscribe icon-feed" href="http://blog.ghost.org/rss/"><span class="tooltip">Subscribe!</span></a>
103
- <div class="inner">
104
- <section class="copyright">All content copyright <a href="/">The Ghost Blog</a> &copy; 2013 &bull; All rights reserved.</section>
105
- <section class="poweredby">Proudly published with <a class="icon-ghost" href="http://tryghost.org">Ghost</a></section>
106
- </div>
107
- </footer>
108
-
109
- <script src="/shared/vendor/jquery/jquery.js"></script>
110
- <script type="text/javascript" src="assets/js/index.js"></script>
111
- </body>
112
- </html>
@@ -1 +0,0 @@
1
- * text=auto
@@ -1,2 +0,0 @@
1
- # Include your project-specific ignores in this file
2
- # Read about how to use .gitignore: https://help.github.com/articles/ignoring-files