Skip to content

Commit 82ab408

Browse files
authored
Removed algolia, implemented native sodo search (#20)
1 parent 65a94ae commit 82ab408

File tree

14 files changed

+64
-21236
lines changed

14 files changed

+64
-21236
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ Our Ghost v5 Theme made for [SREDevOps.org](https://sredevops.org) based on Tail
1515

1616
## To Do / Roadmap
1717

18-
- [ ] Missing SVG Icons
18+
- [x] Missing SVG Icons
1919
- [ ] Granular internationalization using custom post templates
2020
- [ ] Ghost Cards assets CSS Cleanup
2121
- [ ] Migrate Tailwind classes from inline styles into stylesheets files
22-
- [ ] Improve Algolia Search
22+
- ~~[ ] Improve Algolia Search~~ (Replaced with Ghost Search)
2323
- [ ] Implement custom options
2424

2525
## Repo

assets/built/algolia.js

Lines changed: 0 additions & 13 deletions
This file was deleted.

assets/built/main.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/built/screen.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/screen.css

Lines changed: 0 additions & 108 deletions
Original file line numberDiff line numberDiff line change
@@ -530,114 +530,6 @@ figcaption a {
530530
/* Black w/ opacity */
531531
}
532532

533-
/* Modal Content */
534-
.modal-content {
535-
background-color: transparent;
536-
margin: 15% auto;
537-
538-
}
539-
540-
/* The Close Button */
541-
.close {
542-
color: #aaa;
543-
float: right;
544-
font-size: 2rem;
545-
font-weight: bold;
546-
}
547-
548-
.close:hover,
549-
.close:focus {
550-
color: #3d3d3d;
551-
text-decoration: none;
552-
cursor: pointer;
553-
}
554-
555-
/* ------------------------ Agolia search UI ------------------------ */
556-
557-
#search_wrapper {
558-
@apply fixed w-full h-screen left-0 top-0 backdrop-blur-sm flex justify-center z-[9999];
559-
}
560-
561-
.agolia_modal_box {
562-
background: var(--background-color);
563-
@apply max-w-xl min-w-[90%] max-h-[80%] self-start mt-[10vmin] rounded-xl border-t border-gray-100 border-opacity-10;
564-
}
565-
566-
.agolia_modal_box header {
567-
@apply px-4 py-2 border-b border-gray-100 border-opacity-10;
568-
}
569-
570-
.agolia_modal_box .agolia_search_hits {
571-
@apply px-4 py-8 overflow-y-auto max-h-96;
572-
}
573-
574-
.agolia_modal_box footer {
575-
@apply flex justify-end border-t border-gray-100 border-opacity-10;
576-
}
577-
578-
.agolia_modal_box footer .agolia_logo_wrapper {
579-
@apply flex items-center p-5 gap-x-3;
580-
}
581-
582-
.agolia_modal_box footer .agolia_logo_wrapper span {
583-
@apply text-gray-500 text-[12px] font-mono block;
584-
}
585-
586-
/* agolia css overwrite rules */
587-
588-
.ais-SearchBox-form {
589-
@apply w-full;
590-
}
591-
592-
.ais-SearchBox-form input {
593-
@apply w-full px-10 py-3 bg-transparent outline-none text-gray-50;
594-
}
595-
596-
.ais-SearchBox-submit {
597-
@apply absolute -translate-y-1/2 left-2 top-1/2;
598-
}
599-
600-
.ais-SearchBox-submitIcon {
601-
@apply w-4 h-4 fill-slate-400;
602-
}
603-
604-
.ais-SearchBox-reset {
605-
@apply absolute -translate-y-1/2 right-2 top-1/2;
606-
}
607-
608-
.ais-SearchBox-resetIcon {
609-
@apply w-3 h-3 fill-slate-400;
610-
}
611-
612-
.ais-Hits-list {
613-
@apply flex flex-col gap-y-3;
614-
}
615-
616-
.ais-Hits--empty {
617-
@apply font-medium text-center text-slate-400;
618-
}
619-
620-
.ais-Highlight-highlighted,
621-
.ais-Snippet-highlighted {
622-
@apply font-semibold text-white bg-transparent;
623-
}
624-
625-
/* agolia hit item template */
626-
.hit-item {
627-
@apply flex flex-col cursor-pointer bg-[#e2e8f00d] p-3.5 rounded-lg;
628-
}
629-
630-
.hit-title {
631-
@apply flex items-center font-medium text-slate-400;
632-
}
633-
634-
.hit-type {
635-
@apply px-1.5 py-0.5 text-xs bg-[#fff3] rounded-md ml-3 capitalize;
636-
}
637-
638-
.hit-description {
639-
@apply mt-1 text-sm text-slate-400;
640-
}
641533

642534
/* ------------------------ Page Recommends ------------------------ */
643535

0 commit comments

Comments
 (0)