diff --git a/archetypes/default.md b/archetypes/default.md index 3fa8440c..b37d5eb4 100644 --- a/archetypes/default.md +++ b/archetypes/default.md @@ -7,22 +7,56 @@ draft: true author: "" authorLink: "" description: "" +license: "" +images: [] tags: [] categories: [] -hiddenFromHomePage: false -hiddenFromSearch: false - featuredImage: "" featuredImagePreview: "" +hiddenFromHomePage: false +hiddenFromSearch: false +twemoji: false +lightgallery: true +ruby: true +fraction: true +fontawesome: true +linkToMarkdown: true +rssFullText: false + toc: enable: true + auto: true +code: + copy: true + maxShownLines: 50 math: enable: false -lightgallery: false -license: "" + # ... +mapbox: + # ... +share: + enable: true + # ... +comment: + enable: true + # ... +library: + css: + # someCSS = "some.css" + # located in "assets/" + # Or + # someCSS = "https://cdn.example.com/some.css" + js: + # someJS = "some.js" + # located in "assets/" + # Or + # someJS = "https://cdn.example.com/some.js" +seo: + images: [] + # ... --- diff --git a/exampleSite/content/posts/theme-documentation-content/index.en.md b/exampleSite/content/posts/theme-documentation-content/index.en.md index d37d1aab..7252f9e6 100644 --- a/exampleSite/content/posts/theme-documentation-content/index.en.md +++ b/exampleSite/content/posts/theme-documentation-content/index.en.md @@ -83,6 +83,7 @@ images: [] tags: [] categories: [] + featuredImage: "" featuredImagePreview: "" @@ -101,12 +102,11 @@ toc: auto: true code: copy: true - # ... + maxShownLines: 50 math: - enable: true + enable: false # ... mapbox: - accessToken: "" # ... share: enable: true @@ -144,6 +144,7 @@ seo: * **tags**: the tags for the content. * **categories**: the categories for the content. + * **featuredImage**: the featured image for the content. * **featuredImagePreview**: the featured image for the content preview in the home page. diff --git a/exampleSite/content/posts/theme-documentation-content/index.zh-cn.md b/exampleSite/content/posts/theme-documentation-content/index.zh-cn.md index 84b97add..3ba7caea 100644 --- a/exampleSite/content/posts/theme-documentation-content/index.zh-cn.md +++ b/exampleSite/content/posts/theme-documentation-content/index.zh-cn.md @@ -82,6 +82,7 @@ images: [] tags: [] categories: [] + featuredImage: "" featuredImagePreview: "" @@ -100,12 +101,11 @@ toc: auto: true code: copy: true - # ... + maxShownLines: 50 math: - enable: true + enable: false # ... mapbox: - accessToken: "" # ... share: enable: true @@ -143,6 +143,7 @@ seo: * **tags**: 文章的标签. * **categories**: 文章所属的类别. + * **featuredImage**: 文章的特色图片. * **featuredImagePreview**: 用在主页预览的文章特色图片. diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index cf4642d5..66a6c3c8 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -6,9 +6,7 @@ - - {{- block "title" . }}{{ .Site.Title }}{{ end -}} - + {{ block "title" . }}{{ .Site.Title }}{{ end }} {{- partial "head/meta.html" . -}} {{- partial "head/link.html" . -}}