Skip to content

Commit

Permalink
move static images, edit post and configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Hessu committed Jan 31, 2020
1 parent d754881 commit 80b1690
Show file tree
Hide file tree
Showing 6 changed files with 69 additions and 33 deletions.
57 changes: 57 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Created by https://www.gitignore.io/api/hugo,linux,macos
# Edit at https://www.gitignore.io/?templates=hugo,linux,macos

### Hugo ###
# Generated files by hugo
/public/
/resources/_gen/

# Executable may be added to repository
hugo.exe
hugo.darwin
hugo.linux

### Linux ###
*~

# temporary files which can be created if a process still has a handle open of a deleted file
.fuse_hidden*

# KDE directory preferences
.directory

# Linux trash folder which might appear on any partition or disk
.Trash-*

# .nfs files are created when an open file is removed but is still being accessed
.nfs*

### macOS ###
# General
.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon

# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

# End of https://www.gitignore.io/api/hugo,linux,macos
37 changes: 5 additions & 32 deletions config.toml
Original file line number Diff line number Diff line change
@@ -1,51 +1,24 @@
baseURL = "http:https://blog.gonzague.pagin.s3-website.eu-west-3.amazonaws.com/"
baseURL = "https:https://d1t6kr0yfdny60.cloudfront.net/"
languageCode = "fr-FR"
title = "My New Hugo Site"
theme = "hyde"

[Menus]
main = [
{Name = "Github", URL = "https://github.com/username/"},
{Name = "LinkedIn", URL = "https://www.linkedin.com/in/username/"}
{Name = "Github", URL = "https://github.com/hessu1337/"},
{Name = "LinkedIn", URL = "https://www.linkedin.com/in/gonzague-pagin-609834a7/"}
]

[params]
description = "Your custom description"
description = "My personal blog where I present my work and stuff"

[deployment]
# By default, files are uploaded in an arbitrary order.
# Files that match the regular expressions in the "Order" list
# will be uploaded first, in the listed order.
order = [".jpg$", ".gif$"]


[[deployment.targets]]
# An arbitrary name for this target.
name = "mydeployment"
# The Go Cloud Development Kit URL to deploy to. Examples:
# GCS; see https://gocloud.dev/howto/blob/#gcs
# URL = "gs:https://<Bucket Name>"

# S3; see https://gocloud.dev/howto/blob/#s3
# For S3-compatible endpoints, see https://gocloud.dev/howto/blob/#s3-compatible
name = "s3deployment"
URL = "s3:https://blog.gonzague.pagin?region=eu-west-3"

# Azure Blob Storage; see https://gocloud.dev/howto/blob/#azure
# URL = "azblob:https://$web"

# You can use a "prefix=" query parameter to target a subfolder of the bucket:
# URL = "gs:https://<Bucket Name>?prefix=a/subfolder/"

# If you are using a CloudFront CDN, deploy will invalidate the cache as needed.
# cloudFrontDistributionID = <ID>


# ... add more [[deployment.targets]] sections ...


# [[deployment.matchers]] configure behavior for files that match the Pattern.
# Samples:

[[deployment.matchers]]
# Cache static assets for 1 year.
pattern = "^.+\\.(js|css|svg|ttf)$"
Expand Down
8 changes: 7 additions & 1 deletion content/posts/how-this-blog-is-made.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,10 @@ date: 2020-01-30T17:30:58+01:00
draft: false
---

I wanted something simple, using github and aws, a simple workflow : write then push
I wanted something simple, using github and aws, a simple workflow : write then push
For the experience and knowledge

Github for code versionning and webhook
Codebuild for the build environnement and Codepipeline as CI/CD tool
S3 as deployment target and static hosting
Cloudfront for CDN and HTTPS terminaison
Binary file removed static/[email protected]
Binary file not shown.
Binary file removed static/[email protected]
Binary file not shown.
Binary file removed static/[email protected]
Binary file not shown.

0 comments on commit 80b1690

Please sign in to comment.