mirror of
https://github.com/gohugoio/hugo.git
synced 2026-08-24 15:28:54 +00:00
Add admonition note for CJKLanguages and Hugo summaries
This commit is contained in:
@@ -31,6 +31,10 @@ By default, Hugo automatically takes the first 70 words of your content as its s
|
|||||||
* **Pros:** Automatic, no additional work on your part.
|
* **Pros:** Automatic, no additional work on your part.
|
||||||
* **Cons:** All HTML tags are stripped from the summary, and the first 70 words, whether they belong to a heading or to different paragraphs, are all lumped into one paragraph.
|
* **Cons:** All HTML tags are stripped from the summary, and the first 70 words, whether they belong to a heading or to different paragraphs, are all lumped into one paragraph.
|
||||||
|
|
||||||
|
{{% note %}}
|
||||||
|
The Hugo-defined summaries are set to use word count by default. However, "word count" is relatively defined. If you are creating content in a CJK language and want to use Hugo's automatic summary splitting, set `hasCJKLanguage` to `true` in you [site configuration](/getting-started/configuration/).
|
||||||
|
{{% /note %}}
|
||||||
|
|
||||||
### User-defined: Manual Summary Splitting
|
### User-defined: Manual Summary Splitting
|
||||||
|
|
||||||
Alternatively, you may add the <code><!--more--></code> summary divider where you want to split the article. For [org content][org], use <code># more</code>) where you want to split the article. Content that comes before the summary divider will be used as that content's summary and stored in the `.Summary` page variable with all HTML formatting intact.
|
Alternatively, you may add the <code><!--more--></code> summary divider where you want to split the article. For [org content][org], use <code># more</code>) where you want to split the article. Content that comes before the summary divider will be used as that content's summary and stored in the `.Summary` page variable with all HTML formatting intact.
|
||||||
|
|||||||
@@ -84,11 +84,6 @@ aside {
|
|||||||
margin: 0px;
|
margin: 0px;
|
||||||
font-weight: bolder;
|
font-weight: bolder;
|
||||||
margin-right: 1em;
|
margin-right: 1em;
|
||||||
// background-color:$hugo-gray-ultra-light;
|
|
||||||
// code {
|
|
||||||
// font-size: .9em;
|
|
||||||
// // color:$hugo-pink;
|
|
||||||
// }
|
|
||||||
//basically allows you to style with ***word*** in markdown for words like "Required"
|
//basically allows you to style with ***word*** in markdown for words like "Required"
|
||||||
> strong > em > code {
|
> strong > em > code {
|
||||||
// color: $hugo-pink;
|
// color: $hugo-pink;
|
||||||
|
|||||||
Reference in New Issue
Block a user