Lektor plugin to add google seach to a website
Project description
Lektor-Google-Search
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.
How to Use the plugin ?
Enable the plugin
To enable the plugin, add the following to your .lektorproject
file:
[packages]
lektor-google-search = 0.1
Configure the plugin
The plugin needs a config file with your search Engine ID
code in it
- Create a file named
google-serch.ini
into./configs
folder in your lektor project's base directory. - Put the
SEARCH_ENGINE_ID
key with the value of your serch engine ID.
SEARCH_ENGINE_ID = 83892839209432084
Usage in template
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file lektor-google-search-0.1.tar.gz
.
File metadata
- Download URL: lektor-google-search-0.1.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e56191790888bec924e134095f3c442e71489f73f7d457f46006bbee547eb055 |
|
MD5 | 0f993f76613b0d754da68e4d7aa4f653 |
|
BLAKE2b-256 | c73f7d3c7ffb5bf157f5743af1bca7972c0748735f09f9a97158cef694b12929 |
File details
Details for the file lektor_google_search-0.1-py2.py3-none-any.whl
.
File metadata
- Download URL: lektor_google_search-0.1-py2.py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c99dbf48d7f2de69540fa59feaf822fae48eaf03296a577b016f4789d1514a54 |
|
MD5 | 09a1ac8ee2c40a91c8100935382c6ec5 |
|
BLAKE2b-256 | 076e44412fa5d43afb0d26c26dda7487277b7c6a9abff4aa4d53907d34824f52 |