diff --git a/index.html b/index.html index fc4c27ff..90ac9b31 100644 --- a/index.html +++ b/index.html @@ -151,7 +151,7 @@ speak multiple languages and allow you to easily create localized websites.
This plugin adds support for Google analytics to Lektor CMS.
-Once the plugin is enabled, a generate_google_analytics() function -is available to be included in target template which automatically +
Once the plugin is enabled, a generate_google_analytics() function +is available to be included in target template which automatically include Google-Analytics code in final HTML files rendered by -Lektor.
-To enable the plugin add this to your project file:
-[packages] -lektor-google-analytics = 0.1 --
[packages]
+lektor-google-analytics = <s>0.1</s>
+
+The plugin needs a config file with your Google analytics code in +
The plugin needs a config file with your Google analytics code in it.
-Just create a file named google-analytics.ini into ./configs +
Just create a file named google-analytics.ini into ./configs folder in your Lektor project’s base directory. And, put the -GOOGLE_ANALYTICS_ID key with target property ID of form -UA-XXXXXXXX-Y which you obtained from:
-GOOGLE_ANALYTICS_ID = UA-XXXXXXXX-Y --
GOOGLE_ANALYTICS_ID = <s>UA-XXXXXXXX-Y</s>
+
+Now you can add a Google analytics code-snippet in your templates by -just calling the generate_google_analytics function inside its <body> </body> tags.
-<div class="ga-script">{{ generate_google_analytics() }}</div> --
That’s it. All the HTML files that rendered from that template will +just calling the generate_google_analytics function inside its <body> </body> tags.
+<div class=<s>"ga-script"</s>>{{ generate_google_analytics() }}</div>
+That’s it. All the HTML files that rendered from that template will include Google-Analytics code automatically.
-custom-built Google Analytics tracking code. In that case, your +./configs/google-analytics.ini will look like this:
+GOOGLE_ANALYTICS_ID = UA-XXXXXXXX-Y -GOOGLE_ANALYTICS_PROPERTY = 'my custom code' -+
GOOGLE_ANALYTICS_ID = <s>UA-XXXXXXXX-Y</s>
+GOOGLE_ANALYTICS_PROPERTY = <s>'my custom code'</s>
Don’t use this property unless you know what are you doing. By default, -it is set to auto.
+it is set to auto.To go deeper than this, please refer to Google-Analytics documentation.
Copyright (c) 2015, Khaled Monsoor
All rights reserved.
Licensed under BSD license.
-This plugin for Lektor CMS adds gulp support to projects. When -enabled with the -f gulp flag it runs npm install and then the -gulp default or watch tasks as they are defined into your own -gulpfile.js.
+enabled with the -f gulp flag it runs npm install and then the +gulp default or watch tasks as they are defined into your own +gulpfile.js.The general documentation about Lektor plugins is here.
-The command lektor build -f gulp runs the ``default`` gulp task, +
The command lektor build -f gulp runs the ``default`` gulp task, for example defined as something like:
-gulp.task('build', ['clean', 'copy', 'js', 'css', 'imagemin'], () => { }); -gulp.task('default', ['build'], () => { }); --
In the above example the default task points to a build task, +
gulp.task('build', ['clean', 'copy', 'js', 'css', 'imagemin'], () => { });
+gulp.task('default', ['build'], () => { });
+In the above example the default task points to a build task, which is usually composed by several other gulp tasks, etc.
-The command lektor server -f gulp runs the Lektor embedded server on +
The command lektor server -f gulp runs the Lektor embedded server on http://localhost:5000, starting a gulp ``watch`` task in background. For example, you can define something such as:
-gulp.task('watch', () => { ++});gulp.task('watch', () => { gulp.watch('lib/js/**/*.js', ['js']); gulp.watch('lib/css/**/*.css', ['css']); -}); -
In the above example, each time one touches Javascript or CSS files in -the lib/ folder then assets could be minified, concatenated and -copied into the standard assets/static/ lektor folder, or whatever -is defined into your own gulpfile.js.
-This plugin is based on the official Webpack plugin with very little differences.
-HTML minifier for Lektor that automatically minifies generated .html files.
Uses htmlmin and looks for .html files, minifying them as part of the build process.
-You can install the plugin with Lektor’s installer:
-lektor plugins add lektor-htmlmin -+
lektor plugins add lektor-htmlmin
Or by hand, adding the plugin to the packages section in your lektorproject file:
[packages] -lektor-htmlmin = 1.0 --
To enable minification, pass the htmlmin flag when starting the development server or when running a build:
-lektor build -O my_build_folder -f htmlmin -+
lektor build -O my_build_folder -f htmlmin
When the flag is present, htmlmin will overwrite all HTML files in the output directory with their minified counterparts.
Note: The htmlmin plugin currently minifies every file in the project after a build. Not just files that have been changed. This should have no ill effects, but might increase build times if there are many files to minify.
-Lektor plugin to run make lektor for custom build systems.
-python3 -m pip install lektor-make --
python3 -m pip install lektor-make
+
diff --git a/plugins/lektor-markdown-excerpt/index.html b/plugins/lektor-markdown-excerpt/index.html
index 0e6b4755..2e0e6343 100644
--- a/plugins/lektor-markdown-excerpt/index.html
+++ b/plugins/lektor-markdown-excerpt/index.html
@@ -131,19 +131,13 @@
This plugin adds filter for Markdown body excerpt.
## Enabling the Plugin
To enable the plugin run this command:
-`ini -$ lektor plugins add markdown-excerpt -`
+`ini $ lektor plugins add markdown-excerpt `
## In Templates
Plugin provides the |excerpt filter that can be used to render first paragraph of Markdown:
-`jinja -{{ post.body|excerpt }} -`
+`jinja {{ post.body|excerpt }} `
It takes one optional argument which is the separator for the excerpt:
-`jinja -{{ post.body|excerpt:'\n\n##' }} -`
+`jinja {{ post.body|excerpt:'\n\n##' }} `
diff --git a/plugins/lektor-tawk/index.html b/plugins/lektor-tawk/index.html index c7b3b32d..f2496811 100644 --- a/plugins/lektor-tawk/index.html +++ b/plugins/lektor-tawk/index.html @@ -134,19 +134,13 @@This plugin adds support for Tawk to Lektor. Once the plugin is enabled a render_tawk function will render a Tawk Live Chat.
## Enabling the Plugin
To enable the plugin add this to your project file:
-` -$ lektor plugins add lektor-tawk -`
+` $ lektor plugins add lektor-tawk `
## Configuring the Plugin
The plugin has a config file that is needed to inform it about your website. Just create a file named tawk.ini into your configs/ folder and configure the live_chat_code key with the ID if your Tawk:
-` -live_chat_code = your_live_chat_code -`
+` live_chat_code = your_live_chat_code `
## In Templates
Now you can render to any of your templates by just using the render_tawk function. Just calling it is enough to get the live chat:
-` -<div>{{ render_tawk }}</div> -`
+` <div>{{ render_tawk }}</div> `
diff --git a/plugins/lektor-yandex-metrica/index.html b/plugins/lektor-yandex-metrica/index.html index 7590c096..60b27f3d 100644 --- a/plugins/lektor-yandex-metrica/index.html +++ b/plugins/lektor-yandex-metrica/index.html @@ -132,23 +132,20 @@This plugin adds support for Yandex Metrica to Lektor CMS
-lektor plugins add lektor-yandex-metrica --
lektor plugins add lektor-yandex-metrica
+
+Just create a file named yandex-metrica.ini
in your configs/
folder and configure id
key with the provided counter id:
id = YOUR_COUNTER_ID --
id = <s>YOUR_COUNTER_ID</s>
+
+Now you can add a Yandex Metrica counter to any of your templates by just using the generate_yandex_metrica
function in its tag as below.
{{ generate_yandex_metrica() }} --
{{ generate_yandex_metrica() }}
+