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.
- -
+ + +

Advanced

-
-
You can use GOOGLE_ANALYTICS_PROPERTY property to include your
-
custom-built Google Analytics tracking code. In that case, your -./configs/google-analytics.ini will look like this:
+
+
You can use GOOGLE_ANALYTICS_PROPERTY property to include your
+

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.

-
+ diff --git a/plugins/lektor-gulp/index.html b/plugins/lektor-gulp/index.html index 88b13d15..cc230cb3 100644 --- a/plugins/lektor-gulp/index.html +++ b/plugins/lektor-gulp/index.html @@ -140,40 +140,38 @@

Project Description

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.

-
+

lektor build

-

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.

-
-
+ +

lektor server

-

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.

-
-
+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.

+ +

Credits

This plugin is based on the official Webpack plugin with very little differences.

-
+ diff --git a/plugins/lektor-htmlmin/index.html b/plugins/lektor-htmlmin/index.html index b749887a..5c77722c 100644 --- a/plugins/lektor-htmlmin/index.html +++ b/plugins/lektor-htmlmin/index.html @@ -134,28 +134,25 @@

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.

-
+

Installing

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
-
-
-
+lektor-htmlmin = 1.0 + +

Usage

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.

-
+ diff --git a/plugins/lektor-make/index.html b/plugins/lektor-make/index.html index 3cb7cd0d..a820c08b 100644 --- a/plugins/lektor-make/index.html +++ b/plugins/lektor-make/index.html @@ -118,11 +118,10 @@ https://readthedocs.org/projects/lektor-make/badge/?version=latest https://img.shields.io/pypi/v/lektor-make?color=success

Lektor plugin to run make lektor for custom build systems.

-
+

Install

-
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

-
+

Enabling the Plugin

-
lektor plugins add lektor-yandex-metrica
-
-
-
+
lektor plugins add lektor-yandex-metrica
+ +

Configuring the Plugin

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>
+ +

In Templates

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() }}
+