nunocoracao / blowfish

Personal Website & Blog Theme for Hugo
https://blowfish.page
MIT License
1.55k stars 428 forks source link

✨ Zen Mode by default #1578

Open DarkXero-dev opened 5 months ago

DarkXero-dev commented 5 months ago

Hello..

I love Blowfish. However I have a feature request. I way to enable ZenMode for all Articles by default. Since most of us have large monitors it's better.

Thanks

DarkXero-dev commented 5 months ago

I forgot to mention that embedded videos using youtubeLite are no longer centered when ZenMode is enabled. Look at image below.

Example

dioxipe commented 4 months ago

Hi @DarkXero-dev, I think this is a nice feature. I don't know how to do it thought params in each article, but I have done it as a shortcode: layouts>shortcodes>zenmode-enabled.html

<script>
    window.onload = function() {
        var zenButton = document.getElementById('zen-mode-button');
        zenButton.click();
    };
</script>

In each article that I want to activate by default, I add {{ zenmode-enabled }}. Isn't an elegant solution but it works :)

DarkXero-dev commented 4 months ago

@dioxipe

Thanks for showing me a solution. It's best we can do until devs include it in the code via an update at some point..

jsabater commented 3 months ago

Just to, first, express my gratitude to Nuno and the rest of developers of this very nice theme and, second, support this feature request as I would also be interested in it.

nunocoracao commented 3 months ago

Hey, sorry, everyone. It's been hard keeping up with the inflow of issues. My concern with this one is that it requires a new parameter. I need to consider this. @DarkXero-dev would a param to activate zemode for all articles be sufficient or would you like to have something on a per-article basis... as I write this I realize that if I follow the existing logic it should support both.

DarkXero-dev commented 2 months ago

@nunocoracao

Hey. Am glad you are back. Better to have it as a whole. I have too many articles to have to do it on a per Article basis. Thank you so much for your hard work.

BasilSkrnk commented 14 hours ago

My suggestion, if implementing this, it’s better it being following the same logic as everywhere: a global (default) parameter, plus per-article override.