Adding hugo-notice

Admonitions
This commit is contained in:
2020-06-09 01:38:59 +01:00
parent 1ed499be44
commit e9678b711a
4 changed files with 27 additions and 2 deletions

3
.gitmodules vendored
View File

@@ -4,3 +4,6 @@
[submodule "blog/themes/panaetius-chunky-theme"] [submodule "blog/themes/panaetius-chunky-theme"]
path = blog/themes/panaetius-chunky-theme path = blog/themes/panaetius-chunky-theme
url = https://git.panaetius.co.uk/hugo/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

View File

@@ -1,7 +1,7 @@
baseURL = "http://127.0.0.1:6060" baseURL = "http://127.0.0.1:6060"
title = "panaetius.io" title = "panaetius.io"
# theme = "panaetius-chunky-theme" # theme = "panaetius-chunky-theme"
theme = "panaetius-theme" theme = ["hugo-notice-admonition", "panaetius-theme"]
paginate = 2 paginate = 2
languageCode = "en" languageCode = "en"
DefaultContentLanguage = "en" DefaultContentLanguage = "en"

View File

@@ -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. 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.
## <!--more-->
## Test code ## Test code
```python ```python
@@ -69,3 +71,21 @@ Hugo adds no css to the table. In order to style it you should select the `<tabl
| ------ | -------- | | ------ | -------- |
| Daniel | Capacity | | Daniel | Capacity |
| Dale | 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 >}}

View File

@@ -40,6 +40,8 @@ function minifyImages(cb) {
`${currentDir}/static/**/*.svg`, `${currentDir}/static/**/*.svg`,
`${themeDir}/static/**/*.png`, `${themeDir}/static/**/*.png`,
`${themeDir}/static/**/*.svg`, `${themeDir}/static/**/*.svg`,
`${currentDir}/public/**/*.png`,
`${currentDir}/public/**/*.svg`,
]) ])
.pipe(imagemin()) .pipe(imagemin())
.pipe( .pipe(