diff --git a/CHANGELOG.md b/CHANGELOG.md index 822d6ce..8f30484 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ - Taxonomies have been rewritten from scratch to allow custom ones with RSS and pagination - `order` sorting has been removed in favour of only having `weight` +- `page.next/page.previous` have been renamed to `page.later/page.earlier` and `page.heavier/page.lighter` depending on the sort method ### Others - Fix `serve` not working with the config flag diff --git a/components/rendering/src/markdown.rs b/components/rendering/src/markdown.rs index 3fe905d..60ea672 100644 --- a/components/rendering/src/markdown.rs +++ b/components/rendering/src/markdown.rs @@ -140,7 +140,6 @@ pub fn markdown_to_html(content: &str, context: &RenderContext) -> Result<(Strin format!("{}{}", context.current_page_permalink, link) } else { if context.config.check_external_links && !link.starts_with('#') { - println!("Checking Link {}", link); let res = check_url(&link); if res.is_valid() { link.to_string() diff --git a/docs/config.toml b/docs/config.toml index ce69764..6cd6556 100644 --- a/docs/config.toml +++ b/docs/config.toml @@ -7,6 +7,7 @@ highlight_code = true insert_anchor_links = true highlight_theme = "kronuz" build_search_index = true +# check_external_links = true [extra] author = "Vincent Prouillet" diff --git a/docs/content/documentation/content/image-resizing/example-00.jpg b/docs/content/documentation/content/image-processing/example-00.jpg similarity index 100% rename from docs/content/documentation/content/image-resizing/example-00.jpg rename to docs/content/documentation/content/image-processing/example-00.jpg diff --git a/docs/content/documentation/content/image-resizing/example-01.jpg b/docs/content/documentation/content/image-processing/example-01.jpg similarity index 100% rename from docs/content/documentation/content/image-resizing/example-01.jpg rename to docs/content/documentation/content/image-processing/example-01.jpg diff --git a/docs/content/documentation/content/image-resizing/example-02.jpg b/docs/content/documentation/content/image-processing/example-02.jpg similarity index 100% rename from docs/content/documentation/content/image-resizing/example-02.jpg rename to docs/content/documentation/content/image-processing/example-02.jpg diff --git a/docs/content/documentation/content/image-resizing/example-03.jpg b/docs/content/documentation/content/image-processing/example-03.jpg similarity index 100% rename from docs/content/documentation/content/image-resizing/example-03.jpg rename to docs/content/documentation/content/image-processing/example-03.jpg diff --git a/docs/content/documentation/content/image-resizing/gutenberg.jpg b/docs/content/documentation/content/image-processing/gutenberg.jpg similarity index 100% rename from docs/content/documentation/content/image-resizing/gutenberg.jpg rename to docs/content/documentation/content/image-processing/gutenberg.jpg diff --git a/docs/content/documentation/content/image-resizing/index.md b/docs/content/documentation/content/image-processing/index.md similarity index 88% rename from docs/content/documentation/content/image-resizing/index.md rename to docs/content/documentation/content/image-processing/index.md index 129cdd1..a5a37f5 100644 --- a/docs/content/documentation/content/image-resizing/index.md +++ b/docs/content/documentation/content/image-processing/index.md @@ -1,5 +1,5 @@ +++ -title = "Image Resizing" +title = "Image processing" weight = 120 +++ @@ -47,7 +47,7 @@ The source for all examples is this 300 × 380 pixels image: `resize_image(..., width=150, height=150, op="scale")` - {{ resize_image(path="documentation/content/image-resizing/gutenberg.jpg", width=150, height=150, op="scale") }} + {{ resize_image(path="documentation/content/image-processing/gutenberg.jpg", width=150, height=150, op="scale") }} ### **`"fit_width"`** Resizes the image such that the resulting width is `width` and height is whatever will preserve the aspect ratio. @@ -55,7 +55,7 @@ The source for all examples is this 300 × 380 pixels image: `resize_image(..., width=100, op="fit_width")` - {{ resize_image(path="documentation/content/image-resizing/gutenberg.jpg", width=100, height=0, op="fit_width") }} + {{ resize_image(path="documentation/content/image-processing/gutenberg.jpg", width=100, height=0, op="fit_width") }} ### **`"fit_height"`** Resizes the image such that the resulting height is `height` and width is whatever will preserve the aspect ratio. @@ -63,7 +63,7 @@ The source for all examples is this 300 × 380 pixels image: `resize_image(..., height=150, op="fit_height")` - {{ resize_image(path="documentation/content/image-resizing/gutenberg.jpg", width=0, height=150, op="fit_height") }} + {{ resize_image(path="documentation/content/image-processing/gutenberg.jpg", width=0, height=150, op="fit_height") }} ### **`"fit"`** Like `"fit_width"` and `"fit_height"` combined. @@ -72,7 +72,7 @@ The source for all examples is this 300 × 380 pixels image: `resize_image(..., width=150, height=150, op="fit")` - {{ resize_image(path="documentation/content/image-resizing/gutenberg.jpg", width=150, height=150, op="fit") }} + {{ resize_image(path="documentation/content/image-processing/gutenberg.jpg", width=150, height=150, op="fit") }} ### **`"fill"`** This is the default operation. It takes the image's center part with the same aspect ratio as the `width` & `height` given and resizes that @@ -80,7 +80,7 @@ The source for all examples is this 300 × 380 pixels image: `resize_image(..., width=150, height=150, op="fill")` - {{ resize_image(path="documentation/content/image-resizing/gutenberg.jpg", width=150, height=150, op="fill") }} + {{ resize_image(path="documentation/content/image-processing/gutenberg.jpg", width=150, height=150, op="fill") }} ## Using `resize_image` in markdown via shortcodes diff --git a/docs/content/documentation/getting-started/configuration.md b/docs/content/documentation/getting-started/configuration.md index 7a0ce6b..f8eecb3 100644 --- a/docs/content/documentation/getting-started/configuration.md +++ b/docs/content/documentation/getting-started/configuration.md @@ -44,7 +44,8 @@ rss_limit = 20 # Example: # taxonomies = [ # {name: "tags", rss: true}, # each tag will have its own RSS feed -# {name: "categories", paginate_by: 5}, # 5 terms per page +# {name: "categories", paginate_by: 5}, # 5 items per page for a term +# {name: "authors"}, # Basic definition: no RSS or pagination # ] # taxonomies = [] diff --git a/docs/content/documentation/templates/overview.md b/docs/content/documentation/templates/overview.md index f12fc4c..a9ab635 100644 --- a/docs/content/documentation/templates/overview.md +++ b/docs/content/documentation/templates/overview.md @@ -146,4 +146,4 @@ Gets the translation of the given `key`, for the `default_language` or the `lang ### `resize_image` Resizes an image file. -Pease refer to [_Content / Image Resizing_](./documentation/content/image-resizing/index.md) for complete documentation. +Pease refer to [_Content / Image Processing_](./documentation/content/image-processing/index.md) for complete documentation. diff --git a/docs/static/_processed_images/28c11b70e6d31a8400.jpg b/docs/static/_processed_images/0478482c742970ac00.jpg similarity index 100% rename from docs/static/_processed_images/28c11b70e6d31a8400.jpg rename to docs/static/_processed_images/0478482c742970ac00.jpg diff --git a/docs/static/_processed_images/6e0991f475d665df00.jpg b/docs/static/_processed_images/2b6a3e5a28bab1f100.jpg similarity index 100% rename from docs/static/_processed_images/6e0991f475d665df00.jpg rename to docs/static/_processed_images/2b6a3e5a28bab1f100.jpg diff --git a/docs/static/_processed_images/42758a649ef513b600.jpg b/docs/static/_processed_images/3dba59a146f3bc0900.jpg similarity index 100% rename from docs/static/_processed_images/42758a649ef513b600.jpg rename to docs/static/_processed_images/3dba59a146f3bc0900.jpg diff --git a/docs/static/_processed_images/792676f9505fb47700.jpg b/docs/static/_processed_images/5e399fa94c88057a00.jpg similarity index 100% rename from docs/static/_processed_images/792676f9505fb47700.jpg rename to docs/static/_processed_images/5e399fa94c88057a00.jpg diff --git a/docs/static/_processed_images/4df81a7c614e5cc000.jpg b/docs/static/_processed_images/63d5c27341a9885c00.jpg similarity index 100% rename from docs/static/_processed_images/4df81a7c614e5cc000.jpg rename to docs/static/_processed_images/63d5c27341a9885c00.jpg diff --git a/docs/static/_processed_images/b12c7fc72d2815e700.jpg b/docs/static/_processed_images/63fe884d13fd318d00.jpg similarity index 100% rename from docs/static/_processed_images/b12c7fc72d2815e700.jpg rename to docs/static/_processed_images/63fe884d13fd318d00.jpg diff --git a/docs/static/_processed_images/6320cb783d4be30e00.jpg b/docs/static/_processed_images/8b446e542d0b692d00.jpg similarity index 100% rename from docs/static/_processed_images/6320cb783d4be30e00.jpg rename to docs/static/_processed_images/8b446e542d0b692d00.jpg diff --git a/docs/static/_processed_images/09c08ee3f954d0c100.jpg b/docs/static/_processed_images/ab39b603591b3e3300.jpg similarity index 100% rename from docs/static/_processed_images/09c08ee3f954d0c100.jpg rename to docs/static/_processed_images/ab39b603591b3e3300.jpg diff --git a/docs/static/_processed_images/78e4b442f0b0cbf700.jpg b/docs/static/_processed_images/d91d0751df06edce00.jpg similarity index 100% rename from docs/static/_processed_images/78e4b442f0b0cbf700.jpg rename to docs/static/_processed_images/d91d0751df06edce00.jpg diff --git a/docs/static/_processed_images/72d0be8c5e35e50f00.jpg b/docs/static/_processed_images/e690cdfaf053bbd700.jpg similarity index 100% rename from docs/static/_processed_images/72d0be8c5e35e50f00.jpg rename to docs/static/_processed_images/e690cdfaf053bbd700.jpg