Skip to content

diacode/diacode-website

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Diacode website & blog

Middleman project which includes Diacode Website and Blog.

Blog

Composing an article

Creating a new blog post is as simple as writing the following on the command line:

middleman article <POST TITLE>

This will create a new file on source/blog/<POST DATE>-<POST TITLE>.html.markdown.

Attaching an image to an article

This is one of the ugly trade offs of choosing an static site as blog. In order to not have versioned content images within the repository we have to upload the pictures somewhere else. In our case that's Amazon S3.

Requirements

Before uploading an image you must have an .env file in the root of the project with following variables properly set:

  • AWS_ACCESS_KEY_ID
  • AWS_SECRET_ACCESS_KEY
  • AWS_REGION
  • S3_BUCKET

Instructions

You can upload an image to Amazon S3 by running the following command:

thor images:upload [PATH|URL]

It will output the URL of the asset so that you can include it the markdown document you desire.

Deploy

It's simple, just go inside the project's folder and run:

middleman deploy

About

Diacode Website and Blog based on Middleman

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published