diff --git a/README.md b/README.md index d713160..9e7d461 100644 --- a/README.md +++ b/README.md @@ -140,6 +140,7 @@ dotnet list package --vulnerable --include-transitive ## 文档入口 +- [文档中心总览](docs/) - [上下文边界](docs/Context-Bounded.md) - [领域命令模式处理程序](docs/Domain-Command-Patterns-Handlers.md) - [领域命令验证](docs/Domain-Command-Validation.md) diff --git a/_layouts/default.html b/_layouts/default.html new file mode 100644 index 0000000..34132f4 --- /dev/null +++ b/_layouts/default.html @@ -0,0 +1,156 @@ + + + + + +{% seo %} + + + + + + + + {% include head-custom.html %} + + + Skip to the content. + + + +
+ {% if page.path contains 'docs/' and page.path != 'docs/README.md' %} + {% assign sibling_pages = site.pages | where_exp: "item", "item.path contains 'docs/' and item.path contains '.md' and item.dir == page.dir" | sort: "url" %} + {% assign section_home = sibling_pages | where_exp: "item", "item.name == 'README.md'" | first %} + {% assign prev_page = nil %} + {% assign next_page = nil %} + {% assign seen_current = false %} + + {% for item in sibling_pages %} + {% if item.url == page.url %} + {% assign seen_current = true %} + {% elsif seen_current and next_page == nil %} + {% assign next_page = item %} + {% elsif seen_current == false %} + {% assign prev_page = item %} + {% endif %} + {% endfor %} + + {% endif %} + + {{ content }} + + {% if page.path contains 'docs/' and page.path != 'docs/README.md' and sibling_pages.size > 1 %} + + {% endif %} + + +
+ +