mirror of https://github.com/jpanther/congo.git
parent
f007a1f294
commit
6fc462136f
|
@ -8,11 +8,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
||||||
|
- Front matter support for showing or hiding comments on a per article basis
|
||||||
- `showCopyright` and `showThemeAttribution` parameters that allow more control over how the site footer is displayed
|
- `showCopyright` and `showThemeAttribution` parameters that allow more control over how the site footer is displayed
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
- Search will now return results for all page types, including lists and taxonomies
|
- Search will now return results for all page types, including lists and taxonomies
|
||||||
|
- Comments partials are now better considered within the page layout
|
||||||
- Upgrade to Tailwind v3.1.4 ([#225](https://github.com/jpanther/congo/pull/225))
|
- Upgrade to Tailwind v3.1.4 ([#225](https://github.com/jpanther/congo/pull/225))
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
|
@ -2059,16 +2059,16 @@ body button {
|
||||||
border-color: rgba(var(--color-neutral-400), var(--tw-border-opacity));
|
border-color: rgba(var(--color-neutral-400), var(--tw-border-opacity));
|
||||||
}
|
}
|
||||||
|
|
||||||
.border-neutral-200 {
|
|
||||||
--tw-border-opacity: 1;
|
|
||||||
border-color: rgba(var(--color-neutral-200), var(--tw-border-opacity));
|
|
||||||
}
|
|
||||||
|
|
||||||
.border-neutral-300 {
|
.border-neutral-300 {
|
||||||
--tw-border-opacity: 1;
|
--tw-border-opacity: 1;
|
||||||
border-color: rgba(var(--color-neutral-300), var(--tw-border-opacity));
|
border-color: rgba(var(--color-neutral-300), var(--tw-border-opacity));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.border-neutral-200 {
|
||||||
|
--tw-border-opacity: 1;
|
||||||
|
border-color: rgba(var(--color-neutral-200), var(--tw-border-opacity));
|
||||||
|
}
|
||||||
|
|
||||||
.border-primary-400 {
|
.border-primary-400 {
|
||||||
--tw-border-opacity: 1;
|
--tw-border-opacity: 1;
|
||||||
border-color: rgba(var(--color-primary-400), var(--tw-border-opacity));
|
border-color: rgba(var(--color-primary-400), var(--tw-border-opacity));
|
||||||
|
@ -2203,14 +2203,14 @@ body button {
|
||||||
padding-top: 2rem;
|
padding-top: 2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pl-2 {
|
|
||||||
padding-left: 0.5rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.pt-3 {
|
.pt-3 {
|
||||||
padding-top: 0.75rem;
|
padding-top: 0.75rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.pl-2 {
|
||||||
|
padding-left: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
.pb-4 {
|
.pb-4 {
|
||||||
padding-bottom: 1rem;
|
padding-bottom: 1rem;
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,6 +39,7 @@ enableCodeCopy = false
|
||||||
showTableOfContents = false
|
showTableOfContents = false
|
||||||
showTaxonomies = false
|
showTaxonomies = false
|
||||||
showWordCount = false
|
showWordCount = false
|
||||||
|
showComments = false
|
||||||
# sharingLinks = ["facebook", "twitter", "pinterest", "reddit", "linkedin", "email"]
|
# sharingLinks = ["facebook", "twitter", "pinterest", "reddit", "linkedin", "email"]
|
||||||
|
|
||||||
[list]
|
[list]
|
||||||
|
|
|
@ -39,6 +39,7 @@ mainSections = ["samples"]
|
||||||
showTableOfContents = true
|
showTableOfContents = true
|
||||||
showTaxonomies = false
|
showTaxonomies = false
|
||||||
showWordCount = false
|
showWordCount = false
|
||||||
|
showComments = false
|
||||||
# sharingLinks = ["facebook", "twitter", "pinterest", "reddit", "linkedin", "email"]
|
# sharingLinks = ["facebook", "twitter", "pinterest", "reddit", "linkedin", "email"]
|
||||||
|
|
||||||
[list]
|
[list]
|
||||||
|
|
|
@ -142,6 +142,7 @@ Many of the article defaults here can be overridden on a per article basis by sp
|
||||||
|`article.showTableOfContents`|`false`|Whether or not the table of contents is displayed on articles.|
|
|`article.showTableOfContents`|`false`|Whether or not the table of contents is displayed on articles.|
|
||||||
|`article.showTaxonomies`|`false`|Whether or not the taxonomies related to this article are displayed.|
|
|`article.showTaxonomies`|`false`|Whether or not the taxonomies related to this article are displayed.|
|
||||||
|`article.showWordCount`|`false`|Whether or not article word counts are displayed.|
|
|`article.showWordCount`|`false`|Whether or not article word counts are displayed.|
|
||||||
|
|`article.showComments`|`false`|Whether or not the [comments partial]({{< ref "partials#comments" >}}) is included after the article footer.|
|
||||||
|`article.sharingLinks`|_Not set_|Which sharing links to display at the end of each article. When not provided, or set to `false` no links will be displayed.|
|
|`article.sharingLinks`|_Not set_|Which sharing links to display at the end of each article. When not provided, or set to `false` no links will be displayed.|
|
||||||
|`list.showBreadcrumbs`|`false`|Whether or not breadcrumbs are displayed in the header on list pages.|
|
|`list.showBreadcrumbs`|`false`|Whether or not breadcrumbs are displayed in the header on list pages.|
|
||||||
|`list.showTableOfContents`|`false`|Whether or not the table of contents is displayed on list pages.|
|
|`list.showTableOfContents`|`false`|Whether or not the table of contents is displayed on list pages.|
|
||||||
|
|
|
@ -35,6 +35,7 @@ Front matter parameter default values are inherited from the theme's [base confi
|
||||||
|`showTaxonomies`|`article.showTaxonomies`|Whether or not the taxonomies that relate to this article are displayed.|
|
|`showTaxonomies`|`article.showTaxonomies`|Whether or not the taxonomies that relate to this article are displayed.|
|
||||||
|`showTableOfContents`|`article.showTableOfContents`|Whether or not the table of contents is displayed on this article.|
|
|`showTableOfContents`|`article.showTableOfContents`|Whether or not the table of contents is displayed on this article.|
|
||||||
|`showWordCount`|`article.showWordCount`|Whether or not the article word count is displayed.|
|
|`showWordCount`|`article.showWordCount`|Whether or not the article word count is displayed.|
|
||||||
|
|`showComments`|`article.showComments`|Whether or not the [comments partial]({{< ref "partials#comments" >}}) is included after the article footer.|
|
||||||
|`showSummary`|`list.showSummary`|Whether or not the article summary should be displayed on list pages.|
|
|`showSummary`|`list.showSummary`|Whether or not the article summary should be displayed on list pages.|
|
||||||
|`summary`|Auto generated using `summaryLength` (see [site configuration]({{< ref "configuration#site-configuration" >}}))|When `showSummary` is enabled, this is the Markdown string to be used as the summary for this article.|
|
|`summary`|Auto generated using `summaryLength` (see [site configuration]({{< ref "configuration#site-configuration" >}}))|When `showSummary` is enabled, this is the Markdown string to be used as the summary for this article.|
|
||||||
|`xml`|`true` unless excluded by `sitemap.excludedKinds`|Whether or not this article is included in the generated `/sitemap.xml` file.|
|
|`xml`|`true` unless excluded by `sitemap.excludedKinds`|Whether or not this article is included in the generated `/sitemap.xml` file.|
|
||||||
|
|
|
@ -27,9 +27,18 @@
|
||||||
{{ partial "author.html" . }}
|
{{ partial "author.html" . }}
|
||||||
{{ partial "sharing-links.html" . }}
|
{{ partial "sharing-links.html" . }}
|
||||||
{{ partial "article-pagination.html" . }}
|
{{ partial "article-pagination.html" . }}
|
||||||
|
{{ if .Params.showComments | default (.Site.Params.article.showComments | default false) }}
|
||||||
|
{{ if templates.Exists "partials/comments.html" }}
|
||||||
|
<div class="pt-3">
|
||||||
|
<hr class="border-dotted border-neutral-300 dark:border-neutral-600" />
|
||||||
|
<div class="pt-3">
|
||||||
|
{{ partial "comments.html" . }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{{ else }}
|
||||||
|
{{ warnf "[CONGO] Comments are enabled for %s but no comments partial exists." .File.Path }}
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
</footer>
|
</footer>
|
||||||
{{ if templates.Exists "partials/comments.html" }}
|
|
||||||
{{ partial "comments.html" . }}
|
|
||||||
{{ end }}
|
|
||||||
</article>
|
</article>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Reference in New Issue