New "columns" display mode (#371)
This commit is contained in:
@@ -145,6 +145,7 @@ It may increase filesize since it replace unicode characters by SVG images.
|
||||
Some templates like `classic` and `repositories` support different output display size:
|
||||
- `regular` (default) will render a medium-sized image, which is suitable for both desktop and mobile displays and is preferable when using data-intensive metrics (since text may be scaled down on small devices)
|
||||
- `large` will render a large-sized image, which may be more suitable for some plugins (like displaying topics icons, repository contributors, etc.)
|
||||
- `columns` will render a full-width image, with two columns on desktop / one column on mobile
|
||||
|
||||
#### ℹ️ Examples workflows
|
||||
|
||||
|
||||
@@ -34,6 +34,7 @@ export default async function({login, q}, {conf, data, rest, graphql, plugins, q
|
||||
|
||||
//Display
|
||||
data.large = display === "large"
|
||||
data.columns = display === "columns"
|
||||
|
||||
//Animations
|
||||
data.animated = animations
|
||||
|
||||
@@ -175,6 +175,7 @@ inputs:
|
||||
values:
|
||||
- regular # 480px width
|
||||
- large # 960px width (may not be supported by all templates)
|
||||
- columns # Full width with two columns on desktop / One column on mobile
|
||||
|
||||
# Enable SVG CSS animations
|
||||
config_animations:
|
||||
|
||||
Reference in New Issue
Block a user