• This repository has been archived on 14/Jun/2023
  • Stars
    star
    109
  • Rank 319,077 (Top 7 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 11 years ago
  • Updated over 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Simple blogging with EmberJS and GitHub

Empress

Empress is a bootstrapped blogging template that leverages EmberJS and GitHub. Empress lets you author your blog posts in Markdown, and uses git (and some Ruby hackery) to generate your blog on the fly. Empress leverages Twitter Bootstrap to allow for easy styling.

Empress

Quick Start

It is easy to start a local instance of Empress:

git clone https://github.com/hodgesmr/Empress.git ~/Empress
~/Empress/start.rb

If you want to host your Empress blog on GitHub, the following section will walk you through that.

Empress on GitHub

This section will walk you through setting up Empress to be your hosted GitHub user page. For more details on setting up GitHub pages, see GitHub's documentation.

First, create a new repository on GitHub called YOURNAME.github.io (where YOURNAME is your GitHub username).

Next, clone Empress (again, substitute YOURNAME as appropriate):

git clone https://github.com/hodgesmr/Empress.git YOURNAME.github.io

And edit your Git config file to point to your origin URL:

cd YOURNAME.github.io
git remote rm origin
git remote add origin https://github.com/YOURNAME/YOURNAME.github.io.git

Optionally, you can reference the original Empress project as an upstream source:

git remote add upstream https://github.com/hodgesmr/Empress.git

Finally, push:

git push -u origin master

Your Empress blog should now be live at http://YOURNAME.github.io

At this point, you will be able to push/pull from your GitHub repository. If you chose to reference the Empress project as an upstream, you can bring down project changes:

git fetch upstream
git merge upstream/master

Authoring posts

Use Markdown to author your blog posts. All posts should be placed in /content/posts/.

The Empress build process works by referencing files that have a commit in your git tree. While authoring a post (or changing any file), git commit as usual to track your changes. Once you are ready to publish your blog, add, commit, and then run /build.rb. Important: the build will fail if you have untracked files in /content/posts/. You can see your changes locally by running /start.rb and pointing your browser to localhost, before pushing.

Conventions

A post's slug is determined by its filename. All post files should be named accordingly: My-Blog-Post.md. This tells Empress not only the resource location for your post, but also that the post slug will be My-Blog-Post.

The post's title is defined by the first line in its Markdown file. This should be denoted using Markdown's H1 atx syntax. So, the first line of your post file should be #My Blog Post.

Other files

By default, Empress references two other files when rendering its template: /content/about.md and /content/externalLinks.json. Update these as necessary. Also, update your blog's title in app.js.

A Matt Hodges project

This project is maintained by @hodgesmr

More Repositories

1

mastodon_digest

A Python script that aggregates recent popular posts from your Mastodon timeline
Python
416
star
2

FindGitHubEmail

Bash script that finds a GitHub user's email address based on username
Shell
192
star
3

CoderNews

A simple reader for Hacker News and Reddit Programming
Objective-C
18
star
4

fs2comma

The FOIA'd C++ source code for FEC's fs2comma.exe tool, found at https://www.fec.gov/help-candidates-and-committees/filing-reports/data-conversion-tools/
C++
14
star
5

election_map_tutorial

Jupyter Notebook tutorial demonstrating how to map OpenElections Data
Jupyter Notebook
13
star
6

neural_network_from_scratch

A Jupyter notebook building and training a Neural Network from scratch with NumPy
Jupyter Notebook
8
star
7

django-ohio-voter-file

Load the Ohio voter file into PostgreSQL with the Django ORM
Python
7
star
8

LangChain-Data-Demo

Jupyter Notebook that demonstrates LLM-driven voter file data engineering, using LangChain to write SQL and Python
Jupyter Notebook
7
star
9

ohio-voter-analysis

Infer political party support from voting history
Python
6
star
10

south_carolina_2018_ballot_image_json

JSON representations of the South Carolina Vote Image Log audit files for the 2018 Statewide General Election.
5
star
11

feditest.matthodges.com

3
star
12

2022-campaign-tech-keynote-talent

PDF of my morning keynote on the importance of retaining tech talent in political work
3
star
13

Earned-Electoral-Allocation

How would the Electoral College change if voters were allocated by voter turnout?
3
star
14

MPMediaItem-Accessors

Category on MPMediaItem that exposes convenience read properties
Objective-C
3
star
15

2016_counties

Interactive maps showing Trump/Clinton vote shares, by county
HTML
2
star
16

fs2comma-linux-patch

a patched version of fs2comma
C++
1
star
17

docker-wrk2

It's wrk2 as a Docker image
Dockerfile
1
star
18

2020_map

Generates a custom 2020 electoral map as a PNG for printing
Python
1
star
19

gosh

An extremely simple shell written in Go
Go
1
star
20

python-canonical-huffman-code

A python implementation of a Canonical Huffman code files compressor and decompressor
Python
1
star
21

ohio-2016-primary-d-to-r

How many Ohio Democratic voters switched to Republican in the 2016 presidential primaries?
Python
1
star