mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-24 05:05:20 -04:00
(search) add little reminder comments to keep search and <Header> in sync
This commit is contained in:
parent
4728f0433c
commit
9f5b83583d
@ -288,6 +288,8 @@ export default defineComponent({
|
||||
'darkMode',
|
||||
]),
|
||||
links(): HeaderLink[] {
|
||||
// remember to modify ~/server/api/search.get.ts, page kind too
|
||||
|
||||
const links: HeaderLink[] = [];
|
||||
|
||||
links.push({
|
||||
|
@ -147,6 +147,8 @@ const kinds: SearchKind[] = [
|
||||
},
|
||||
},
|
||||
async getDocuments(config: Config): Promise<SearchDocument[]> {
|
||||
// remember to modify ~/components/Header.vue too
|
||||
|
||||
const documents: SearchDocument[] = [];
|
||||
const addDocument = ({ url, title, content }: { url: string; title: string; content?: string }) => {
|
||||
documents.push({
|
||||
|
Loading…
x
Reference in New Issue
Block a user