How can i get search params from my url?
For example: http://localhost:1313/search/?keyword=a&page=apps
How can i access the variable page
in the template.
I try to use .Permalink
but result only return http://localhost:1313/search/
How can i get search params from my url?
For example: http://localhost:1313/search/?keyword=a&page=apps
How can i access the variable page
in the template.
I try to use .Permalink
but result only return http://localhost:1313/search/
.Permalink is not the url in your address bar. You don’t have understood what a SSG is, I suggest your read the site. You are not accessing any hugo variable at runtime, as for getting search params from the url it requires javascript.