Adding hugo-notice
Admonitions
This commit is contained in:
3
.gitmodules
vendored
3
.gitmodules
vendored
@@ -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
|
||||
@@ -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"
|
||||
|
||||
@@ -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.
|
||||
|
||||
## <!--more-->
|
||||
|
||||
## Test code
|
||||
|
||||
```python
|
||||
@@ -69,3 +71,21 @@ Hugo adds no css to the table. In order to style it you should select the `<tabl
|
||||
| ------ | -------- |
|
||||
| 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 >}}
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user