From 39d9813c02690d9f00b4682dcbaba11991794012 Mon Sep 17 00:00:00 2001 From: Daniel Barber Date: Sat, 12 Oct 2019 17:25:09 -0400 Subject: [PATCH] Simplify config --- config.toml | 17 +++++++++++++++++ config/_default/config.toml | 2 -- config/_default/params.toml | 2 -- config/_default/permalinks.toml | 1 - config/development/config.toml | 1 - config/production/config.toml | 1 - layouts/shortcodes/img.html | 8 ++++---- 7 files changed, 21 insertions(+), 11 deletions(-) create mode 100644 config.toml delete mode 100644 config/_default/config.toml delete mode 100644 config/_default/params.toml delete mode 100644 config/_default/permalinks.toml delete mode 100644 config/development/config.toml delete mode 100644 config/production/config.toml diff --git a/config.toml b/config.toml new file mode 100644 index 00000000..b7519416 --- /dev/null +++ b/config.toml @@ -0,0 +1,17 @@ +baseURL = "https://next.danbarber.me/" +languageCode = "en-us" +title = "Me, Dan Barber" +timeout = 30000 + +[params] +AuthorName = "Daniel Barber" +GitHubUser = "danbee" + +[permalinks] +blog = "/:year/:month/:day/:title" +photos = "/:year/:month/:day/:title" + +[imaging] +resampleFilter = "lanczos" +quality = 75 +anchor = "smart" diff --git a/config/_default/config.toml b/config/_default/config.toml deleted file mode 100644 index eb7b1344..00000000 --- a/config/_default/config.toml +++ /dev/null @@ -1,2 +0,0 @@ -languageCode = "en-us" -title = "DanBarber.me" diff --git a/config/_default/params.toml b/config/_default/params.toml deleted file mode 100644 index fd30cbe2..00000000 --- a/config/_default/params.toml +++ /dev/null @@ -1,2 +0,0 @@ -AuthorName = "Daniel Barber" -GitHubUser = "danbee" diff --git a/config/_default/permalinks.toml b/config/_default/permalinks.toml deleted file mode 100644 index 18c11bd0..00000000 --- a/config/_default/permalinks.toml +++ /dev/null @@ -1 +0,0 @@ -blog = "/:year/:month/:day/:title" diff --git a/config/development/config.toml b/config/development/config.toml deleted file mode 100644 index eb661ae0..00000000 --- a/config/development/config.toml +++ /dev/null @@ -1 +0,0 @@ -baseURL = "http://danbarber.localhost:1313" diff --git a/config/production/config.toml b/config/production/config.toml deleted file mode 100644 index 3d512e60..00000000 --- a/config/production/config.toml +++ /dev/null @@ -1 +0,0 @@ -baseURL = "https://next.danbarber.me/" diff --git a/layouts/shortcodes/img.html b/layouts/shortcodes/img.html index 558e3690..ef6d5c0c 100644 --- a/layouts/shortcodes/img.html +++ b/layouts/shortcodes/img.html @@ -3,10 +3,10 @@ {{/* set image sizes, these are hardcoded for now, x dictates that images are resized to this width */}} -{{ $tinyw := default "408x Lanczos" }} -{{ $smallw := default "816x Lanczos" }} -{{ $mediumw := default "1224x Lanczos" }} -{{ $largew := default "1632x Lanczos" }} +{{ $tinyw := default "408x" }} +{{ $smallw := default "816x" }} +{{ $mediumw := default "1224x" }} +{{ $largew := default "1632x" }} {{/* resize the src image to the given sizes */}}