diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index cb14251..0000000 Binary files a/.DS_Store and /dev/null differ diff --git a/.gitmodules b/.gitmodules index 2bca1b9..8cc6519 100644 --- a/.gitmodules +++ b/.gitmodules @@ -4,3 +4,6 @@ [submodule "blog/themes/panaetius-chunky-theme"] path = blog/themes/panaetius-chunky-theme url = https://git.panaetius.co.uk/hugo/panaetius-chunky-theme +[submodule "blog/themes/hugo-notice-admonition"] + path = blog/themes/hugo-notice-admonition + url = https://git.panaetius.co.uk/hugo/hugo-notice-admonition \ No newline at end of file diff --git a/blog/config.toml b/blog/config.toml index fe710fc..32a4c67 100644 --- a/blog/config.toml +++ b/blog/config.toml @@ -1,7 +1,7 @@ baseURL = "http://127.0.0.1:6060" title = "panaetius.io" # theme = "panaetius-chunky-theme" -theme = "panaetius-theme" +theme = ["hugo-notice-admonition", "panaetius-theme"] paginate = 2 languageCode = "en" DefaultContentLanguage = "en" @@ -54,8 +54,8 @@ author = "authors" header = "panaetius.io" author = "Daniel Tomlinson" description = "Tech blog showcasing Python, Machine-Learning, Vue, Homelab and other technologies to try at home." -homepageImage = "/images/homepage.svg" -logo = "/images/homepage.svg" +homepageImage = "/images/front-images/world.svg" +logo = "/images/front-images/world.svg" share = true twitter = "dmot7291" github = "dtomlinson91" diff --git a/blog/content/post/second_post/index.md b/blog/content/post/second_post/index.md index 8fbae5f..45ba436 100644 --- a/blog/content/post/second_post/index.md +++ b/blog/content/post/second_post/index.md @@ -11,6 +11,8 @@ 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 @@ -69,3 +71,21 @@ Hugo adds no css to the table. In order to style it you should select the `}} +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/gulpfile.js/index.js b/blog/gulpfile.js/index.js index 8853b41..720d17d 100644 --- a/blog/gulpfile.js/index.js +++ b/blog/gulpfile.js/index.js @@ -40,6 +40,8 @@ function minifyImages(cb) { `${currentDir}/static/**/*.svg`, `${themeDir}/static/**/*.png`, `${themeDir}/static/**/*.svg`, + `${currentDir}/public/**/*.png`, + `${currentDir}/public/**/*.svg`, ]) .pipe(imagemin()) .pipe( diff --git a/blog/static/images/.DS_Store b/blog/static/images/.DS_Store deleted file mode 100644 index f6a4068..0000000 Binary files a/blog/static/images/.DS_Store and /dev/null differ diff --git a/blog/themes/.DS_Store b/blog/themes/.DS_Store deleted file mode 100644 index 9f5891d..0000000 Binary files a/blog/themes/.DS_Store and /dev/null differ diff --git a/blog/themes/hugo-notice-admonition b/blog/themes/hugo-notice-admonition new file mode 160000 index 0000000..1b7157d --- /dev/null +++ b/blog/themes/hugo-notice-admonition @@ -0,0 +1 @@ +Subproject commit 1b7157d341020302ea14cedfe0472bebfc9d9fb6 diff --git a/blog/themes/panaetius-theme b/blog/themes/panaetius-theme index db2a949..8fa7c40 160000 --- a/blog/themes/panaetius-theme +++ b/blog/themes/panaetius-theme @@ -1 +1 @@ -Subproject commit db2a9496c7494528824042b87d9d7288ecbacf00 +Subproject commit 8fa7c40eca61df09e39765018878887fd65dfbe2 diff --git a/tasks.todo b/tasks.todo index 0c75155..115554a 100644 --- a/tasks.todo +++ b/tasks.todo @@ -1,62 +1,28 @@ Projects: - Tomorrow: - ☐ Document adding background as wallpaper - -Tasks: - - Responsive: ☐ Fix the navbar on mobile. ☐ Change text on homepage on mobile. Images: ☐ Add random animal image to corner of card. - ✔ Add image to homepage + document @done (5/5/2020, 4:09:20 AM) - ✔ Add image to post + document @done (5/5/2020, 7:32:50 PM) - Colour: - ☐ Add colour to default `` like Forestry . - Make sure when adding a new font that these weights are added to the font family. It might not be possible to add them for all styles (e.g bolder and italic combined) so just cover as much as possible. - Maybe template could be: - ☐ keep default of light:300, normal:400 and bold:700. - ☐ overwrite the header weight to 400 from 500 - ☐ create a font family that implements the usual styles - ☐ if you want to use lighter and bolder, implement 100 and 900 - Sidebar: - ☐ Add a table of contents to the side. - Notes: - - Maybe fontawesome docs as a guide? (https://fontawesome.com/how-to-use/on-the-web/referencing-icons/basic-use) - Content: ☐ Add a series taxonomy Notes: @@ -70,22 +36,10 @@ Tasks: Tags will be specifics: python, aws etc Series will be like a collection of posts in a series. - Animate: - ✔ Add animate on scroll @done (5/5/2020, 11:12:10 PM) - - Email: - ✔ Configure AWS SES for sending emails with commento. @done (5/5/2020, 11:08:13 PM) - - Links: Useful links that might be useful to the above for later ☐ https://www.netlify.com/blog/2018/07/24/hugo-tips-how-to-create-author-pages/ SEO: - ✔ Document + Set all metadata using https://www.skcript.com/svr/perfect-seo-meta-tags-with-hugo/ @done (5/16/2020, 3:48:59 AM) - ✔ Change the manifest.json @done (5/16/2020, 3:49:00 AM) - ✔ Set the favicon and apple-touch-icons @done (5/16/2020, 3:49:01 AM) - ✔ Fix the structured data @done (5/16/2020, 3:49:02 AM) - ✔ Finish the metadata + document @done (5/16/2020, 3:49:03 AM) ☐ Create social media accounts for the site and add to structured data + config.toml CI: @@ -96,30 +50,8 @@ Tasks: Final build: ☐ Change the front matter for `_index.md` in `post`. - Search: - ☐ Find simple CSS design for search bar. - ✔ Implement search using a library. @done (5/13/2020, 1:57:50 AM) - ✔ Search needs to recusrively go into folders @done (5/12/2020, 3:36:52 AM) - ✔ Document using and creating a search page with lunrjs. (use the temporary search note). @done (5/21/2020, 9:22:39 PM) - ☐ Use GULP to generate the lunr index when running webpack build. - ☐ Use webpack to install lunr and load it in - ☐ Use webpack to load the `search-index.json` file into the bundle. - - Webpack: - ☐ Document and follow this tutorial: (https://www.sitepoint.com/bundle-static-site-webpack/). - ☐ Look at the chunky themes webpack.prod.js - document all the extra modules being used. - ☐ Add the lunr index build to the webpack bundle. - ☐ Include lunr in the bundle + any other modules needed for search. - ☐ Use webpack to fill a html partial for the baseof.html file (see the notes). - - Tutorials: ☐ https://www.integralist.co.uk/posts/python-asyncio/ Notes: This blog in general has some interesting things to look at. - Restructure: - ☐ Create new theme entirely, using a fresh webpack configuration. - ☐ Move the AOS from the partials css and js into a webpack configuration. - - CSS: ☐ Document using a fullscreen wallpaper (front-background in _variables.scss)