Skip to content

A self-hosted dashboard that puts all your feeds in one place

Merge branch 'release/v0.7.0' into default-expand-mobile-navigation

Svilen Markov5e576a58e948
diff --cc docs/configuration.md
index 1eea49d,9a2bfce..0cd44cf
--- a/docs/configuration.md
+++ b/docs/configuration.md
@@@ -307,8 -313,8 +313,9 @@@ pages
| title | string | yes | |
| slug | string | no | |
| width | string | no | |
+ | center-vertically | boolean | no | false |
| hide-desktop-navigation | boolean | no | false |
+| expand-mobile-page-navigation | boolean | no | false |
| show-mobile-header | boolean | no | false |
| columns | array | yes | |
diff --cc internal/assets/templates/page.html
index 89e372b,18d8b85..e452dde
--- a/internal/assets/templates/page.html
+++ b/internal/assets/templates/page.html
@@@ -44,9 -44,9 +44,9 @@@
<div class="mobile-navigation-icons">
<a class="mobile-navigation-label" href="#top">↑</a>
{{ range $i, $column := .Page.Columns }}
- <label class="mobile-navigation-label"><input type="radio" class="mobile-navigation-input" name="column" value="{{ $i }}" autocomplete="off"{{ if eq "full" $column.Size }} checked{{ end }}><div class="mobile-navigation-pill"></div></label>
+ <label class="mobile-navigation-label"><input type="radio" class="mobile-navigation-input" name="column" value="{{ $i }}" autocomplete="off"{{ if eq $i $.Page.PrimaryColumnIndex }} checked{{ end }}><div class="mobile-navigation-pill"></div></label>
{{ end }}
- <label class="mobile-navigation-label"><input type="checkbox" class="mobile-navigation-page-links-input" autocomplete="on"><div class="hamburger-icon"></div></label>
+ <label class="mobile-navigation-label"><input type="checkbox" class="mobile-navigation-page-links-input" autocomplete="on"{{ if .Page.ExpandMobilePageNavigation }} checked{{ end }}><div class="hamburger-icon"></div></label>
</div>
<div class="mobile-navigation-page-links">
{{ template "navigation-links" . }}
diff --cc internal/glance/glance.go
index 567d0c0,2fd1ef9..1ef654a
--- a/internal/glance/glance.go
+++ b/internal/glance/glance.go
@@@ -68,15 -68,15 +68,16 @@@ type templateData struct
}
type Page struct {
- Title string `yaml:"name"`
- Slug string `yaml:"slug"`
- Width string `yaml:"width"`
- ShowMobileHeader bool `yaml:"show-mobile-header"`
- HideDesktopNavigation bool `yaml:"hide-desktop-navigation"`
- CenterVertically bool `yaml:"center-vertically"`
- Columns []Column `yaml:"columns"`
- PrimaryColumnIndex int8 `yaml:"-"`
- mu sync.Mutex
+ Title string `yaml:"name"`
+ Slug string `yaml:"slug"`
+ Width string `yaml:"width"`
+ ShowMobileHeader bool `yaml:"show-mobile-header"`
+ ExpandMobilePageNavigation bool `yaml:"expand-mobile-page-navigation"`
+ HideDesktopNavigation bool `yaml:"hide-desktop-navigation"`
+ CenterVertically bool `yaml:"center-vertically"`
+ Columns []Column `yaml:"columns"`
++ PrimaryColumnIndex int8 `yaml:"-"`
+ mu sync.Mutex
}
func (p *Page) UpdateOutdatedWidgets() {