From 0c2a01ece147c61bc671ed5932686f460d929c81 Mon Sep 17 00:00:00 2001 From: Mat Fish Date: Sat, 19 Nov 2022 22:04:40 +0200 Subject: [PATCH] update link --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2d3bb7c..35887e2 100644 --- a/README.md +++ b/README.md @@ -88,7 +88,7 @@ E.g: The plugin will only compile the relevant variant. ##### Method C: Get only variant value In some cases there is no need to create multiple templates, as the value of the random variant can replace a constant in the code. -E.g, Suppose you have a blog and want to test different per-page values. Here is an example implementation for a hypothetical ([or is it?](https://blogify.frb.io/blog/index)) `recordsPerPage` experiment: +E.g, Suppose you have a blog and want to test different per-page values. Here is an example implementation for a hypothetical ([or is it?](https://www.craftcmsplugins.com/blog/index)) `recordsPerPage` experiment: ```html {% set variant = optimumGetVariant('recordsPerPage') %} {% set perPage = variant is same as ('original') ? 6 : 9 %} // Or use a switch statement if you have more than 2 variants