You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, thanks for a great theme! And great documentation, it was easy to get started with such thorough docs 🙇
To get started, I just created a dummy post with some random things, including some parts of the markdown.md document. The contents of the file are provided below.
As you can see, it is a pretty long (tall?) document, so I was expecting that the scrollToTop button would appear for this article. But no, I could not get it working and had a hard time debug why, in particular since this was my only long document.
In the end, I figured out why, and it is due to this clause of minimum 200 words required:
{{ if and (.Site.Params.footer.showScrollToTop | default true) (gt .WordCount 200) }}
I suggest to either:
Use some other logic for the minimum size of document to enable the scrollToTop button, as it seems number of words is to coarse. The document below might not have many words, but it is definitely long enough to benefit from that button IMO.
Reduce the minimum number of words. I am not sure how much it would "hurt" if this button gets shown for shorter articles?
Document here under footer.showScrollToTop that there is a minimum requirement for x words for the button to be shown in an article. That would have helped me a lot in this debugging :)
Start of my dummy document:
I am regular text. This is okay.
Heading H2
Here is some Go for ya.
package main
funcmain() {
fmt.Println("Hello, World!")
}
Pictures are nice
But can I add them via reference tags? Nope, that doesn't work. Okay, I can use just as a convenience when writing, and then change to regular Markdown syntax on publishing.
UPDATE: all images needs to be moved into the static folder anyway, so some "post processing" before publishing would be required any way.
Tables
Tables aren't part of the core Markdown spec, but Hugo supports supports them out-of-the-box.
Name
Age
Bob
27
Alice
23
Inline Markdown within tables
Italics
Bold
Code
italics
bold
code
List Types
Ordered List
First item
Second item
Third item
Unordered List
List item
Another item
And another item
Nested list
Fruit
Apple
Orange
Banana
Dairy
Milk
Cheese
Other Elements — abbr, sub, sup, kbd, mark
GIF is a bitmap image format.
H2O
Xn + Yn = Zn
Press CTRL+ALT+Delete to end the session.
Most salamanders are nocturnal, and hunt for insects, worms, and other small creatures.
End dummy document.
Theme version
v2.7.6
Hugo version
hugo v0.121.1-00b46fed8e47f7bb0a85d7cfc2d9f1356379b740+extended darwin/arm64
Which browser rendering engines are you seeing the problem on?
WebKit (Safari)
URL to sample repository or website
No response
Hugo output or build error messages
No response
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had any recent activity.
If you are still experiencing this issue, please review the issue history and add a reply with any requested and/or additional information in order to keep the issue open.
This issue will automatically close in 30 days if no further activity occurs.
Issue description
Hi, thanks for a great theme! And great documentation, it was easy to get started with such thorough docs 🙇
To get started, I just created a dummy post with some random things, including some parts of the markdown.md document. The contents of the file are provided below.
As you can see, it is a pretty long (tall?) document, so I was expecting that the
scrollToTop
button would appear for this article. But no, I could not get it working and had a hard time debug why, in particular since this was my only long document.In the end, I figured out why, and it is due to this clause of minimum 200 words required:
congo/layouts/_default/baseof.html
Line 32 in c8f648d
I suggest to either:
scrollToTop
button, as it seems number of words is to coarse. The document below might not have many words, but it is definitely long enough to benefit from that button IMO.footer.showScrollToTop
that there is a minimum requirement forx
words for the button to be shown in an article. That would have helped me a lot in this debugging :)Start of my dummy document:
I am regular text. This is okay.
Heading H2
Here is some Go for ya.
Pictures are nice
But can I add them via reference tags? Nope, that doesn't work. Okay, I can use just as a convenience when writing, and then change to regular Markdown syntax on publishing.
UPDATE: all images needs to be moved into the
static
folder anyway, so some "post processing" before publishing would be required any way.Tables
Tables aren't part of the core Markdown spec, but Hugo supports supports them out-of-the-box.
Inline Markdown within tables
code
List Types
Ordered List
Unordered List
Nested list
Other Elements — abbr, sub, sup, kbd, mark
GIF is a bitmap image format.
H2O
Xn + Yn = Zn
Press CTRL+ALT+Delete to end the session.
Most salamanders are nocturnal, and hunt for insects, worms, and other small creatures.
End dummy document.
Theme version
v2.7.6
Hugo version
hugo v0.121.1-00b46fed8e47f7bb0a85d7cfc2d9f1356379b740+extended darwin/arm64
Which browser rendering engines are you seeing the problem on?
WebKit (Safari)
URL to sample repository or website
No response
Hugo output or build error messages
No response
The text was updated successfully, but these errors were encountered: