Adding search to a write.as public blog
Searching a public write.as or writefreely blog is easy to do, compared to searching private blogs or anonymous posts. It just takes adding an html
<iframe src="https://duckduckgo.com/search.html?width=250&site=plaintextproject.online&prefill=Search The Plain Text Project" style="overflow:hidden;margin:0;padding:0;width:308px;height:40px;border-radius: 15px 50px 30px 5px;" frameborder="0"></iframe>
The DuckDuckGo search engine is used. Replace two parts of that code:
plaintextproject.onlinewith either your personal domain name or your
Search The Plain Text Projectwith your custom search message.
A couple points:
You can search other public blogs or web sites if you want. It doesn't have to be your own blog.
If your blog's url is in the form
blogname.writeas.com, that might work as well. I quickly did a test and it appeared to work.
If your write.as/writefreely blog is private or if you want to search your anonymous posts, you can still do it using, for example, a PHP program in combination with data downloaded from the write.as API. This technique is outlined here. The technique described in that post requires that you have a web server with PHP support. If you don't have that, CJ Eller, community manager for write.as, wrote a glitch.com app that will do the search on your blog(s) and anonymous data downloaded via the write.as and/or writefreely API.
Of course, this html iframe snippet will also work on other web site pages besides just those created on write.as or writefreely.
Thanks Plain Text Project for giving an example of how this can be done.