Fix hardcoded search method in header template

Should use GET if user has configured "GET only" in their config

Closes #446
main
Ben Busby 2021-09-29 20:40:10 -06:00
parent 57a7bf6e95
commit b189ea3963
No known key found for this signature in database
GPG Key ID: 339B7B7EB5333D14
1 changed files with 7 additions and 2 deletions

View File

@ -1,7 +1,9 @@
{% if mobile %} {% if mobile %}
<header> <header>
<div class="bz1lBb header-div"> <div class="bz1lBb header-div">
<form class="search-form Pg70bf" id="search-form" method="POST"> <form class="search-form Pg70bf"
id="search-form"
method="{{ 'GET' if config.get_only else 'POST' }}">
<a class="logo-link mobile-logo" href="/"> <a class="logo-link mobile-logo" href="/">
<div id="mobile-header-logo"> <div id="mobile-header-logo">
{{ logo|safe }} {{ logo|safe }}
@ -40,7 +42,10 @@
</a> </a>
</div> </div>
<div class="search-div"> <div class="search-div">
<form id="search-form" class="search-form" id="sf" method="POST"> <form id="search-form"
class="search-form"
id="sf"
method="{{ 'GET' if config.get_only else 'POST' }}">
<div class="autocomplete header-autocomplete"> <div class="autocomplete header-autocomplete">
<div style="width: 100%; display: flex"> <div style="width: 100%; display: flex">
<input <input