Skip to content

Zztrans/blog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

blog

Currently I'm using Cloudflare Page for deployment.

See in Blog.

Dependency

hugo extend v104.3+ (higher is ok, but extend is needed) eg: hugo v0.148.2+extended+withdeploy linux/amd64 BuildDate=unknown

theme

hugo-theme-stack v3

usage

build to ./public

hugo

hot deploy to localhost

hugo server

-D for show draft also

new content:

hugo new post/xxx.md

search order: hugo

shortcode

Some shortcode in markdown for flex writing.

Great thanks to cubercsl.

Example:

{{% notice warning diywords %}}
content
{{% /notice %}}

包含以下几种:

"tip": {
    "prefix": "tip",
    "body": [
        "{{% notice tip Tip%}}"
        "$0"
        "{{% /notice %}}"
    ],
    "description": "green"
},

"info": {
    "prefix": "info",
    "body": [
        "{{% notice info Info%}}"
        "$0"
        "{{% /notice %}}"
    ],
    "description": "yellow"
},
"warning": {
    "prefix": "warning",
    "body": [
        "{{% notice warning Warning%}}"
        "$0"
        "{{% /notice %}}"
    ],
    "description": "red"
},
"note": {
    "prefix": "note",
    "body": [
        "{{% notice note Note%}}"
        "$0"
        "{{% /notice %}}"
    ],
    "description": "blue"
},
"spoiler": {
    "prefix": "spoiler",
    "body": [
        "{{% spoiler 代码 %}}"
        "$0"
        "{{% /spoiler %}}"
    ],
    "description": "code"
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published