From 4e60c6af5a04cdeb459d97d51cf587284347d509 Mon Sep 17 00:00:00 2001 From: Kenji Wellman Date: Fri, 4 Nov 2016 10:39:01 -0400 Subject: [PATCH 01/14] Add lektor-nofollow plugin --- content/docs/plugins/list/contents.lr | 1 + 1 file changed, 1 insertion(+) diff --git a/content/docs/plugins/list/contents.lr b/content/docs/plugins/list/contents.lr index 8d5f23b3..23c27de6 100644 --- a/content/docs/plugins/list/contents.lr +++ b/content/docs/plugins/list/contents.lr @@ -44,6 +44,7 @@ so they might not keep pace with development on Lektor. * [i18n :ext](https://github.com/numericube/lektor-i18n-plugin): Use GetText .PO files to translate your site **content**. * [htmlmin :ext](https://github.com/vesuvium/lektor-htmlmin): Automatically minifies .html files in build directory * [creative-commons :ext](https://github.com/humrochagf/lektor-creative-commons): Add Creative Commons license to your pages +* [nofollow :ext](https://github.com/yargies/lektor-nofollow): Easily create nofollow links in markdown ! Have your own plugin and you want to see it here? Just [edit this page on GitHub :ref](https://github.com/lektor/lektor-website/edit/master/content/docs/plugins/list/contents.lr), From fb9964a182ebe74f82e906866f120b79878293c9 Mon Sep 17 00:00:00 2001 From: Ha Junsoo Date: Wed, 16 Nov 2016 16:22:13 +0900 Subject: [PATCH 02/14] Add an warning for using the CNAME parameter See https://github.com/lektor/lektor/issues/322#issuecomment-260652270 --- content/docs/deployment/ghpages/contents.lr | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/content/docs/deployment/ghpages/contents.lr b/content/docs/deployment/ghpages/contents.lr index ef82ceb4..fefa03ee 100644 --- a/content/docs/deployment/ghpages/contents.lr +++ b/content/docs/deployment/ghpages/contents.lr @@ -45,14 +45,17 @@ with behavior for GitHub Pages. ## CNAME Support If you want to use a [CNAME :ext](https://en.wikipedia.org/wiki/CNAME) with -GitHub pages and Lektor you can provide the intended CNAME with the `?cname` -parameter: +custom domain configured GitHub pages and Lektor you can provide the intended +CNAME with the `?cname` parameter: ```ini [servers.production] target = ghpages://your-user/your-repository?cname=www.example.com ``` +Note that this will overwrite your Github page's custom domain setting +with given `?cname` parameter on every deployment. + For more information about how CNAMEs work with GitHub you can read about the feature in the GitHub help center: [Adding a CNAME file to your repository From 67c5dc346e8d1d72339b528e111b90d09b1fab03 Mon Sep 17 00:00:00 2001 From: "Dr. Tarique Sani" Date: Mon, 21 Nov 2016 10:43:26 +0530 Subject: [PATCH 03/14] Added documentname and description to the list --- content/docs/api/db/record/exif/contents.lr | 2 ++ 1 file changed, 2 insertions(+) diff --git a/content/docs/api/db/record/exif/contents.lr b/content/docs/api/db/record/exif/contents.lr index c7f3aa8c..67d8b580 100644 --- a/content/docs/api/db/record/exif/contents.lr +++ b/content/docs/api/db/record/exif/contents.lr @@ -38,6 +38,8 @@ into a dictionary that can be dumped to JSON for instance. | `latitude` | The longitude as floating point value. | `longitude` | The longitude as floating point value. | `altitude` | The altitude in meters as floating point value. +| `documentname` | The image document name as a string. +| `description` | The image description as a string. ## Example From 78073ae5e4abb39a1186d6f61b2a6c5f1d3f9fe9 Mon Sep 17 00:00:00 2001 From: Ha Junsoo Date: Mon, 28 Nov 2016 17:19:46 +0900 Subject: [PATCH 04/14] Update contents.lr --- content/docs/deployment/ghpages/contents.lr | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/content/docs/deployment/ghpages/contents.lr b/content/docs/deployment/ghpages/contents.lr index fefa03ee..6c56e769 100644 --- a/content/docs/deployment/ghpages/contents.lr +++ b/content/docs/deployment/ghpages/contents.lr @@ -44,17 +44,17 @@ with behavior for GitHub Pages. ## CNAME Support -If you want to use a [CNAME :ext](https://en.wikipedia.org/wiki/CNAME) with -custom domain configured GitHub pages and Lektor you can provide the intended -CNAME with the `?cname` parameter: +If you want to use a custom domain with GitHub pages (also known as a +[CNAME :ext](https://en.wikipedia.org/wiki/CNAME)), provide the intended +CNAME in the target URL using the `?cname` parameter: ```ini [servers.production] target = ghpages://your-user/your-repository?cname=www.example.com ``` -Note that this will overwrite your Github page's custom domain setting -with given `?cname` parameter on every deployment. +Note that this will overwrite whatever custom domain you may have set on +GitHub with every deployment. For more information about how CNAMEs work with GitHub you can read about the feature in the GitHub help center: From 582752102544e47b0e9bf8d0f818ef2617e63630 Mon Sep 17 00:00:00 2001 From: elJorno Date: Thu, 15 Dec 2016 15:53:33 +0100 Subject: [PATCH 05/14] Update contents.lr Fixed a small typo --- content/docs/api/db/record/contents.lr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/docs/api/db/record/contents.lr b/content/docs/api/db/record/contents.lr index eb934c57..d92ba541 100644 --- a/content/docs/api/db/record/contents.lr +++ b/content/docs/api/db/record/contents.lr @@ -9,7 +9,7 @@ type: class body: Records are [Source Objects :ref](../obj/) that come from the `content/` -folder and correspond to [Data Models :ref](../../../models/). The provide +folder and correspond to [Data Models :ref](../../../models/). They provide a wider range of functionality compared to a standard source object but they also provide all the functionality a regular source object does. From 9abc4475d55520e4481c9e26826c3affa9de85f6 Mon Sep 17 00:00:00 2001 From: elJorno Date: Fri, 16 Dec 2016 19:29:13 +0100 Subject: [PATCH 06/14] Fixed a mistake in code snippet Fixed a mistake in the Fully Automatic Navigation example --- content/docs/templates/navigation/contents.lr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/docs/templates/navigation/contents.lr b/content/docs/templates/navigation/contents.lr index 80ed391a..fd31ebbe 100644 --- a/content/docs/templates/navigation/contents.lr +++ b/content/docs/templates/navigation/contents.lr @@ -52,7 +52,7 @@ a page. This is easy to accomplish as well: ```html+jinja