mirror of
https://github.com/MeiK2333/github-style.git
synced 2025-10-07 10:04:04 +00:00
add code syntax
This commit is contained in:
@@ -131,6 +131,8 @@ languageCode = "zh-cn"
|
||||
title = "MeiK's blog"
|
||||
theme = "github-style"
|
||||
googleAnalytics = "UA-123456-789"
|
||||
pygmentsCodeFences = true
|
||||
pygmentsUseClasses = true
|
||||
|
||||
[params]
|
||||
contributions = "post"
|
||||
@@ -144,10 +146,12 @@ googleAnalytics = "UA-123456-789"
|
||||
url = "https://meik2333.com"
|
||||
keywords = "blog, google analytics"
|
||||
rss = true
|
||||
location = "China"
|
||||
lastmod = true
|
||||
|
||||
[frontmatter]
|
||||
lastmod = ["lastmod", ":fileModTime", ":default"]
|
||||
|
||||
```
|
||||
|
||||
## deploy.sh example
|
||||
|
@@ -3,6 +3,8 @@ languageCode = "zh-cn"
|
||||
title = "MeiK's blog"
|
||||
theme = "github-style"
|
||||
googleAnalytics = "UA-123456-789"
|
||||
pygmentsCodeFences = true
|
||||
pygmentsUseClasses = true
|
||||
|
||||
[params]
|
||||
contributions = "post"
|
||||
|
@@ -7,6 +7,7 @@
|
||||
<link rel="stylesheet" href='{{ "css/github-style.css" | absURL }}' />
|
||||
<link rel="stylesheet" href='{{ "css/light.css" | absURL }}' />
|
||||
<link rel="stylesheet" href='{{ "css/dark.css" | absURL }}' />
|
||||
<link rel="stylesheet" href='{{ "css/syntax.css" | absURL }}' />
|
||||
<title>{{ if .IsHome }}{{ else }}{{ .Title }} - {{ end }}{{ .Site.Title }}</title>
|
||||
<link rel="icon" type="image/x-icon" href='{{ "images/favicon.ico" | absURL }}'>
|
||||
<meta name="theme-color" content="#1e2327">
|
||||
|
51
static/css/syntax.css
Normal file
51
static/css/syntax.css
Normal file
@@ -0,0 +1,51 @@
|
||||
code .k {
|
||||
color: var(--color-prettylights-syntax-keyword);
|
||||
}
|
||||
|
||||
code .nf {
|
||||
color: var(--color-prettylights-syntax-entity);
|
||||
}
|
||||
|
||||
code .o {
|
||||
color: var(--color-prettylights-syntax-constant);
|
||||
}
|
||||
|
||||
code .bp {
|
||||
color: var(--color-prettylights-syntax-constant);
|
||||
}
|
||||
|
||||
code .ow {
|
||||
color: var(--color-prettylights-syntax-constant);
|
||||
}
|
||||
|
||||
code .s2 {
|
||||
color: var(--color-prettylights-syntax-string);
|
||||
}
|
||||
|
||||
code .nb {
|
||||
color: var(--color-prettylights-syntax-entity);
|
||||
}
|
||||
|
||||
code .kn {
|
||||
color: var(--color-prettylights-syntax-keyword);
|
||||
}
|
||||
|
||||
code .nc {
|
||||
color: var(--color-prettylights-syntax-variable);
|
||||
}
|
||||
|
||||
code .c1 {
|
||||
color: var(--color-prettylights-syntax-comment);
|
||||
}
|
||||
|
||||
code .kr {
|
||||
color: var(--color-prettylights-syntax-keyword);
|
||||
}
|
||||
|
||||
code .s1 {
|
||||
color: var(--color-prettylights-syntax-string);
|
||||
}
|
||||
|
||||
code .s {
|
||||
color: var(--color-prettylights-syntax-string);
|
||||
}
|
Reference in New Issue
Block a user