Merge pull request #1 from dtomlinson91/develop

Develop
This commit is contained in:
dtomlinson91
2020-07-24 03:00:08 +01:00
committed by GitHub
10 changed files with 7355 additions and 3 deletions

13
.circleci/config.yml Normal file
View File

@@ -0,0 +1,13 @@
# Use the latest 2.1 version of CircleCI pipeline process engine. See: https://circleci.com/docs/2.0/configuration-reference
version: 2.1
# Use a package of configuration called an orb.
orbs:
# Declare a dependency on the welcome-orb
welcome: circleci/welcome-orb@0.4.1
# Orchestrate or schedule a set of jobs
workflows:
# Name the workflow "welcome"
welcome:
# Run the welcome/run job in its own container
jobs:
- welcome/run

View File

View File

@@ -0,0 +1,21 @@
---
title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }}
images:
- "images/banner.svg"
authors:
- "Daniel Tomlinson"
tags:
- "tag1"
series:
- "series"
draft: true
---
introductionary text
<!--more-->
## Header
Content

17
blog/aws-commands.md Normal file
View File

@@ -0,0 +1,17 @@
# AWS Commands
## S3
### Sync contents of folder to bucket
`aws s3 sync . s3://prod-panaetius-blog-origin --delete --profile admin`
## Cloudfront
### Create invalidation
`aws cloudfront create-invalidation --distribution-id E2IHXIMPI3MZ2X --paths "/*" --profile admin`
### Get invalidation status
`aws cloudfront get-invalidation --distribution-id E2IHXIMPI3MZ2X --id I2IYTT15CTHJU0 --profile admin`

View File

@@ -3,5 +3,4 @@ title: "List of posts"
description: "A list of all posts in chronological order." description: "A list of all posts in chronological order."
date: "2020-05-04T02:14:50+01:00" date: "2020-05-04T02:14:50+01:00"
images: ["images/first_post.svg"] images: ["images/first_post.svg"]
draft: true
--- ---

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 3.9 MiB

View File

@@ -0,0 +1,26 @@
---
title: "Test Post"
date: 2020-07-23T00:16:22+01:00
images:
- "images/banner.svg"
authors:
- "Daniel Tomlinson"
tags:
- "tag1"
series:
- "series"
draft:
- false
---
CF Lambda@Edge only need the lambda_function_association setting on the CF instance for the default origin.
<!--more-->
## Header
Content
### Second Header
Hello 💁🏻‍♀️

1
blog/create-new-post.md Normal file
View File

@@ -0,0 +1 @@
hugo new --kind post post/postname

View File

@@ -27,7 +27,8 @@ async function buildSearch(cb) {
// Function to build the Hugo project // Function to build the Hugo project
async function buildHugo(cb) { async function buildHugo(cb) {
await execFile("hugo", ["-D", "--minify"]); // await execFile("hugo", ["-D", "--minify"]);
await execFile("hugo", ["--minify"]);
} }
// Function to minify images // Function to minify images