base.html 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  7. <link rel="stylesheet" href="{{ url_for('static', path='css/main.css') }}" />
  8. <link rel="icon" type="image/png" href="{{ url_for('static', path='img/favicon.png') }}" />
  9. <title>{{ site_title }}</title>
  10. <meta name="description" content="{{ site_description }}" />
  11. <!-- The Open Graph Protocol meta tags -->
  12. <meta property="og:url" content="{{ request.url }}" />
  13. <meta property="og:type" content="website" />
  14. <meta property="og:title" content="{{ site_title }}" />
  15. <meta property="og:description" content="{{ site_description }}" />
  16. <meta property="twitter:domain" content="{{ request.url.hostname }}" />
  17. <meta property="twitter:url" content="{{ request.url }}" />
  18. <meta name="twitter:title" content="{{ site_title }}" />
  19. <meta name="twitter:description" content="{{ site_description }}" />
  20. </head>
  21. <body>
  22. <div style="text-align: center">
  23. <a href="/">
  24. <img src="{{ url_for('static', path='img/logo.png') }}" alt="logo" />
  25. </a>
  26. <form id="search" role="search" method="get" action="/define.php">
  27. <input
  28. autocomplete="off"
  29. type="search"
  30. id="term"
  31. name="term"
  32. placeholder="Search"
  33. aria-label="Search"
  34. value="{{ term if request.url.path == '/define.php' else '' }}"
  35. autofocus
  36. />
  37. <button>Go</button>
  38. </form>
  39. <a href="/random.php">Random</a>
  40. <br />
  41. <a href="https://git.vern.cc/cobra/rural-dict">Source Code</a>
  42. </div>
  43. <br />
  44. {% block content %}{% endblock %}
  45. </body>
  46. </html>