Lektor plugin to add google seach to a website
Version: 0.1
Author: Lissan Zahid
View all tags.
This plugin add support for Google Search to Lektor CMS
Once the plugin is enabled, a render_google_search() function is available to be included in a taget template which autoatically
include Google-Search code in final HTML fles rendered by Lektor.
To enable the plugin, add the following to your .lektorproject file:
[packages] lektor-google-search = 0.1
The plugin needs a config file with your search Engine ID code in it
google-serch.ini into ./configs folder in your lektor project's base directory.SEARCH_ENGINE_ID key with the value of your serch engine ID.SEARCH_ENGINE_ID = 83892839209432084
Add Google Search code snippet by calling the function render_google_search() in the template of your preference where you want the search box to appear.
<div>{{ render_googe_search() }}</div>
Now, try to run lektor server to see the google search appear.
Comments