website icon indicating copy to clipboard operation
website copied to clipboard

Syntax Highlighting

Open DanielLaubacher opened this issue 8 years ago • 7 comments

It would be nice to use a theme with syntax highlighting. It makes reading code samples easier.

DanielLaubacher avatar Oct 19 '18 01:10 DanielLaubacher

@dlaub3 yes

thinkerou avatar Oct 19 '18 01:10 thinkerou

Should we fork the current theme? It appears the theme wasn't originally intended for code samples so I'm guessing they won't accept adding prism.js as a PR.

DanielLaubacher avatar Oct 19 '18 01:10 DanielLaubacher

@thinkerou @dlaub3 or change to another theme which has code Syntax Highlighting. I like the style of Echo website:

guide___echo_-_high_performance__minimalist_go_web_framework

The left sidebar is very useful to search what I want.

appleboy avatar Oct 19 '18 01:10 appleboy

It would also be nice to look for a theme with Algolia integration. I believe they have a free tier as long as you display the logo in the search results. I like doc sites that use it. It may be something to setup later.

DanielLaubacher avatar Oct 19 '18 01:10 DanielLaubacher

hugo could use multi-themes, and hope page more clean more better.

thinkerou avatar Oct 19 '18 03:10 thinkerou

We need two themes for a landing page and documentation.

appleboy avatar Oct 19 '18 04:10 appleboy

Now have supported, please see #26

thinkerou avatar Nov 25 '18 13:11 thinkerou