Skip to content
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

Tags page #2

Open
yichnal opened this issue Jan 19, 2021 · 5 comments
Open

Tags page #2

yichnal opened this issue Jan 19, 2021 · 5 comments

Comments

@yichnal
Copy link

yichnal commented Jan 19, 2021

How is it supposed to work exactly ?
My routes. yaml is the default one. There is a link to site/tag in the Settings/Design/Navigation, what needs to be added ?
Creating a page with URL /tag creates te page, which stays empty :/
(it works on my old sites, not on this one).
tnx

@yichnal
Copy link
Author

yichnal commented Jan 23, 2021

routes.yaml :

routes:
  /tags/: tag

collections:
  /:
    permalink: /{slug}/
    template: index

taxonomies:
  tag: /tag/{slug}/
  author: /author/{slug}/

Fetching url/tags yield to this error :

[tag.hbs] The {{pagination}} helper was used outside of a paginated context. See https://ghost.org/docs/api/handlebars-themes/helpers/pagination/.

@godofredoninja
Copy link
Owner

Hi @StephaneFr

How are you?

Ques you want to have on the route https:domain.com/tags?

If what you want is to have a list of all the tags ..

Sorry to tell you that I have not created a template to list all the tags.

If that is the case. let me know. I will give me some time to add said template

😄

@yichnal
Copy link
Author

yichnal commented Jan 23, 2021

Hi ! I'm fine and safe, thank you @godofredoninja !

Is it a difficult/long task to do exactly the same as : https://godofredo.ninja/tags/ ?

Thanks

@godofredoninja
Copy link
Owner

Hello, I have made a small modification. This modification is temporary but it works fine. When I have time I will make a nice update to this theme.

If you have suggestions for improvement let me know.

Tags Page

A page will be displayed with all tags sorted from highest to lowest number of articles.

  • Create a new page
  • Choose your favorite url and title
  • Select the Archive Tags template from the Template dropdown
  • Publish the page
  • To add the page to the navigation

for example

@yichnal
Copy link
Author

yichnal commented Jan 27, 2021

Works perfectly !

Possible enhancements :

  • 1 stories -> 1 story (2 stories)
  • add overlay fade effect on mouse over.

You can also add : https://github.com/stephanefr/Paway/blob/master/locales/fr.json for the French translation ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants