-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve setting API and default settings
We love nested settings.
- Loading branch information
1 parent
d1581d2
commit 630d187
Showing
9 changed files
with
116 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,49 @@ | ||
output_directory: _build | ||
# This file provides the default configuration settings for Lifer. | ||
|
||
title: My Lifer Weblog | ||
description: Just another Lifer weblog, lol... | ||
language: en | ||
author: Admin | ||
|
||
entries: | ||
default_title: Untitled Entry | ||
|
||
feed: | ||
builder: rss | ||
uri: feed.xml | ||
|
||
uri_strategy: simple | ||
root: | ||
uri_strategy: simple | ||
|
||
# You can optionally set a path to the layout file. If this setting is left | ||
# unset, Lifer will use its built-in, simple-but-usable layout file instead. | ||
# | ||
### layout_file: path/to/my_layout.html.erb | ||
|
||
# Collections | ||
# | ||
# In addition to the root collection configured above, your configuration file | ||
# can include any number of collections. Collections use the root collections | ||
# configuration by default, or they can have their own values. | ||
# | ||
### my_collection: | ||
### title: My Collection | ||
### description: A collection separate from the root collection. | ||
### language: fr | ||
### author: Benjamin | ||
### | ||
### feed: | ||
### builder: rss | ||
### uri: feed.xml | ||
### | ||
### uri_strategy: pretty | ||
### | ||
### layout_file: path/to/my_other_layout.html.erb | ||
|
||
# Global settings | ||
# | ||
# These settings are special, and they're used for all of your collections and | ||
# cannot be set per collection. | ||
# | ||
global: | ||
host: https://example.com | ||
output_directory: _build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 4 additions & 2 deletions
6
spec/support/root_with_entries/.config/custom-config-with-multiple-rss-feeds.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
feed_uri: default.xml | ||
feed: | ||
uri: default.xml | ||
subdirectory_one: | ||
feed_uri: subdirectory_one.xml | ||
feed: | ||
uri: subdirectory_one.xml |