From b39ebf044e8d0dd649eeb70773d2f63ad0797a9f Mon Sep 17 00:00:00 2001 From: Daniel Tomlinson Date: Wed, 10 Jun 2020 01:56:06 +0100 Subject: [PATCH 01/15] Adding Slug. Updating pagination --- blog/config.toml | 4 +++- tasks.todo | 22 ++++++++++++++++------ 2 files changed, 19 insertions(+), 7 deletions(-) diff --git a/blog/config.toml b/blog/config.toml index 32a4c67..4735e6c 100644 --- a/blog/config.toml +++ b/blog/config.toml @@ -2,13 +2,15 @@ baseURL = "http://127.0.0.1:6060" title = "panaetius.io" # theme = "panaetius-chunky-theme" theme = ["hugo-notice-admonition", "panaetius-theme"] -paginate = 2 +paginate = 1 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 = "/:year/:month/:slug/" [languages] diff --git a/tasks.todo b/tasks.todo index 115554a..fb18391 100644 --- a/tasks.todo +++ b/tasks.todo @@ -1,10 +1,18 @@ Projects: - ☐ Fix the navbar on mobile. ☐ Change text on homepage on mobile. + CSS: + ☐ Document using transition. + + Hugo: + ☐ Document pagination + Notes: + ☐ Link and . + ☐ Link to git + Images: - ☐ Add random animal image to corner of card. + ✔ Add random animal image to corner of card. @done (6/9/2020, 1:18:32 PM) Note: How to edit the homepage, how to edit taxonomy content (the _index.html) file and what this means. @@ -13,14 +21,16 @@ Projects: ☐ Another layout for cards (https://codewithhugo.com) Misc: - ☐ Add social metadata - ☐ Create own admonitions with shortcode with custom animal themeing. + ☐ Create archetypes for posts. + ☐ Configure pagination for homepage. + ✔ Add social metadata @done (6/9/2020, 1:27:26 PM) + ✔ Create own admonitions with shortcode with custom animal themeing. @done (6/9/2020, 1:27:24 PM) Custom layout: - ☐ Use the envanto website layouts (whole static themes) to find suitable wallpaper for a post page. + ✔ Use the envanto website layouts (whole static themes) to find suitable wallpaper for a post page. @done (6/9/2020, 1:27:29 PM) ☐ Add tags to front page cards ☐ Using date in the slug, customising the slugs further? - ☐ Find a font from envanto and customise the vars in bootstrap (https://getbootstrap.com/docs/4.0/content/reboot/#native-font-stack) + ✔ Find a font from envanto and customise the vars in bootstrap (https://getbootstrap.com/docs/4.0/content/reboot/#native-font-stack) @done (6/9/2020, 1:27:33 PM) Content: From 880b8e9b8b706130864405b73f5c59501e6d06fa Mon Sep 17 00:00:00 2001 From: Daniel Tomlinson Date: Wed, 10 Jun 2020 01:59:39 +0100 Subject: [PATCH 02/15] Updated submodule blog/themes/panaetius-theme --- blog/themes/panaetius-theme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blog/themes/panaetius-theme b/blog/themes/panaetius-theme index 8fa7c40..5312ff8 160000 --- a/blog/themes/panaetius-theme +++ b/blog/themes/panaetius-theme @@ -1 +1 @@ -Subproject commit 8fa7c40eca61df09e39765018878887fd65dfbe2 +Subproject commit 5312ff8f52565a41e8b0fd86a533cb23b9339e6d From d15c83c4a87545bd45466cd19f56a9ac3431fe60 Mon Sep 17 00:00:00 2001 From: Daniel Tomlinson Date: Thu, 11 Jun 2020 02:12:56 +0100 Subject: [PATCH 03/15] 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`, ]) From c91cbe56e226e486917ce27d254da52cf05be37c Mon Sep 17 00:00:00 2001 From: Daniel Tomlinson Date: Thu, 11 Jun 2020 02:13:15 +0100 Subject: [PATCH 04/15] Updated submodule blog/themes/panaetius-theme --- blog/themes/panaetius-theme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blog/themes/panaetius-theme b/blog/themes/panaetius-theme index 5312ff8..4c6e97f 160000 --- a/blog/themes/panaetius-theme +++ b/blog/themes/panaetius-theme @@ -1 +1 @@ -Subproject commit 5312ff8f52565a41e8b0fd86a533cb23b9339e6d +Subproject commit 4c6e97ff5e56e123af6ed2d61bd404c9837e8548 From 22f4e86ee6b8d1464bba0092f42dcc189ff7b123 Mon Sep 17 00:00:00 2001 From: Daniel Tomlinson Date: Thu, 11 Jun 2020 14:26:40 +0100 Subject: [PATCH 05/15] Adding longer titles for testing --- blog/content/post/second_post copy 2/index.md | 2 +- blog/content/post/second_post copy/index.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/blog/content/post/second_post copy 2/index.md b/blog/content/post/second_post copy 2/index.md index f3129bc..9077e50 100644 --- a/blog/content/post/second_post copy 2/index.md +++ b/blog/content/post/second_post copy 2/index.md @@ -1,5 +1,5 @@ --- -title: "Second Post Copy 2" +title: "Really long title Second Post Copy for layout scaling with flexbox using css." date: "2020-05-05T02:14:50+01:00" images: ["images/banner.svg"] draft: true diff --git a/blog/content/post/second_post copy/index.md b/blog/content/post/second_post copy/index.md index db9a264..cfafe42 100644 --- a/blog/content/post/second_post copy/index.md +++ b/blog/content/post/second_post copy/index.md @@ -1,5 +1,5 @@ --- -title: "Second Post Copy" +title: "Really long title Second Post Copy for layout scaling with flexbox using css." date: "2020-05-05T02:14:50+01:00" images: ["images/banner.svg"] draft: true From 7dfc5be108225e87f1ee87ae6047a2ec66f1ee44 Mon Sep 17 00:00:00 2001 From: Daniel Tomlinson Date: Thu, 11 Jun 2020 14:27:04 +0100 Subject: [PATCH 06/15] Updated submodule blog/themes/panaetius-theme --- blog/themes/panaetius-theme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blog/themes/panaetius-theme b/blog/themes/panaetius-theme index 4c6e97f..bd88887 160000 --- a/blog/themes/panaetius-theme +++ b/blog/themes/panaetius-theme @@ -1 +1 @@ -Subproject commit 4c6e97ff5e56e123af6ed2d61bd404c9837e8548 +Subproject commit bd8888720f3e0cba72aa331dde208c0e49d18ef3 From f4c2fa60db3793a60a1a73c47c3e7255f6aee34e Mon Sep 17 00:00:00 2001 From: Daniel Tomlinson Date: Thu, 11 Jun 2020 23:21:10 +0100 Subject: [PATCH 07/15] Updating documentation --- blog/todo-webpack.todo | 13 +++++++------ tasks.todo | 14 +++++++------- 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/blog/todo-webpack.todo b/blog/todo-webpack.todo index 7e0674c..3bd539b 100644 --- a/blog/todo-webpack.todo +++ b/blog/todo-webpack.todo @@ -17,19 +17,20 @@ Tasks: ☐ Theme similar to forestry. Theme: - ☐ Colour scheme (forestry) - ☐ Choose a Colour - ☐ Change link colour + ✔ Colour scheme (forestry) @done (6/9/2020, 12:24:25 PM) + ✔ Choose a Colour @done (6/9/2020, 12:24:26 PM) + ✔ Change link colour @done (6/9/2020, 12:24:25 PM) ☐ Change post info colour - ☐ Info, warning admonitions (using colour scheme) + ✔ Info, warning admonitions (using colour scheme) @done (6/9/2020, 12:24:29 PM) ☐ Post layout - ☐ TOC + ✔ TOC @done (6/9/2020, 12:24:31 PM) Search: - ☐ Search bar like Font awesome + ✔ Search bar like Font awesome @done (6/9/2020, 12:24:33 PM) ✔ Have search auto run whenever a button is pressed @done (6/7/2020, 5:38:31 PM) Gulp: + ☐ Change lunr insert - should insert the whole script html with a dummy tag that it can use to find. ✔ Using and to handle hashed images. @done (6/4/2020, 1:28:15 AM) Notes: ✔ If you are not using Hugo, you could use the above to dynamically reference images in your html, and use gulp to replace them with the images bundled with webpack. Name the images the same as they're referenced, then replace any `` with the bundled image in the html. You can get the mapping from the output from webpack, using the unique image name as the key.. You can then use gulp to minimise or resize the images. @done (6/4/2020, 1:28:13 AM) diff --git a/tasks.todo b/tasks.todo index fb18391..c5fb94b 100644 --- a/tasks.todo +++ b/tasks.todo @@ -1,6 +1,6 @@ Projects: - ☐ Fix the navbar on mobile. - ☐ Change text on homepage on mobile. + ✔ Fix the navbar on mobile. @done (6/11/2020, 11:18:31 PM) + ✔ Change text on homepage on mobile. @done (6/11/2020, 11:18:32 PM) CSS: ☐ Document using transition. @@ -17,19 +17,19 @@ Projects: Note: How to edit the homepage, how to edit taxonomy content (the _index.html) file and what this means. - ☐ Refactor front page like (https://www.educative.io/edpresso) - ☐ Another layout for cards (https://codewithhugo.com) + ✔ Refactor front page like (https://www.educative.io/edpresso) @done (6/11/2020, 11:18:37 PM) + ✔ Another layout for cards (https://codewithhugo.com) @done (6/11/2020, 11:18:38 PM) Misc: ☐ Create archetypes for posts. - ☐ Configure pagination for homepage. + ✔ Configure pagination for homepage. @done (6/11/2020, 11:18:48 PM) ✔ Add social metadata @done (6/9/2020, 1:27:26 PM) ✔ Create own admonitions with shortcode with custom animal themeing. @done (6/9/2020, 1:27:24 PM) Custom layout: ✔ Use the envanto website layouts (whole static themes) to find suitable wallpaper for a post page. @done (6/9/2020, 1:27:29 PM) - ☐ Add tags to front page cards - ☐ Using date in the slug, customising the slugs further? + ✔ Add tags to front page cards @done (6/11/2020, 11:18:52 PM) + ✔ Using date in the slug, customising the slugs further? @done (6/11/2020, 11:18:54 PM) ✔ Find a font from envanto and customise the vars in bootstrap (https://getbootstrap.com/docs/4.0/content/reboot/#native-font-stack) @done (6/9/2020, 1:27:33 PM) From ca5ad13b56fcde8258f0b4d20cf4b3539a0a7239 Mon Sep 17 00:00:00 2001 From: Daniel Tomlinson Date: Thu, 11 Jun 2020 23:21:21 +0100 Subject: [PATCH 08/15] Updating blog content --- blog/config.toml | 2 +- blog/content/post/first_post/index.md | 2 ++ blog/content/post/second_post copy 2/index.md | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/blog/config.toml b/blog/config.toml index 7ee0e67..e2a1bf9 100644 --- a/blog/config.toml +++ b/blog/config.toml @@ -2,7 +2,7 @@ baseURL = "http://127.0.0.1:6060" title = "panaetius.io" # theme = "panaetius-chunky-theme" theme = ["hugo-notice-admonition", "panaetius-theme"] -paginate = 1 +paginate = 3 summaryLength = 2 languageCode = "en" DefaultContentLanguage = "en" diff --git a/blog/content/post/first_post/index.md b/blog/content/post/first_post/index.md index 2ec6781..c0d8913 100644 --- a/blog/content/post/first_post/index.md +++ b/blog/content/post/first_post/index.md @@ -11,6 +11,8 @@ 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 ```python diff --git a/blog/content/post/second_post copy 2/index.md b/blog/content/post/second_post copy 2/index.md index 9077e50..78a8bae 100644 --- a/blog/content/post/second_post copy 2/index.md +++ b/blog/content/post/second_post copy 2/index.md @@ -1,5 +1,5 @@ --- -title: "Really long title Second Post Copy for layout scaling with flexbox using css." +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 From 204edc659a61368a12650f08cc7c0093d098c99b Mon Sep 17 00:00:00 2001 From: Daniel Tomlinson Date: Thu, 11 Jun 2020 23:22:05 +0100 Subject: [PATCH 09/15] Updated submodule blog/themes/panaetius-theme --- blog/themes/panaetius-theme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blog/themes/panaetius-theme b/blog/themes/panaetius-theme index bd88887..2208019 160000 --- a/blog/themes/panaetius-theme +++ b/blog/themes/panaetius-theme @@ -1 +1 @@ -Subproject commit bd8888720f3e0cba72aa331dde208c0e49d18ef3 +Subproject commit 220801930c7e2fcc046138e91d99c148a477298b From cb71a953c27187e7f7e704dbabe3a570d6418145 Mon Sep 17 00:00:00 2001 From: Daniel Tomlinson Date: Mon, 15 Jun 2020 01:33:42 +0100 Subject: [PATCH 10/15] Updating documentation --- blog/hugolayout.md | 28 ++++++++++++++++++++++++++++ blog/todo-webpack.todo | 8 +++++--- tasks.todo | 2 +- 3 files changed, 34 insertions(+), 4 deletions(-) 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 +