diff --git a/.gitignore b/.gitignore index dd3d655..521b971 100644 --- a/.gitignore +++ b/.gitignore @@ -22,3 +22,5 @@ blog/static test/ .DS_Store +# terraform +.terraform/ diff --git a/.vscode/settings.json b/.vscode/settings.json index 50e9341..ab8fe81 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,14 +1,17 @@ { - "editor.defaultFormatter": "akmittal.hugofy", - "editor.formatOnPaste": false, - "[html]": { - "editor.defaultFormatter": "HookyQR.beautify" - }, - "[handlebars]": { - }, - "beautify.config": { - "indent_handlebars": false - }, - "twig-language-2.endComma": "always", + "editor.formatOnPaste": false, + "[html]": { + "editor.defaultFormatter": "HookyQR.beautify" + }, + "[handlebars]": {}, + "beautify.config": { + "indent_handlebars": false + }, + "twig-language-2.endComma": "always", + "[scss]": { + "editor.defaultFormatter": "HookyQR.beautify" + }, + "[tfvars]": { + "editor.defaultFormatter": "hashicorp.terraform" + } } - diff --git a/blog/config.toml b/blog/config.toml index 32a4c67..382010d 100644 --- a/blog/config.toml +++ b/blog/config.toml @@ -2,13 +2,16 @@ baseURL = "http://127.0.0.1:6060" title = "panaetius.io" # theme = "panaetius-chunky-theme" theme = ["hugo-notice-admonition", "panaetius-theme"] -paginate = 2 +paginate = 3 +summaryLength = 2 languageCode = "en" DefaultContentLanguage = "en" enableInlineShortcodes = true footnoteReturnLinkContents = "^" description = "Tech blog showcasing Python, Machine-Learning, Vue, Homelab and other technologies to try at home." +[permalinks] + post = "post/:year/:month/:slug/" [languages] @@ -33,17 +36,23 @@ url = "/about/" weight = 2 [[menu.main]] -identifier = "tags" -name = "Tags" -url = "/tags/" +identifier = "series" +name = "Series" +url = "/series/" weight = 3 [[menu.main]] -identifier = "search" -name = "Search" -url = "/search/" +identifier = "tags" +name = "Tags" +url = "/tags/" weight = 4 +# [[menu.main]] +# identifier = "search" +# name = "Search" +# url = "/search/" +# weight = 4 + [taxonomies] category = "categories" tag = "tags" diff --git a/blog/content/post/first_post copy/images/banner.svg b/blog/content/post/first_post copy/images/banner.svg new file mode 100644 index 0000000..47dc95f --- /dev/null +++ b/blog/content/post/first_post copy/images/banner.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/blog/content/post/first_post copy/index.md b/blog/content/post/first_post copy/index.md new file mode 100644 index 0000000..308c2dc --- /dev/null +++ b/blog/content/post/first_post copy/index.md @@ -0,0 +1,49 @@ +--- +title: "First Post Copy" +description: "The first post testing Hugo out for its markdown features and commento integration." +date: "2020-05-04T02:14:50+01:00" +images: ["images/banner.svg"] +draft: true +authors: ["Daniel Tomlinson"] +tags: ["Introduction", "another"] +--- + +Hugo ships with several [Built-in Shortcodes](https://gohugo.io/content-management/shortcodes/#use-hugo-s-built-in-shortcodes) for rich content, along with a [Privacy Config](https://gohugo.io/about/hugo-and-gdpr/) and a set of Simple Shortcodes that enable static and no-JS versions of various social media embeds. + +## Test code + +```python +import flask + +def flask(): + something = flask.something() + return something +``` + +## Instagram Simple Shortcode + +{{< instagram_simple BGvuInzyFAe hidecaption >}} + +
+ +--- + +## YouTube Privacy Enhanced Shortcode + +{{< youtube ZJthWmvUzzc >}} + +
+ +--- + +## Twitter Simple Shortcode + +{{< twitter_simple 1085870671291310081 >}} + +
+ +--- + +## Vimeo Simple Shortcode + +{{< vimeo_simple 48912912 >}} diff --git a/blog/content/post/first_post/index.md b/blog/content/post/first_post/index.md index 8f68285..c0d8913 100644 --- a/blog/content/post/first_post/index.md +++ b/blog/content/post/first_post/index.md @@ -8,9 +8,10 @@ authors: ["Daniel Tomlinson"] tags: ["Introduction", "another"] --- +Hugo ships with several [Built-in Shortcodes](https://gohugo.io/content-management/shortcodes/#use-hugo-s-built-in-shortcodes) for rich content, along with a [Privacy Config](https://gohugo.io/about/hugo-and-gdpr/) and a set of Simple Shortcodes that enable static and no-JS versions of various social media embeds. Hugo ships with several [Built-in Shortcodes](https://gohugo.io/content-management/shortcodes/#use-hugo-s-built-in-shortcodes) for rich content, along with a [Privacy Config](https://gohugo.io/about/hugo-and-gdpr/) and a set of Simple Shortcodes that enable static and no-JS versions of various social media embeds. -## + ## Test code diff --git a/blog/content/post/second_post copy 2/images/banner.svg b/blog/content/post/second_post copy 2/images/banner.svg new file mode 100644 index 0000000..e1ada18 --- /dev/null +++ b/blog/content/post/second_post copy 2/images/banner.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/blog/content/post/second_post copy 2/index.md b/blog/content/post/second_post copy 2/index.md new file mode 100644 index 0000000..78a8bae --- /dev/null +++ b/blog/content/post/second_post copy 2/index.md @@ -0,0 +1,91 @@ +--- +title: "Really long title Second Post Copy for layout scaling with flexbox using css 2." +date: "2020-05-05T02:14:50+01:00" +images: ["images/banner.svg"] +draft: true +authors: + - "Daniel Tomlinson" + - "New Authors" +tags: ["Introduction", "test", "another", "tagging", "hugo", "newz"] +--- + +Hugo ships with several [Built-in Shortcodes](https://gohugo.io/content-management/shortcodes/#use-hugo-s-built-in-shortcodes) for rich content, along with a [Privacy Config](https://gohugo.io/about/hugo-and-gdpr/) and a set of Simple Shortcodes that enable static and no-JS versions of various social media embeds. + +## + +## Test code + +```python +import flask + +def flask(): + something = flask.something() + return something +``` + +## Instagram Simple Shortcode + +{{< instagram_simple BGvuInzyFAe hidecaption >}} + +
+ +--- + +## YouTube Privacy Enhanced Shortcode + +{{< youtube ZJthWmvUzzc >}} + +
+ +--- + +## Twitter Simple Shortcode + +{{< twitter_simple 1085870671291310081 >}} + +
+ +--- + +## Vimeo Simple Shortcode + +{{< vimeo_simple 48912912 >}} + +--- + +## Test img shortcode + +{{< img "images/banner.svg*" >}} + +### Test indent + +something + +## Test table + +Does Hugo put the class of the table as `content table`? If so do we need to add the bootstrap `table` class?. + +Hugo adds no css to the table. In order to style it you should select the `` element in the `.content` class, and add the `.table` class to it. + +| Name | Job | +| ------ | -------- | +| Daniel | Capacity | +| Dale | Capacity | + +## Admonitions + +{{< notice note >}} +Note Admonition +{{< /notice >}} + +{{< notice tip >}} +Tip Admonition +{{< /notice >}} + +{{< notice info >}} +Infomation Admonition +{{< /notice >}} + +{{< notice warning >}} +This is a warning notice. Be warned! `code` +{{< /notice >}} diff --git a/blog/content/post/second_post copy/images/banner.svg b/blog/content/post/second_post copy/images/banner.svg new file mode 100644 index 0000000..267d8ce --- /dev/null +++ b/blog/content/post/second_post copy/images/banner.svg @@ -0,0 +1,341 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/blog/content/post/second_post copy/index.md b/blog/content/post/second_post copy/index.md new file mode 100644 index 0000000..846ff1c --- /dev/null +++ b/blog/content/post/second_post copy/index.md @@ -0,0 +1,104 @@ +--- +title: "Really long title Second Post Copy for layout scaling with flexbox using css." +date: "2020-05-06T02:14:51+01:00" +images: + - "images/banner.svg" +draft: true +authors: + - "Daniel Tomlinson" + - "New Authors" +tags: + - "Introduction" + - "test" + - "another" + - "tagging" + - "hugo" + - "newz" +series: + - "Test series of articles" +--- + +Hugo ships with several [Built-in Shortcodes](https://gohugo.io/content-management/shortcodes/#use-hugo-s-built-in-shortcodes) for rich content, along with a [Privacy Config](https://gohugo.io/about/hugo-and-gdpr/) and a set of Simple Shortcodes that enable static and no-JS versions of various social media embeds. and it goes on for more than one line. + +Hugo ships with several [Built-in Shortcodes](https://gohugo.io/content-management/shortcodes/#use-hugo-s-built-in-shortcodes) for rich content, along with a [Privacy Config](https://gohugo.io/about/hugo-and-gdpr/) and a set of Simple Shortcodes that enable static and no-JS versions of various social media embeds. + +Hugo ships with several [Built-in Shortcodes](https://gohugo.io/content-management/shortcodes/#use-hugo-s-built-in-shortcodes) for rich content, along with a [Privacy Config](https://gohugo.io/about/hugo-and-gdpr/) and a set of Simple Shortcodes that enable static and no-JS versions of various social media embeds. + + + +## Test code + +```python +import flask + +def flask(): + something = flask.something() + return something +``` + +## Instagram Simple Shortcode + +{{< instagram_simple BGvuInzyFAe hidecaption >}} + +
+ +--- + +## YouTube Privacy Enhanced Shortcode + +{{< youtube ZJthWmvUzzc >}} + +
+ +--- + +## Twitter Simple Shortcode + +{{< twitter_simple 1085870671291310081 >}} + +
+ +--- + +## Vimeo Simple Shortcode + +{{< vimeo_simple 48912912 >}} + +--- + +## Test img shortcode + +{{< img "images/banner.svg*" >}} + +### Test indent + +something + +## Test table + +Does Hugo put the class of the table as `content table`? If so do we need to add the bootstrap `table` class?. + +Hugo adds no css to the table. In order to style it you should select the `
` element in the `.content` class, and add the `.table` class to it. + +| Name | Job | +| ------ | -------- | +| Daniel | Capacity | +| Dale | Capacity | + +## Admonitions + +{{< notice note >}} +Note Admonition +{{< /notice >}} + +{{< notice tip >}} +Tip Admonition +{{< /notice >}} + +{{< notice info >}} +Infomation Admonition +{{< /notice >}} + +{{< notice warning >}} +This is a warning notice. Be warned! `code` +{{< /notice >}} diff --git a/blog/content/post/second_post/images/banner.svg b/blog/content/post/second_post/images/banner.svg index e1ada18..267d8ce 100644 --- a/blog/content/post/second_post/images/banner.svg +++ b/blog/content/post/second_post/images/banner.svg @@ -1 +1,341 @@ - \ No newline at end of file + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/blog/content/post/second_post/index.md b/blog/content/post/second_post/index.md index 45ba436..a8bd260 100644 --- a/blog/content/post/second_post/index.md +++ b/blog/content/post/second_post/index.md @@ -1,17 +1,30 @@ --- title: "Second Post" -date: "2020-05-05T02:14:50+01:00" -images: ["images/banner.svg"] +date: "2020-05-06T02:14:49+01:00" +images: + - "images/banner.svg" draft: true authors: - "Daniel Tomlinson" - "New Authors" -tags: ["Introduction", "test", "another", "tagging", "hugo", "newz"] +tags: + - "Introduction" + - "test" + - "another" + - "tagging" + - "hugo" + - "newz" +series: + - "Test series of articles" --- Hugo ships with several [Built-in Shortcodes](https://gohugo.io/content-management/shortcodes/#use-hugo-s-built-in-shortcodes) for rich content, along with a [Privacy Config](https://gohugo.io/about/hugo-and-gdpr/) and a set of Simple Shortcodes that enable static and no-JS versions of various social media embeds. -## +{{< notice series >}} +Part 1 of the [Test series of articles](/series/test-series-of-articles/) series +{{< /notice >}} + + ## Test code @@ -89,3 +102,4 @@ Infomation Admonition {{< notice warning >}} This is a warning notice. Be warned! `code` {{< /notice >}} + diff --git a/blog/content/series/test-series-of-articles/_index.md b/blog/content/series/test-series-of-articles/_index.md new file mode 100644 index 0000000..eaa45cd --- /dev/null +++ b/blog/content/series/test-series-of-articles/_index.md @@ -0,0 +1,6 @@ +--- +Title: "Test series of articles" +Description: "some test descriptions" +--- + +Some text heres. diff --git a/blog/gulpfile.js/index.js b/blog/gulpfile.js/index.js index 720d17d..44e43c4 100644 --- a/blog/gulpfile.js/index.js +++ b/blog/gulpfile.js/index.js @@ -34,12 +34,12 @@ async function buildHugo(cb) { function minifyImages(cb) { gulp .src([ - `${currentDir}/content/**/*.png`, - `${currentDir}/content/**/*.svg`, - `${currentDir}/static/**/*.png`, - `${currentDir}/static/**/*.svg`, - `${themeDir}/static/**/*.png`, - `${themeDir}/static/**/*.svg`, + // `${currentDir}/content/**/*.png`, + // `${currentDir}/content/**/*.svg`, + // `${currentDir}/static/**/*.png`, + // `${currentDir}/static/**/*.svg`, + // `${themeDir}/static/**/*.png`, + // `${themeDir}/static/**/*.svg`, `${currentDir}/public/**/*.png`, `${currentDir}/public/**/*.svg`, ]) diff --git a/blog/hugolayout.md b/blog/hugolayout.md index 5485db6..fc48ced 100644 --- a/blog/hugolayout.md +++ b/blog/hugolayout.md @@ -899,3 +899,31 @@ Hugo ships with internal templates for common metadata for sites: + +If using bootstrap and you want to apply the class `active` to a navbar item when it has been selected, you should add the following to the navbar: + +```Hugo +