Giter Club home page Giter Club logo

Comments (14)

alex-shpak avatar alex-shpak commented on August 23, 2024 2

image

from hugo-book.

alex-shpak avatar alex-shpak commented on August 23, 2024 2

Hi!
I suppose it's due to title not being jsonified as well here: https://github.com/alex-shpak/hugo-book/blob/master/assets/search-data.js#L8

Can you please check place where error given and post it here? Or if your website is public to share a link so I can check it.

Edit: I pushed changes to master, please try now.

from hugo-book.

alex-shpak avatar alex-shpak commented on August 23, 2024 1

Changes are now pushed to master
https://raw.githubusercontent.com/alex-shpak/hugo-book/master/images/screenshot.png

Though, there is still room for improvement in future.

from hugo-book.

alex-shpak avatar alex-shpak commented on August 23, 2024

Hi!
Yes, it would be nice to have, so far I didn't develop vision on best way implementing this, so It's in TODO state.

from hugo-book.

alex-shpak avatar alex-shpak commented on August 23, 2024

Work is started at feature/search branch

from hugo-book.

alex-shpak avatar alex-shpak commented on August 23, 2024

Now I consider two options:

  • Keep search bar under site title, and load index on first focus
  • Create separate page /docs/search to keep all search functionality, to not load lunr and index on each page.

๐Ÿค”

from hugo-book.

Spejbl123 avatar Spejbl123 commented on August 23, 2024

I'm getting these errors when typing into search bar. Happening in Firefox and Chrome.

image
Do you know what could be wrong? Thanks.

from hugo-book.

Spejbl123 avatar Spejbl123 commented on August 23, 2024

Works flawlessly now! Thank you for a quick fix :)

from hugo-book.

mistermantas avatar mistermantas commented on August 23, 2024

Funnily enough, I ended up setting this up myself from the Hugo Search doc: https://gist.github.com/eddiewebb/735feb48f50f0ddd65ae5606a1cb41ae

Also, the search on the live demo here doesnโ€™t seem to work? Itโ€™s got a readonly attribute.

https://themes.gohugo.io/theme/hugo-book/

from hugo-book.

jog968 avatar jog968 commented on August 23, 2024

Hi Alex,
first of all thank you very much for your excellent work.

I am using tags and categories for my documents and find in the search results links to list pages for categories and tags. So far this is fine. Unfortunately I find after creation of the site in the category and tag folders only xml files but no html files for the category/tag pages. Would it be possible to enhance the theme with the ability to create those pages too?

Furthermore if I could have some more wishes: It would be great if the single pages could append a footer with a table or an unordered list with two bullets. One for categories and one for tags showing the assigened terms as a comma separated and linked list? Finally it would be a great improvement to the search results, when links to category/tag pages could be distinguished from content pages by a marker or label.

from hugo-book.

alex-shpak avatar alex-shpak commented on August 23, 2024

@jog968 Hi! Thanks,
I think It would be reasonable to create these feature requests as separate issues in github.

In general, main goal of theme is documentation so I added minimal blogging features, but I would say adding tags and categories is ok. Not top priority tho. PRs are welcome :)

On lists with tags and categories, I think it's too specific feature for generic website, I think better is to customize your footer partial and add what you want.

from hugo-book.

alex-shpak avatar alex-shpak commented on August 23, 2024

@mistermantas Regarding search on themes.gohugo.io, this is absURL issue, I try to avoid absURL in theme, but they are required there because each theme is subfolder.

Not sure that I want to introduce absolute link to fix that ๐Ÿค”

from hugo-book.

jog968 avatar jog968 commented on August 23, 2024

@alex-shpak: Hi and Thanks,
I'm glad to hear that tags and categories can be added. Priority is not so important. I will wait.

Regarding lists I will try to do this by myself. It is time for me to learn some basics.

from hugo-book.

alex-shpak avatar alex-shpak commented on August 23, 2024

Closing this issue.

from hugo-book.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.