mirror of
https://github.com/makew0rld/amfora.git
synced 2024-11-23 14:19:12 +03:00
parent
eab0a6a626
commit
7318283aef
@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
### Added
|
### Added
|
||||||
- Syntax highlighting for preformatted text blocks with alt text (#252, #263, [wiki page](https://github.com/makeworld-the-better-one/amfora/wiki/Source-Code-Highlighting))
|
- Syntax highlighting for preformatted text blocks with alt text (#252, #263, [wiki page](https://github.com/makeworld-the-better-one/amfora/wiki/Source-Code-Highlighting))
|
||||||
- [Client certificates](https://github.com/makeworld-the-better-one/amfora/wiki/Client-Certificates) can be restricted to certain paths of a host (#115)
|
- [Client certificates](https://github.com/makeworld-the-better-one/amfora/wiki/Client-Certificates) can be restricted to certain paths of a host (#115)
|
||||||
|
- `header` config option in `[subscriptions]` to allow disabling the header text on the subscriptions page (#191)
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
- Center text automatically, removing `left_margin` from the config (#233)
|
- Center text automatically, removing `left_margin` from the config (#233)
|
||||||
|
@ -263,6 +263,7 @@ func Init() error {
|
|||||||
viper.SetDefault("subscriptions.update_interval", 1800)
|
viper.SetDefault("subscriptions.update_interval", 1800)
|
||||||
viper.SetDefault("subscriptions.workers", 3)
|
viper.SetDefault("subscriptions.workers", 3)
|
||||||
viper.SetDefault("subscriptions.entries_per_page", 20)
|
viper.SetDefault("subscriptions.entries_per_page", 20)
|
||||||
|
viper.SetDefault("subscriptions.header", true)
|
||||||
|
|
||||||
viper.SetConfigFile(configPath)
|
viper.SetConfigFile(configPath)
|
||||||
viper.SetConfigType("toml")
|
viper.SetConfigType("toml")
|
||||||
|
@ -333,6 +333,9 @@ workers = 3
|
|||||||
# The number of subscription updates displayed per page.
|
# The number of subscription updates displayed per page.
|
||||||
entries_per_page = 20
|
entries_per_page = 20
|
||||||
|
|
||||||
|
# Set to false to remove the explanatory text from the top of the subscription page
|
||||||
|
header = true
|
||||||
|
|
||||||
|
|
||||||
[theme]
|
[theme]
|
||||||
# This section is for changing the COLORS used in Amfora.
|
# This section is for changing the COLORS used in Amfora.
|
||||||
|
@ -330,6 +330,9 @@ workers = 3
|
|||||||
# The number of subscription updates displayed per page.
|
# The number of subscription updates displayed per page.
|
||||||
entries_per_page = 20
|
entries_per_page = 20
|
||||||
|
|
||||||
|
# Set to false to remove the explanatory text from the top of the subscription page
|
||||||
|
header = true
|
||||||
|
|
||||||
|
|
||||||
[theme]
|
[theme]
|
||||||
# This section is for changing the COLORS used in Amfora.
|
# This section is for changing the COLORS used in Amfora.
|
||||||
|
@ -97,9 +97,11 @@ func Subscriptions(t *tab, u string) string {
|
|||||||
} else {
|
} else {
|
||||||
// Render page
|
// Render page
|
||||||
|
|
||||||
rawPage += "You can use Ctrl-X to subscribe to a page, or to an Atom/RSS/JSON feed. See the online wiki for more.\n" +
|
if viper.GetBool("subscriptions.header") {
|
||||||
"If you just opened Amfora then updates may appear incrementally. Reload the page to see them.\n\n" +
|
rawPage += "You can use Ctrl-X to subscribe to a page, or to an Atom/RSS/JSON feed. See the online wiki for more.\n" +
|
||||||
"=> about:manage-subscriptions Manage subscriptions\n\n"
|
"If you just opened Amfora then updates may appear incrementally. Reload the page to see them.\n\n"
|
||||||
|
}
|
||||||
|
rawPage += "=> about:manage-subscriptions Manage subscriptions\n\n"
|
||||||
|
|
||||||
// curDay represents what day of posts the loop is on.
|
// curDay represents what day of posts the loop is on.
|
||||||
// It only goes backwards in time.
|
// It only goes backwards in time.
|
||||||
|
Loading…
Reference in New Issue
Block a user