Jul-04-2020, 05:16 PM
(Jul-04-2020, 09:54 AM)ibreeden Wrote: Well that is quite a long story. Not everybody wants to read all this. And you are not very specific about what you are asking. From the title we learn: "Creating a link that takes the user to a random page". Is that what you want? Does it not give the expected result or do you get an error message?
You will have to elaborate on what is happening. Test your code bit by bit. Is it the functionutil.list_entries()
that does not give the expected result?
Sorry I edited my original post since I figured that part out. I forgot to change the title - didn't know you could.
Right now I'm having trouble conceptualizing on how to do the search function.
When I type in something into the search box and press enter, it takes me to the original search page but with a ?search=<input> extension. I didn't type that code so I'm assuming that's automatic from a search box.
I'm wondering how I can get that variable from the URL and use it to search through the markdown files I have.