Enabling search for pages?
Is there a way to enable search for certain pages? I am talking about "user-defined" pages, i. e. stuff in /Pages or with Page: yes, not something like the archives page.
Posts work perfectly, but pages, no matter whether they are stored inside or outside of /Pages, do not work, even with the following metadata:
Search: yes
Is this supposed to work somehow? Considering quite a few people use Blot for / as their "digital garden" / notes / information store, being able to search these pages would be very helpful.
After re-reading the documentation, it seems like enabling / disabling search is only possible for posts (at least the Search:
metadata documentation explicitely mentions posts).
Is there a reason why pages can not be searched, even if Search: yes
is set? It seems somewhat counterintuitive to me, especially since the whole codebase for parsing, indexing etc. is already in place and Search:
could simply default to no
for pages. Also, like mentioned above, pages are often "abused" for stuff which should be searchable.
Good catch! I will ensure that if you opt-in to search for a specific page via metadata, that page is always indexed by your site's search engine
Answered a year ago · Edit answerThis should now be fixed – if you edit the page to trigger a rebuild, it should now be indexed by your site's search engine
Answered 10 months ago · Edit answerThis works yay! I noticed the date is excluded from shown results (which do show up for posts). Is there a way to ensure dates are shown, too?
Thanks. Ray
Answered 3 days ago · Edit answerPages don't have dates by design – I'd argue if you want dates you should use posts? You can still add a link to a post to your site's menu. Happy to listen to an opposing view, but in my mind datelessness is an important attribute of a page (as opposed to a post), e.g. an about or contact page.
Answered 11 hours ago · Edit answerI am using pages for my Zettelkasten which will have a lot of atomic entries and I keep blogging regular posts in addition to it which is why I have it separated like that.
It's truly not a big deal though, I agree with your sentiments.
Ray
Answered a few seconds ago · Edit answer