cryogen icon indicating copy to clipboard operation
cryogen copied to clipboard

Example: Display Scroll 2 top Button

Open tjungbauer opened this issue 4 years ago • 3 comments

Hi,

I persoally like scroll 2 top buttons on pages wich are "longer". Here an example how to implement this using simple javascript: https://github.com/tjungbauer/test-blog/commit/000ac53bf22a8df90a7bcc2c3bf16c679f55c1e4

(example theme "blue" was used)

tjungbauer avatar Apr 17 '20 12:04 tjungbauer

Heh, personally I just put the "to top" button/link at the bottom of the page but this is a nice upgrade. If you want to update the theme templates, that would be great. It's just kind of tedious going through all the themes, and I don't have much time to work on Cryogen currently.

No worries if you don't want to update the templates. I can leave this open as an example I guess 😛

lacarmen avatar Apr 17 '20 16:04 lacarmen

Hi, I have updated all 4 example themes too.

plus I have updated the highlight javascript, which now supports yaml for example too.

tjungbauer avatar Apr 18 '20 12:04 tjungbauer

@tjungbauer Where are the changes you describe? Could you be so kind and link to the pull request you have made?

holyjak avatar Oct 05 '21 08:10 holyjak