From d15c83c4a87545bd45466cd19f56a9ac3431fe60 Mon Sep 17 00:00:00 2001 From: Daniel Tomlinson Date: Thu, 11 Jun 2020 02:12:56 +0100 Subject: [PATCH] Updating latest --- .vscode/settings.json | 25 +- blog/config.toml | 11 +- .../post/first_post copy/images/banner.svg | 1 + blog/content/post/first_post copy/index.md | 49 +++ blog/content/post/first_post/index.md | 3 +- .../post/second_post copy 2/images/banner.svg | 1 + blog/content/post/second_post copy 2/index.md | 91 +++++ .../post/second_post copy/images/banner.svg | 341 +++++++++++++++++ blog/content/post/second_post copy/index.md | 95 +++++ .../post/second_post/images/banner.svg | 342 +++++++++++++++++- blog/content/post/second_post/index.md | 2 - blog/gulpfile.js/index.js | 12 +- 12 files changed, 945 insertions(+), 28 deletions(-) create mode 100644 blog/content/post/first_post copy/images/banner.svg create mode 100644 blog/content/post/first_post copy/index.md create mode 100644 blog/content/post/second_post copy 2/images/banner.svg create mode 100644 blog/content/post/second_post copy 2/index.md create mode 100644 blog/content/post/second_post copy/images/banner.svg create mode 100644 blog/content/post/second_post copy/index.md diff --git a/.vscode/settings.json b/.vscode/settings.json index 50e9341..46ef36a 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,14 +1,15 @@ { - "editor.defaultFormatter": "akmittal.hugofy", - "editor.formatOnPaste": false, - "[html]": { - "editor.defaultFormatter": "HookyQR.beautify" - }, - "[handlebars]": { - }, - "beautify.config": { - "indent_handlebars": false - }, - "twig-language-2.endComma": "always", + "editor.defaultFormatter": "akmittal.hugofy", + "editor.formatOnPaste": false, + "[html]": { + "editor.defaultFormatter": "HookyQR.beautify" + }, + "[handlebars]": {}, + "beautify.config": { + "indent_handlebars": false + }, + "twig-language-2.endComma": "always", + "[scss]": { + "editor.defaultFormatter": "HookyQR.beautify" + } } - diff --git a/blog/config.toml b/blog/config.toml index 4735e6c..7ee0e67 100644 --- a/blog/config.toml +++ b/blog/config.toml @@ -3,6 +3,7 @@ title = "panaetius.io" # theme = "panaetius-chunky-theme" theme = ["hugo-notice-admonition", "panaetius-theme"] paginate = 1 +summaryLength = 2 languageCode = "en" DefaultContentLanguage = "en" enableInlineShortcodes = true @@ -40,11 +41,11 @@ name = "Tags" url = "/tags/" weight = 3 -[[menu.main]] -identifier = "search" -name = "Search" -url = "/search/" -weight = 4 +# [[menu.main]] +# identifier = "search" +# name = "Search" +# url = "/search/" +# weight = 4 [taxonomies] category = "categories" 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..2ec6781 100644 --- a/blog/content/post/first_post/index.md +++ b/blog/content/post/first_post/index.md @@ -9,8 +9,7 @@ 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..f3129bc --- /dev/null +++ b/blog/content/post/second_post copy 2/index.md @@ -0,0 +1,91 @@ +--- +title: "Second Post Copy 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..db9a264 --- /dev/null +++ b/blog/content/post/second_post copy/index.md @@ -0,0 +1,95 @@ +--- +title: "Second Post Copy" +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. 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..507bf14 100644 --- a/blog/content/post/second_post/index.md +++ b/blog/content/post/second_post/index.md @@ -11,8 +11,6 @@ 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 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`, ])