0

Add basic searchbar (#5)

Co-authored-by: Tulir Asokan <tulir@maunium.net>
This commit is contained in:
William Kray
2023-06-26 12:07:01 -07:00
committed by GitHub
parent 212bd67ca5
commit ed5c696655
4 changed files with 27 additions and 1 deletions

View File

@@ -19,6 +19,7 @@
To add your own plugins, send a pull request to
<a href="https://github.com/maubot/plugins.maubot.xyz">github.com/maubot/plugins.maubot.xyz</a>
</p>
<input class="search" type="text" id="search-input" placeholder="Search..." onkeyup="searchPlugins()">
</header>
<main>
{{ range index $.Site.Data.plugins.official }}
@@ -32,5 +33,7 @@
<a href="https://github.com/maubot/plugins">Website source</a>
- Licensed under <a href="https://mau.fi/LICENSE">CC-BY-SA-4.0</a>
</footer>
<script type="module" src="/index.js"></script>
</body>
</html>

View File

@@ -1,5 +1,5 @@
<div class="plugin">
<h3>{{ .name }}</h3>
<h3 class="title">{{ .name }}</h3>
<div class="metadata">
<div class="author">Author: {{ .author }}</div>
<div class="license">License: {{ or .license "unknown" }}</div>