Skip to content

Commit

Permalink
Chore: 增加 frontmatter 相关配置到 GIt
Browse files Browse the repository at this point in the history
  • Loading branch information
Lruihao committed Jan 17, 2024
1 parent fe7e29b commit d25450a
Show file tree
Hide file tree
Showing 6 changed files with 114 additions and 1 deletion.
1 change: 1 addition & 0 deletions .frontmatter/database/mediaDb.json
@@ -0,0 +1 @@
{}
1 change: 1 addition & 0 deletions .frontmatter/database/pinnedItemsDb.json
@@ -0,0 +1 @@
{}
1 change: 1 addition & 0 deletions .frontmatter/database/taxonomyDb.json
@@ -0,0 +1 @@
{"taxonomy":{"tags":["2018 湘潭邀请赛","ACM","ADB","AWS","Android","AutoCorrect","BFS","Beego","Browser","C","C++","CDN","CSS","Codeforces","Collator","Comparator","CosAlbum","Cron","DFS","ES6","English","FixIt","GTD","GUI","Git","GitHub Actions","Go","HDU","HTML","HTTP","Hexo","Homebrew","Hugo","I18n","ImgURL","JSON","Java","JavaScript","Laravel","Layui","Less","Lightbox","Mac","Markdown","MySQL","NetBeans","Node.js","Nowcoder","OS","PHP","POJ","Python","REST","SSH","SSL","STL","Sass","Scss","SemVer","Shortcodes","StringBuffer","Sublime","ThinkPHP","TypeScript","URLConnection","Vue2","Vue3","WAMP","async","bat","caddy","codereview","dashboard","debug","defer","eager","eclipse","electron","eslint","euler","fusion","husky","hustoj","imageio","jieba","lazy","leancloud","linux","loading","lua","markdownlint","newline","nginx","ngrok","npm","npx","numpy","nvm","pangu.js","pillow","pyecharts","pyinstaller","redirect","regex","server","shell","sort","svg","tailwindcss","termux","turtle","ubuntu","vim","watermark","widget","windows","wxpy","云盘","他山之石","位运算","加密","在线离线算法","大数运算","字体压缩","字数统计","宝塔面板","对象存储","并查集","快速幂","总结","拖拽式仪表盘","搜索","数学","数论","最短路","杨辉三角","欧几里得","水仙花数","沐目体","泛型","流水线","磁盘","组合数学","网站备案","背包问题","脚手架","腾讯云 cos 桶","计算机数据","计算机组成与体系结构","贪心","随笔","需求分析","面向对象","面试","黑盒测试"],"categories":["ACM","Browser","CSS","Git","Go","Grocery","HTML","Java","JavaScript","Memo","MySQL","Node.js","OS","PHP","Python","Spec","Vue.js","draft","project","thoughts","瞎折腾","翻译","计算机网络"],"collections":["AWS","拖拽式仪表盘系列"]}}
4 changes: 4 additions & 0 deletions .gitignore
Expand Up @@ -5,3 +5,7 @@ resources/

.hugo_build.lock
jsconfig.json

# backup for frontmatter in vscode
!frontmatter.json
!.frontmatter
2 changes: 1 addition & 1 deletion content/posts/draggable-dashboard/dashboard-summary.md
Expand Up @@ -5,7 +5,7 @@ collections:
- 拖拽式仪表盘系列
categories:
- Vue.js
tags:
tags:
- 拖拽式仪表盘
- dashboard
- widget
Expand Down
106 changes: 106 additions & 0 deletions frontmatter.json
@@ -0,0 +1,106 @@
{
"$schema": "https://frontmatter.codes/frontmatter.schema.json",
"frontMatter.panel.actions.disabled": [
"optimizeSlug"
],
"frontMatter.dashboard.content.pagination": 50,
"frontMatter.content.autoUpdateDate": false,
"frontMatter.taxonomy.dateFormat": "YYYY-MM-DD'T'HH:mm:ss+08:00",
"frontMatter.taxonomy.customTaxonomy": [
{
"id": "collections",
"options": [
"AWS",
"拖拽式仪表盘系列"
]
}
],
"frontMatter.taxonomy.contentTypes": [
{
"name": "default",
"pageBundle": false,
"previewPath": null,
// https://frontmatter.codes/docs/content-creation/fields
"fields": [
{
"title": "Title",
"name": "title",
"type": "string"
},
{
"title": "Description",
"name": "description",
"type": "string"
},
{
"title": "Publishing date",
"name": "date",
"type": "datetime",
"default": "{{now}}",
"isPublishDate": true
},
{
"title": "Last Modified",
"name": "lastmod",
"type": "datetime",
"default": "{{now}}",
"isModifiedDate": true
},
{
"title": "Slug",
"name": "slug",
"type": "string"
},
{
"title": "Is in draft",
"name": "draft",
"type": "draft"
},
{
"title": "Categories",
"name": "categories",
"type": "categories"
},
{
"title": "Tags",
"name": "tags",
"type": "tags"
},
{
"title": "Collections",
"name": "collections",
"type": "taxonomy",
"taxonomyId": "collections"
},
{
"title": "Comment",
"name": "comment",
"type": "boolean"
},
{
"title": "Lightgallery",
"name": "lightgallery",
"type": "boolean"
}
]
}
],
"frontMatter.framework.id": "hugo",
"frontMatter.content.publicFolder": "static",
"frontMatter.preview.host": "http://localhost:1313",
"frontMatter.content.pageFolders": [
{
"title": "projects",
"path": "[[workspace]]/content/projects"
},
{
"path": "[[workspace]]/content/posts/",
"title": "posts"
},
{
"title": "years",
"path": "[[workspace]]/content/private/years"
}
],
"frontMatter.framework.startCommand": "hugo server -D --disableFastRender --navigateToChanged --bind 0.0.0.0"
}

0 comments on commit d25450a

Please sign in to comment.