simplog is a simple blog theme for Hugo.
Demo site is here.
- Google Analytics
- Disqus
- Some theme colors
- Responsive
- Custom CSS
- Adobe Fonts
- Lazy load image
- Support tags, categories and archives page
- Show related tags and categories posts
git submodule add https://github.com/michimani/simplog.git ./themes/simploggit submodule update --remote --mergeYou can insert the Google Analytics tracking code into top of head tag. If you insert the tag, set tracking ID at config.toml.
googleAnalytics = "<your tracking ID>"You can set the comment form via Disqus. If you set the comment form, set disqus short name at config.toml.
disqusShortname = "<your disqus short name>"And if you enable comment form, set true at config.toml and each post file.
-
config.toml[params] [params.enabled] comment = true
-
each post file
+++ # some # settings # of # post comments = true +++
The comment form will be enabled when both of them are true.
If you want to use your own CSS, set value that is path to your CSS file at config.toml
[params]
customCSS = ""If you use Adobe Fonts in your site, set value that is Adobe Fonts Kit ID at config.toml. In this case you will need to set custom css as well.
[params]
adobeFontsKitId = "<your adobe fonts kit ID>"You can change theme color easily. Set the value one of default, dark, red, green and blue at config.toml.
[params]
colorTheme = "default"You can easily set up an image tag for lazy loading by using the shortcode below.
{{< lazy src="image-file-name.jpg" alt="attribute for this image" >}}In the above case, the image files under the images directory will be displayed. (e.g. /images/image-file-name.jpg)
If you want to specify another path or a path with a different domain, write the full path to the image file and add abs =" y ".
{{< lazy src="https://michimani.github.io/simplog/images/featured_image.jpg" alt="attribute for this image" abs="y" >}}You can use the mermaid language in Markdown code blocks.
```mermaid
sequenceDiagram
participant Alice
participant Bob
Alice->>John: Hello John, how are you?
loop Healthcheck
John->John: Fight against hypochondria
end
Note right of John: Rational thoughts <br/>prevail...
John-->Alice: Great!
John->Bob: How about you?
Bob-->John: Jolly good!
``Install nodenv and install node 18.x
brew install nodenvnodenv install 18.14.2Install the node module for development such as CSS generation.
npm installTo generate CSS from SCSS, run the following command.
npm run css:scssIf you want to monitor SCSS changes, run the following command.
npm run watch:scss



