feat(mkdocs): use custom plugin from custom-plugins/mkdocs-plugin-tags

this is a custom theme modified so it works correctly

issue #3 !1
This commit is contained in:
2022-01-22 12:05:07 +09:30
parent 5dfeeb81b1
commit 1a1b77769d
4 changed files with 28 additions and 6 deletions

View File

@ -53,8 +53,10 @@ theme:
plugins: plugins:
# - tags: - tags:
# tags_file: tags.md filename: tags.md
folder: pages
css_name: ".tags"
- search: - search:
lang: en lang: en
@ -63,6 +65,7 @@ plugins:
enable_creation_date: true enable_creation_date: true
exclude: exclude:
- index.md - index.md
- tags.md
extra: extra:
homepage: https://nofusscomputing.com homepage: https://nofusscomputing.com
@ -118,6 +121,8 @@ nav:
- articles/2015/choose_internet_service.md - articles/2015/choose_internet_service.md
- tags: tags.md
- Projects: - Projects:
- projects/index.md - projects/index.md

View File

@ -31,3 +31,17 @@ html .md-social a[title="Gitlab"] {
color: #fc6d26; color: #fc6d26;
} }
.tags {
background-color: #4051B5;
border-radius: 10px;
font-size: 12px;
color: white;
padding: 3px 6px;
text-align: center;
}
.tags:link {
color: white;
}

3
pages/tags.md Normal file
View File

@ -0,0 +1,3 @@
# tags
Do not edit this file as it is auto generated.

View File

@ -1,7 +1,7 @@
mkdocs>=1.2.3 mkdocs==1.2.3
mkdocs-material-extensions>=1.0.3 mkdocs-material-extensions==1.0.3
mkdocs-material==8.1.7 mkdocs-material==8.1.7
mkdocs-plugin-tags==1.0.2 ./custom-plugins/mkdocs-plugin-tags
mkdocs-git-revision-date-localized-plugin==0.11.1 mkdocs-git-revision-date-localized-plugin==0.11.1
pymdown-extensions pymdown-extensions==9.1