Browse Source

Last fixes

index-subcmd
Vincent Prouillet 5 years ago
parent
commit
84a3193e97
21 changed files with 11 additions and 9 deletions
  1. +1
    -0
      CHANGELOG.md
  2. +0
    -1
      components/rendering/src/markdown.rs
  3. +1
    -0
      docs/config.toml
  4. +0
    -0
      docs/content/documentation/content/image-processing/example-00.jpg
  5. +0
    -0
      docs/content/documentation/content/image-processing/example-01.jpg
  6. +0
    -0
      docs/content/documentation/content/image-processing/example-02.jpg
  7. +0
    -0
      docs/content/documentation/content/image-processing/example-03.jpg
  8. +0
    -0
      docs/content/documentation/content/image-processing/gutenberg.jpg
  9. +6
    -6
      docs/content/documentation/content/image-processing/index.md
  10. +2
    -1
      docs/content/documentation/getting-started/configuration.md
  11. +1
    -1
      docs/content/documentation/templates/overview.md
  12. +0
    -0
      docs/static/_processed_images/0478482c742970ac00.jpg
  13. +0
    -0
      docs/static/_processed_images/2b6a3e5a28bab1f100.jpg
  14. +0
    -0
      docs/static/_processed_images/3dba59a146f3bc0900.jpg
  15. +0
    -0
      docs/static/_processed_images/5e399fa94c88057a00.jpg
  16. +0
    -0
      docs/static/_processed_images/63d5c27341a9885c00.jpg
  17. +0
    -0
      docs/static/_processed_images/63fe884d13fd318d00.jpg
  18. +0
    -0
      docs/static/_processed_images/8b446e542d0b692d00.jpg
  19. +0
    -0
      docs/static/_processed_images/ab39b603591b3e3300.jpg
  20. +0
    -0
      docs/static/_processed_images/d91d0751df06edce00.jpg
  21. +0
    -0
      docs/static/_processed_images/e690cdfaf053bbd700.jpg

+ 1
- 0
CHANGELOG.md View File

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


+ 0
- 1
components/rendering/src/markdown.rs View File

@@ -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()


+ 1
- 0
docs/config.toml View File

@@ -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"

docs/content/documentation/content/image-resizing/example-00.jpg → docs/content/documentation/content/image-processing/example-00.jpg View File


docs/content/documentation/content/image-resizing/example-01.jpg → docs/content/documentation/content/image-processing/example-01.jpg View File


docs/content/documentation/content/image-resizing/example-02.jpg → docs/content/documentation/content/image-processing/example-02.jpg View File


docs/content/documentation/content/image-resizing/example-03.jpg → docs/content/documentation/content/image-processing/example-03.jpg View File


docs/content/documentation/content/image-resizing/gutenberg.jpg → docs/content/documentation/content/image-processing/gutenberg.jpg View File


docs/content/documentation/content/image-resizing/index.md → docs/content/documentation/content/image-processing/index.md View File

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

+ 2
- 1
docs/content/documentation/getting-started/configuration.md View File

@@ -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 = []


+ 1
- 1
docs/content/documentation/templates/overview.md View File

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

docs/static/_processed_images/28c11b70e6d31a8400.jpg → docs/static/_processed_images/0478482c742970ac00.jpg View File


docs/static/_processed_images/6e0991f475d665df00.jpg → docs/static/_processed_images/2b6a3e5a28bab1f100.jpg View File


docs/static/_processed_images/42758a649ef513b600.jpg → docs/static/_processed_images/3dba59a146f3bc0900.jpg View File


docs/static/_processed_images/792676f9505fb47700.jpg → docs/static/_processed_images/5e399fa94c88057a00.jpg View File


docs/static/_processed_images/4df81a7c614e5cc000.jpg → docs/static/_processed_images/63d5c27341a9885c00.jpg View File


docs/static/_processed_images/b12c7fc72d2815e700.jpg → docs/static/_processed_images/63fe884d13fd318d00.jpg View File


docs/static/_processed_images/6320cb783d4be30e00.jpg → docs/static/_processed_images/8b446e542d0b692d00.jpg View File


docs/static/_processed_images/09c08ee3f954d0c100.jpg → docs/static/_processed_images/ab39b603591b3e3300.jpg View File


docs/static/_processed_images/78e4b442f0b0cbf700.jpg → docs/static/_processed_images/d91d0751df06edce00.jpg View File


docs/static/_processed_images/72d0be8c5e35e50f00.jpg → docs/static/_processed_images/e690cdfaf053bbd700.jpg View File


Loading…
Cancel
Save