Assets.Dotnet9
Assets.Dotnet9 是 CodeWF 网站的资源与内容仓库。它不只是图片目录,而是承担了文件型内容库的角色:文章、项目文档、工具元数据、时间线、友情链接、站点 Markdown 页面和配图都在这里维护。
Suitable for attention
- 想了解
dotnet9.com如何把内容数据从 Web 应用源码中分离出来。 - Want to manage Markdown and photo resources by year, month, column, and project directory.
- Want to add an article, project description, tool entry, or site configuration to the CodeWF website.
directory structure
2019/ ... 2026/ 按年份、月份组织文章和配图
site/
about.md 关于页内容
Privacy.md 隐私页内容
albums.json 专题元数据
categories.json 分类元数据
friend-links.json 友情链接元数据
timelines.json 时间线数据
doc/ 项目中心导航、正文和 SVG 封面
tools/ 在线工具元数据与预览图
pays/ 打赏页资源
banners/ 页面横幅资源
favicon/ 站点图标资源
Content maintenance principles
| principles | description |
|---|---|
| stable path | Slug articles, pictures, documents, and tools as long as possible to avoid invalidation of historical links. |
| metadata integrity | Articles Front Matter, categories, topics, project navigation and tool JSON need to be maintained simultaneously. |
| Clear naming | Images, SVG, and Markdown use semantic file names for easy search and reuse. |
| may review | Content changes are mainly text files, which are suitable for review by Git diff and Pull Request. |
Relationship with CodeWF
CodeWF 负责网站程序,Assets.Dotnet9 负责内容和资源。应用启动时读取 Site:LocalAssetsDir,并把本仓库内容加载到项目中心、博客、工具、搜索和站点地图中。
It is recommended to clone two warehouses side by side during development:
CodeWF/
Assets.Dotnet9/