Git Product home page Git Product logo

Comments (3)

hellquist avatar hellquist commented on June 12, 2024

Hmm, actually I downloaded the skeleton that you had linked in another reply to another issue. That skeleton is 200mb. In that one search is working just fine. The first skeleton I downloaded (1.03?) was only 80mb in comparison. In that one search was not working. Regardless, I don't think this is a bug to report as an issue.

from grav-theme-scholar.

hellquist avatar hellquist commented on June 12, 2024

Ah, haha, sorry for being annoying, I truly love the idea of this theme, I think it is a brilliant thing, and I really want it to work. However, in that big skeleton where the search indeed is searching and then displaying results, the headlines of the results have a "localhost" in the URL path for the relevant page. Seems like a simple omission of a site variable in the code. Just so you know. :)

This means that headlines for search do not work to click on as it will not take me to the correct result.

On a similar note I noticed that "tags" and "category" on the blog posts, where they are linked (not always) also do not lead to a listing of the tag/category.

from grav-theme-scholar.

OleVik avatar OleVik commented on June 12, 2024

Yes, this is as intended. The theme's default engine for searching does not use live data, but statically generated data. Links are by default absolute, not relative, because they need to work outside of non-standard contexts. The same applies to the metadata-links; they point to a search-page that is non-existent apart from dynamically generated routing.

All of which is to say that search-data must be generated when the theme is installed, not before. Accommodations could be made in the Static Generator plugin though, for predetermined base URLs.

from grav-theme-scholar.

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.