Last fixes
|
@ -6,6 +6,7 @@
|
||||||
|
|
||||||
- Taxonomies have been rewritten from scratch to allow custom ones with RSS and pagination
|
- 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`
|
- `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
|
### Others
|
||||||
- Fix `serve` not working with the config flag
|
- Fix `serve` not working with the config flag
|
||||||
|
|
|
@ -140,7 +140,6 @@ pub fn markdown_to_html(content: &str, context: &RenderContext) -> Result<(Strin
|
||||||
format!("{}{}", context.current_page_permalink, link)
|
format!("{}{}", context.current_page_permalink, link)
|
||||||
} else {
|
} else {
|
||||||
if context.config.check_external_links && !link.starts_with('#') {
|
if context.config.check_external_links && !link.starts_with('#') {
|
||||||
println!("Checking Link {}", link);
|
|
||||||
let res = check_url(&link);
|
let res = check_url(&link);
|
||||||
if res.is_valid() {
|
if res.is_valid() {
|
||||||
link.to_string()
|
link.to_string()
|
||||||
|
|
|
@ -7,6 +7,7 @@ highlight_code = true
|
||||||
insert_anchor_links = true
|
insert_anchor_links = true
|
||||||
highlight_theme = "kronuz"
|
highlight_theme = "kronuz"
|
||||||
build_search_index = true
|
build_search_index = true
|
||||||
|
# check_external_links = true
|
||||||
|
|
||||||
[extra]
|
[extra]
|
||||||
author = "Vincent Prouillet"
|
author = "Vincent Prouillet"
|
||||||
|
|
Before Width: | Height: | Size: 192 KiB After Width: | Height: | Size: 192 KiB |
Before Width: | Height: | Size: 204 KiB After Width: | Height: | Size: 204 KiB |
Before Width: | Height: | Size: 42 KiB After Width: | Height: | Size: 42 KiB |
Before Width: | Height: | Size: 250 KiB After Width: | Height: | Size: 250 KiB |
Before Width: | Height: | Size: 47 KiB After Width: | Height: | Size: 47 KiB |
|
@ -1,5 +1,5 @@
|
||||||
+++
|
+++
|
||||||
title = "Image Resizing"
|
title = "Image processing"
|
||||||
weight = 120
|
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(..., 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"`**
|
### **`"fit_width"`**
|
||||||
Resizes the image such that the resulting width is `width` and height is whatever will preserve the aspect ratio.
|
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(..., 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"`**
|
### **`"fit_height"`**
|
||||||
Resizes the image such that the resulting height is `height` and width is whatever will preserve the aspect ratio.
|
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(..., 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"`**
|
### **`"fit"`**
|
||||||
Like `"fit_width"` and `"fit_height"` combined.
|
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(..., 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"`**
|
### **`"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
|
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(..., 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
|
## Using `resize_image` in markdown via shortcodes
|
|
@ -44,7 +44,8 @@ rss_limit = 20
|
||||||
# Example:
|
# Example:
|
||||||
# taxonomies = [
|
# taxonomies = [
|
||||||
# {name: "tags", rss: true}, # each tag will have its own RSS feed
|
# {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 = []
|
taxonomies = []
|
||||||
|
|
|
@ -146,4 +146,4 @@ Gets the translation of the given `key`, for the `default_language` or the `lang
|
||||||
|
|
||||||
### `resize_image`
|
### `resize_image`
|
||||||
Resizes an image file.
|
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.
|
||||||
|
|
Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 4.5 KiB |
Before Width: | Height: | Size: 5.4 KiB After Width: | Height: | Size: 5.4 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 4.4 KiB |
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 3.4 KiB |
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 4.4 KiB |
Before Width: | Height: | Size: 9.6 KiB After Width: | Height: | Size: 9.6 KiB |
Before Width: | Height: | Size: 5.5 KiB After Width: | Height: | Size: 5.5 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |