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

Not working disabled metadata #40

Open
renanbastos93 opened this issue May 20, 2024 · 5 comments
Open

Not working disabled metadata #40

renanbastos93 opened this issue May 20, 2024 · 5 comments

Comments

@renanbastos93
Copy link

renanbastos93 commented May 20, 2024

I have setted showMetadata = false in config.toml but it doesn't work.

example

[params]
user = ""
hostname = "renanbastos.dev"
sitedescription = 'Renan Bastos has been working as a Software Engineer for over 9 years with cutting-edge technologies'
showMetadata = false
image
@renanbastos93
Copy link
Author

PR opened: #41

@LordMathis
Copy link
Owner

I see. So basically, if you set it to false it becomes false | true which is evaluates to true

@LordMathis
Copy link
Owner

Wait actually the disabling works as expected but it has to be changed individually in each post frontmatter. Globally turning off post metadata is not yet implemented. I'd welcome a PR for this. I'll keep this issue open but I'll close #41

@renanbastos93
Copy link
Author

What do you expect to do?

@LordMathis
Copy link
Owner

The if statement currently checks if .Params.showMetadata is set to false. .Params is set in post frontmatter. To be able to disable post metadata globally it also needs to check .Site.Params.showMetadata. If either of those is false the metadata on that post won't be shown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants