├── .meteor ├── .gitignore ├── .id ├── packages ├── platforms ├── release └── versions ├── README.md ├── client ├── blog.css ├── blog.html ├── blog.js └── main.html ├── packages └── .gitignore ├── posts ├── does_meteor_scale.html ├── introducing_fast_render.html └── metadata.js └── router.js /.meteor/.gitignore: -------------------------------------------------------------------------------- 1 | local 2 | -------------------------------------------------------------------------------- /.meteor/.id: -------------------------------------------------------------------------------- 1 | # This file contains a token that is unique to your project. 2 | # Check it into your repository along with the rest of this directory. 3 | # It can be used for purposes such as: 4 | # - ensuring you don't accidentally deploy one app on top of another 5 | # - providing package authors with aggregated statistics 6 | 7 | 1st7cwd1mc2z0y5w7gk3 8 | -------------------------------------------------------------------------------- /.meteor/packages: -------------------------------------------------------------------------------- 1 | # Meteor packages used by this project, one per line. 2 | # 3 | # 'meteor add' and 'meteor remove' will edit this file for you, 4 | # but you can also edit it by hand. 5 | 6 | meteor-platform 7 | preserve-inputs 8 | showdown 9 | twbs:bootstrap 10 | iron:router 11 | -------------------------------------------------------------------------------- /.meteor/platforms: -------------------------------------------------------------------------------- 1 | browser 2 | server 3 | -------------------------------------------------------------------------------- /.meteor/release: -------------------------------------------------------------------------------- 1 | 1.0.2 2 | -------------------------------------------------------------------------------- /.meteor/versions: -------------------------------------------------------------------------------- 1 | application-configuration@1.0.4 2 | autoupdate@1.1.4 3 | base64@1.0.2 4 | binary-heap@1.0.2 5 | blaze@2.0.4 6 | blaze-tools@1.0.2 7 | boilerplate-generator@1.0.2 8 | callback-hook@1.0.2 9 | check@1.0.3 10 | ddp@1.0.13 11 | deps@1.0.6 12 | ejson@1.0.5 13 | fastclick@1.0.2 14 | follower-livedata@1.0.3 15 | geojson-utils@1.0.2 16 | html-tools@1.0.3 17 | htmljs@1.0.3 18 | http@1.0.9 19 | id-map@1.0.2 20 | iron:controller@1.0.7 21 | iron:core@1.0.7 22 | iron:dynamic-template@1.0.7 23 | iron:layout@1.0.7 24 | iron:location@1.0.7 25 | iron:middleware-stack@1.0.7 26 | iron:router@1.0.7 27 | iron:url@1.0.7 28 | jquery@1.0.2 29 | json@1.0.2 30 | launch-screen@1.0.1 31 | livedata@1.0.12 32 | logging@1.0.6 33 | markdown@1.0.3 34 | meteor@1.1.4 35 | meteor-platform@1.2.1 36 | minifiers@1.1.3 37 | minimongo@1.0.6 38 | mobile-status-bar@1.0.2 39 | mongo@1.0.10 40 | observe-sequence@1.0.4 41 | ordered-dict@1.0.2 42 | preserve-inputs@1.0.2 43 | random@1.0.2 44 | reactive-dict@1.0.5 45 | reactive-var@1.0.4 46 | reload@1.1.2 47 | retry@1.0.2 48 | routepolicy@1.0.3 49 | session@1.0.5 50 | showdown@1.0.3 51 | spacebars@1.0.4 52 | spacebars-compiler@1.0.4 53 | templating@1.0.10 54 | tracker@1.0.4 55 | twbs:bootstrap@3.3.2 56 | ui@1.0.5 57 | underscore@1.0.2 58 | url@1.0.3 59 | webapp@1.1.5 60 | webapp-hashing@1.0.2 61 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | meteor-static-blog 2 | ================== 3 | 4 | Static Blog Made with Meteor 5 | 6 | * Demo: http://static-blog.meteor.com/ 7 | * Article: [Building Static Websites with Meteor](http://meteorhacks.com/building-static-websites-with-meteor.html) 8 | 9 | ![Building Static Websites with Meteor](https://i.cloudup.com/jpAwF9ua6J.png) 10 | -------------------------------------------------------------------------------- /client/blog.css: -------------------------------------------------------------------------------- 1 | body, div, a, li, ul { 2 | font-family: "Source Sans Pro"; 3 | font-size: 20px; 4 | -webkit-font-smoothing: antialiased; 5 | letter-spacing: 0.2px; 6 | color: #555; 7 | } 8 | 9 | body { 10 | margin: 30px 30px; 11 | } 12 | 13 | h1 { 14 | font-weight: 900; 15 | margin-bottom: 0px; 16 | } 17 | 18 | #navbar { 19 | margin-bottom: 30px; 20 | } 21 | 22 | #navbar a { 23 | color: rgb(255, 58, 58); 24 | } 25 | 26 | h2, h3, h4 { 27 | font-weight: 600; 28 | } 29 | 30 | #blogHome a { 31 | font-size: 22px; 32 | } -------------------------------------------------------------------------------- /client/blog.html: -------------------------------------------------------------------------------- 1 | 7 | 8 | -------------------------------------------------------------------------------- /client/blog.js: -------------------------------------------------------------------------------- 1 | if(Meteor.isClient) { 2 | Template.blog.helpers({ 3 | getTemplateName: function() { 4 | var slug = Router.current().params.slug; 5 | return slug; 6 | } 7 | }); 8 | 9 | Template.blogHome.helpers({ 10 | posts: function() { 11 | return PostList; 12 | } 13 | }); 14 | } 15 | -------------------------------------------------------------------------------- /client/main.html: -------------------------------------------------------------------------------- 1 | 2 | Meteor Static Blog 3 | 4 | 5 | 6 | 7 | 8 |
9 |
10 |
11 | {{renderRouter}} 12 |
13 |
14 |
15 | Fork me on GitHub 16 | 17 | -------------------------------------------------------------------------------- /packages/.gitignore: -------------------------------------------------------------------------------- 1 | /iron-router 2 | /bootstrap-3 3 | -------------------------------------------------------------------------------- /posts/does_meteor_scale.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /posts/introducing_fast_render.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /posts/metadata.js: -------------------------------------------------------------------------------- 1 | PostList = [ 2 | {title: 'Does Meteor Scale?', template: "does_meteor_scale"}, 3 | {title: 'Introducing Fast Render', template: "introducing_fast_render"}, 4 | ]; -------------------------------------------------------------------------------- /router.js: -------------------------------------------------------------------------------- 1 | Router.route('/', { 2 | template: "blogHome" 3 | }); 4 | 5 | Router.route('/blog/:slug', { 6 | template: 'blog' 7 | }); --------------------------------------------------------------------------------