mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-19 15:44:39 -04:00
Add admonition note for CJKLanguages and Hugo summaries
This commit is contained in:
parent
8bfc882872
commit
09aed316d4
@ -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.
|
||||
* **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
|
||||
|
||||
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;
|
||||
font-weight: bolder;
|
||||
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"
|
||||
> strong > em > code {
|
||||
// color: $hugo-pink;
|
||||
|
Loading…
x
Reference in New Issue
Block a user