Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide from anon #1

Merged
merged 2 commits into from Jun 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
16 changes: 16 additions & 0 deletions common/common.scss
Expand Up @@ -59,6 +59,22 @@
color: $link_icon_color;
}

// * hide entire Sidebar from anon *

@if $hide_all_from_anon == "true" {
html.anon {
// Hide the narrow desktop sidebar
// sidebar mobile version which is activate on desktop too under 1000px width
.d-header .hamburger-panel {
display: none;
}
// Hide the header cloak when menu opens
.header-cloak {
display: none !important;
}
}
}

// * hide the Community Section *

@if $hide_community_section == "true" {
Expand Down
8 changes: 7 additions & 1 deletion settings.yml
Expand Up @@ -86,7 +86,13 @@ current_link_icon_color:
default: ""
description:
en: "Color of the active side-bar link icon. Leave blank to use current default."


hide_all_from_anon:
type: bool
default: false
description:
en: "Hide the entire side-bar from anonymous users"

hide_community_section:
type: bool
default: false
Expand Down