empress-blog

Why Ember

Ember is a powerful Javascript Framework that is designed to maximise developer productivity. Ember also has one of the best plugin experiences in the industry, which means you can get a whole lot of functionality with just a simple npm install. If you want to check out the power of Ember's addon ecosystem you can visit Ember Observer which is made by Code All Day.

The design of empress-blog is a direct result of the work done to upgrade the Ember Guides into an Ember application. This system is specifically designed to make it easy for you to get started and if you have followed the instructions on the README you will know exactly how easy it is. If you are familiar with Ember you are probably used to the Zero Config experience of setting up new applications and adding addons 🎉

Editing Posts with empress-blog

empress-blog uses a language called Markdown to format text, and so does the original Ghost 🎉

The main difference between the hosted Ghost platform and empress-blog is that we just use files on disk, so you can either edit your Markdown files directly or you can use a desktop Markdown editor. It keeps things simple but it can sometimes feel like you are writing on pro-mode 😎

If you want to start a new post we recommend that you use the built in generator ember generate post "The next big thing - empress-blog". This will create a file for you and setup the start of the metadata.

For now, though, let's run you through some of the basics of editing Markdown. You can see this post directly on github if you want to see all the Markdown we've used. (don't forget to click the Raw button to see the source).

Formatting text

The most common shortcuts are of course, bold text, italic text, and hyperlinks. These generally make up the bulk of any document. You can also make headings using # at the start of the line (multiple # symbols for h2/h3/h4/etc)

With just a couple of extra characters here and there, you're well on your way to creating a beautifully formatted story.

Inserting images

Images in Markdown look just the same as links, except they're prefixed with an exclamation mark, like this:

![Image description](/path/to/image.jpg)

Computer

If you want to add images to your empress-blog app you can just drop them in the /public folder, which you should see if you are running this locally!

Important Note: empress-blog does not currently have automatic image resizing, so it's always a good idea to make sure your images aren't gigantic files before adding them to your project.

Making lists

Lists in HTML are a formatting nightmare, but in Markdown they become an absolute breeze with just a couple of characters and a bit of smart automation. For numbered lists, just write out the numbers. For bullet lists, just use * or - or +. Like this:

  1. Crack the eggs over a bowl
  2. Whisk them together
  3. Make an omelette

or

  • Remember to buy milk
  • Feed the cat
  • Come up with idea for next story

Adding quotes

When you want to pull out a particularly good excerpt in the middle of a piece, you can use > at the beginning of a paragraph to turn it into a Blockquote. You might've seen this formatting before in email clients.

A well placed quote guides a reader through a story, helping them to understand the most important points being made

All themes handles blockquotes slightly differently. Sometimes they'll look better kept shorter, while other times you can quote fairly hefty amounts of text and get away with it. Generally, the safest option is to use blockquotes sparingly.

Dividing things up

If you're writing a piece in parts and you just feel like you need to divide a couple of sections distinctly from each other, a horizontal rule might be just what you need. Dropping --- on a new line will create a sleek divider, anywhere you want it.


This should get you going with the vast majority of what you need to do in the editor, but if you're still curious about more advanced tips then check out the Advanced Markdown Guide - or if you'd rather learn about how tags work, we've got a overview of how to use tags.

Organising your content with tags

Organising your content with tags

empress-blog has a single, powerful organisational taxonomy, called tags.

It doesn't matter whether you want to call them categories, tags, boxes, or anything else. You can think of tags a lot like Gmail labels. By tagging posts with one or more keyword, you can organise articles into buckets of related content.

Basic tagging

When you write a post, you can assign tags to help differentiate between categories of content. For example, you might tag some posts with News and other posts with Cycling, which would create two distinct categories of content listed on /tag/news/ and /tag/cycling/, respectively.

If you tag a post with both News and Cycling - then it appears in both sections.

Tag archives are like dedicated home-pages for each category of content that you have. They have their own pages and hopefully soon will support their own cover images and meta data.

The primary tag

At the top of every post there is a tiny bit of YAML, and the tags key is an array of tags. The first tag in the list is always given the most importance, and some themes will only display the primary tag (the first tag in the list) by default. So you can add the most important tag which you want to show up in your theme, but also add a bunch of related tags which are less important.

tags:
  - news
  - cycling
  - bart-stevens
  - extreme-sports

In this example, News is the primary tag which will be displayed by the theme, but the post will also still receive all the other tags, and show up in their respective archives.

Welcome to empress-blog

Welcome to empress-blog

Hey! Welcome to empress-blog, it's great to have you :)

We know that first impressions are important, so we've populated your new site with some initial Getting Started posts that will help you get familiar with everything in no time. This is the first one!

There are a few things that you should know up-front:

  1. empress-blog is designed to be a static site version of the amazing Ghost blogging platform

  2. empress-blog is designed for developers who know how to deploy a static site (folder of html files and assets) using something like S3 or even just on NGINX.

  3. If you are slightly less tech savvy or if you want to manage your blog outside of just a set of files in a git repo we highly recommend signing up for Ghost

Quick Start

It will ask you if you want to update the index.html file and you should say yes 👍

If you want to see the blog system running on your local machine just run npm start and you will be able to navigate to http://localhost:4200 to see the blog in action.


The main thing you'll want to read about next is probably: editing files with empress-blog.

Once you're done reading, you can simply delete the default Ghost user from your team to remove all of these introductory posts!