Chouffy / chouffy.github.io

My notes about hardware and softwares tips & tricks.
http://chouffy.net
Creative Commons Attribution 4.0 International
2 stars 0 forks source link

home_url #1

Closed DRYN07 closed 7 months ago

DRYN07 commented 1 year ago

Have you used the "home_url" setting, by any chance?

As I understand, it should be the "no argument" counterpart of the 'url' setting, like

[site/foo] home_url =       https://example-1.com       https://example-1.com

But it does not work...

I don't always need a search argument, sometimes I just want to open more homepages at the same time.


Sorry if this is not the right place to ask, but I did not find any official place for it on keypirinha's page or on your doc page.

Chouffy commented 1 year ago

Hey @DRYN07 , let's see if I can help you out :) For which module is this setting used?

DRYN07 commented 1 year ago

In the WebSearch module :)

I find a way for it to work but honestly, I don't know why.

If I gave both url and home_url parameters, it works and only opens the home_url. But first, I don't know why I need both of them, and second, what if I would like to mix them? For 1 URL I would like it to add a search word but for the second url I want it to open the homepage? Unfortunately not every website uses GET parameters :/

For example

[site/foo]
url =
      https://example-1.com/%s
      https://example-2.com/%s

home_url =
      https://example-1.com/
      https://example-2.com/
Chouffy commented 7 months ago

Hi @DRYN07 sorry but I didn't had a time to look at it, and I've switched now to Material for MkDocs so I cannot help you anymore 😔 Good luck with that! I'll close this issue