New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alphabetical Tag Cloud #58

Closed
vonbrownie opened this Issue Nov 8, 2017 · 2 comments

Comments

2 participants
@vonbrownie
Copy link

vonbrownie commented Nov 8, 2017

Hello! I am setting up my first Hugo site using the Minimo theme and I am trying to get my tag cloud to display the tags in alphabetical order.

The relevant code (I believe) is range .Data.Terms.Alphabetical and is found in the theme’s term_cloud.html partial, but the terms are displayed in random order nonetheless. Trying ByCount as a test also has no effect. I notice the example site's tag cloud is also in random order.

Any idea what I need to change in this theme’s template to generate the tags in alphabetical order? Thanks for any help!

@MunifTanjim

This comment has been minimized.

Copy link
Owner

MunifTanjim commented Nov 8, 2017

Update to the latest version and use the noTermCloudShuffle option in you config.toml file. (Implementation: 0bf267e)

Anyway, the shuffling was done in the main.js file. That's why changing term_cloud.html partial had no effect.

@vonbrownie

This comment has been minimized.

Copy link

vonbrownie commented Nov 8, 2017

@MunifTanjim I updated, made the necessary modifications, and now have a working alphabetical tag cloud. Thank you for adding the feature and for creating a great theme!

@vonbrownie vonbrownie closed this Nov 8, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment