|
@@ -15,6 +15,7 @@
|
|
- [Reddit](#reddit)
|
|
- [Reddit](#reddit)
|
|
- [Search](#search-widget)
|
|
- [Search](#search-widget)
|
|
- [Group](#group)
|
|
- [Group](#group)
|
|
|
|
+ - [Split Column](#split-column)
|
|
- [Extension](#extension)
|
|
- [Extension](#extension)
|
|
- [Weather](#weather)
|
|
- [Weather](#weather)
|
|
- [Monitor](#monitor)
|
|
- [Monitor](#monitor)
|
|
@@ -890,7 +891,7 @@ url: https://www.amazon.com/s?k={QUERY}
|
|
```
|
|
```
|
|
|
|
|
|
### Group
|
|
### Group
|
|
-Group multiple widgets into one using tabs. Widgets are defined using a `widgets` property exactly as you would on a page column. The only limitation is that you cannot place a group widget within a group widget.
|
|
|
|
|
|
+Group multiple widgets into one using tabs. Widgets are defined using a `widgets` property exactly as you would on a page column. The only limitation is that you cannot place a group widget or a split column widget within a group widget.
|
|
|
|
|
|
Example:
|
|
Example:
|
|
|
|
|
|
@@ -933,6 +934,63 @@ Example:
|
|
<<: *shared-properties
|
|
<<: *shared-properties
|
|
```
|
|
```
|
|
|
|
|
|
|
|
+### Split Column
|
|
|
|
+Splits a full sized column in half, allowing you to place widgets side by side. This is converted to a single column on mobile devices or if not enough width is available. Widgets are defined using a `widgets` property exactly as you would on a page column.
|
|
|
|
+
|
|
|
|
+Example of a full page with an effective 4 column layout using two split column widgets inside of two full sized columns:
|
|
|
|
+
|
|
|
|
+<details>
|
|
|
|
+<summary>View config</summary>
|
|
|
|
+
|
|
|
|
+```yaml
|
|
|
|
+shared:
|
|
|
|
+ - &reddit-props
|
|
|
|
+ type: reddit
|
|
|
|
+ collapse-after: 4
|
|
|
|
+ show-thumbnails: true
|
|
|
|
+
|
|
|
|
+pages:
|
|
|
|
+ - name: Split Column Demo
|
|
|
|
+ width: wide
|
|
|
|
+ columns:
|
|
|
|
+ - size: full
|
|
|
|
+ widgets:
|
|
|
|
+ - type: split-column
|
|
|
|
+ widgets:
|
|
|
|
+ - subreddit: gaming
|
|
|
|
+ <<: *reddit-props
|
|
|
|
+ - subreddit: worldnews
|
|
|
|
+ <<: *reddit-props
|
|
|
|
+ - subreddit: lifeprotips
|
|
|
|
+ <<: *reddit-props
|
|
|
|
+ show-thumbnails: false
|
|
|
|
+ - subreddit: askreddit
|
|
|
|
+ <<: *reddit-props
|
|
|
|
+ show-thumbnails: false
|
|
|
|
+
|
|
|
|
+ - size: full
|
|
|
|
+ widgets:
|
|
|
|
+ - type: split-column
|
|
|
|
+ widgets:
|
|
|
|
+ - subreddit: todayilearned
|
|
|
|
+ <<: *reddit-props
|
|
|
|
+ collapse-after: 2
|
|
|
|
+ - subreddit: aww
|
|
|
|
+ <<: *reddit-props
|
|
|
|
+ - subreddit: science
|
|
|
|
+ <<: *reddit-props
|
|
|
|
+ - subreddit: showerthoughts
|
|
|
|
+ <<: *reddit-props
|
|
|
|
+ show-thumbnails: false
|
|
|
|
+```
|
|
|
|
+</details>
|
|
|
|
+
|
|
|
|
+<br>
|
|
|
|
+
|
|
|
|
+Preview:
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
### Extension
|
|
### Extension
|
|
Display a widget provided by an external source (3rd party). If you want to learn more about developing extensions, checkout the [extensions documentation](extensions.md) (WIP).
|
|
Display a widget provided by an external source (3rd party). If you want to learn more about developing extensions, checkout the [extensions documentation](extensions.md) (WIP).
|
|
|
|
|
|
@@ -948,12 +1006,16 @@ Display a widget provided by an external source (3rd party). If you want to lear
|
|
| Name | Type | Required | Default |
|
|
| Name | Type | Required | Default |
|
|
| ---- | ---- | -------- | ------- |
|
|
| ---- | ---- | -------- | ------- |
|
|
| url | string | yes | |
|
|
| url | string | yes | |
|
|
|
|
+| fallback-content-type | string | no | |
|
|
| allow-potentially-dangerous-html | boolean | no | false |
|
|
| allow-potentially-dangerous-html | boolean | no | false |
|
|
| parameters | key & value | no | |
|
|
| parameters | key & value | no | |
|
|
|
|
|
|
##### `url`
|
|
##### `url`
|
|
The URL of the extension.
|
|
The URL of the extension.
|
|
|
|
|
|
|
|
+##### `fallback-content-type`
|
|
|
|
+Optionally specify the fallback content type of the extension if the URL does not return a valid `Widget-Content-Type` header. Currently the only supported value for this property is `html`.
|
|
|
|
+
|
|
##### `allow-potentially-dangerous-html`
|
|
##### `allow-potentially-dangerous-html`
|
|
Whether to allow the extension to display HTML.
|
|
Whether to allow the extension to display HTML.
|
|
|
|
|
|
@@ -1108,7 +1170,7 @@ icon: si:adguard
|
|
|
|
|
|
> [!WARNING]
|
|
> [!WARNING]
|
|
>
|
|
>
|
|
-> Simple Icons are loaded externally and are hosted on `cdnjs.cloudflare.com`, if you do not wish to depend on a 3rd party you are free to download the icons individually and host them locally.
|
|
|
|
|
|
+> Simple Icons are loaded externally and are hosted on `cdn.jsdelivr.net`, if you do not wish to depend on a 3rd party you are free to download the icons individually and host them locally.
|
|
|
|
|
|
`allow-insecure`
|
|
`allow-insecure`
|
|
|
|
|
|
@@ -1395,7 +1457,7 @@ icon: si:reddit
|
|
|
|
|
|
> [!WARNING]
|
|
> [!WARNING]
|
|
>
|
|
>
|
|
-> Simple Icons are loaded externally and are hosted on `cdnjs.cloudflare.com`, if you do not wish to depend on a 3rd party you are free to download the icons individually and host them locally.
|
|
|
|
|
|
+> Simple Icons are loaded externally and are hosted on `cdn.jsdelivr.net`, if you do not wish to depend on a 3rd party you are free to download the icons individually and host them locally.
|
|
|
|
|
|
`same-tab`
|
|
`same-tab`
|
|
|
|
|
|
@@ -1549,7 +1611,7 @@ Preview:
|
|
An array of markets for which to display information about.
|
|
An array of markets for which to display information about.
|
|
|
|
|
|
##### `sort-by`
|
|
##### `sort-by`
|
|
-By default the markets are displayed in the order they were defined. You can customize their ordering by setting the `sort-by` property to `absolute-change` for descending order based on the stock's absolute price change.
|
|
|
|
|
|
+By default the markets are displayed in the order they were defined. You can customize their ordering by setting the `sort-by` property to `change` for descending order based on the stock's percentage change (e.g. 1% would be sorted higher than -1%) or `absolute-change` for descending order based on the stock's absolute price change (e.g. -1% would be sorted higher than +0.5%).
|
|
|
|
|
|
###### Properties for each stock
|
|
###### Properties for each stock
|
|
| Name | Type | Required |
|
|
| Name | Type | Required |
|