diff --git a/.gitmodules b/.gitmodules index 5c912b2..8cc6519 100644 --- a/.gitmodules +++ b/.gitmodules @@ -3,4 +3,7 @@ url = https://git.panaetius.co.uk/hugo/panaetius-theme [submodule "blog/themes/panaetius-chunky-theme"] path = blog/themes/panaetius-chunky-theme - url = https://git.panaetius.co.uk/hugo/panaetius-chunky-theme \ No newline at end of file + 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..3c6e7d7 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" 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(