Metadata-Version: 2.1
Name: lektor-yandex-metrica
Version: 0.1.2
Summary: Adds support for Yandex Metrica to Lektor CMS
Home-page: https://github.com/gagoman/lektor-yandex-metrica
Author: Alex Khomchenko
Author-email: akhomchenko@gmail.com
License: MIT
Keywords: Lektor plugin
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 3
Classifier: Framework :: Lektor
Classifier: Environment :: Plugins

lektor-yandex-metrica
=====================

This plugin adds support for `Yandex Metrica <https://metrica.yandex.com>`_
to `Lektor CMS <https://www.getlektor.com>`_

Enabling the Plugin
-------------------

.. code-block:: bash

    lektor plugins add lektor-yandex-metrica

Configuring the Plugin
----------------------
Just create a file named :code:`yandex-metrica.ini` in your :code:`configs/` folder and configure :code:`id` key with the provided counter id:

.. code-block:: ini

    id = YOUR_COUNTER_ID

In Templates
------------
Now you can add a Yandex Metrica counter to any of your templates by just using the :code:`generate_yandex_metrica` function in its tag as below.

.. code:: html

    {{ generate_yandex_metrica() }}


