mataroa-blog / mataroa

Naked blogging platform
https://mataroa.blog
GNU Affero General Public License v3.0
253 stars 22 forks source link

Support custom CSS #3

Open savchenko opened 4 years ago

savchenko commented 4 years ago

As the content is generated dynamically, allowing users to include arbitrary CSS would be an advantage. Maybe with the light filtering for external resources, etc.

sirodoht commented 4 years ago

Hey Andrew,

I was thinking about this idea, but I think I'm leaning towards rejecting it because the point of mataroa is to be as minimal as possible. I won't close the door completely though, for the future; that's just my idea for the time being.

crukundo commented 2 years ago

Just wanted to add to this. It would be helpful to give us the ability to add some more styling. I have a table that I'd prefer to have a smaller font.

Screenshot 2022-06-06 at 12 55 25

Having the freedom to add a little inline styling like this would make all the difference and offer my readers a better experience.

table {font-size:11px}
Screenshot 2022-06-06 at 12 57 47
sirodoht commented 2 years ago

Hey @crukundo!

So, I have just added font-size in the allowed styles. This means you can use it as an inline style (but not standalone). For example, if you want to change your table font-size, you have to add it in HTML form (not markdown). Eg:

<table style="font-size: 11px;">
    <thead>
        <tr>
            <th align="left">Data</th>
            <th align="left">Detail</th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td align="left">01000000</td>
            <td align="left">Version 1</td>
        </tr>
        <tr>
            <td align="left">01</td>
            <td align="left"># of inputs (1)</td>
        </tr>
        <tr>
            <td align="left">c8 ... 3a</td>
            <td align="left">Ref output hash</td>
        </tr>
    </tbody>
</table>

Hopefully that makes sense? If not, let me know.

crukundo commented 2 years ago

Fantastic! Thank you for the quick turnaround @sirodoht. Works perfectly.

yffr commented 2 years ago

is there any way to disable the RSS feed in the footer? i was looking for an option, then tried looking for CSS input, then gave up and got here :)

sirodoht commented 2 years ago

Hey @yffr!

There is no option to disable to the RSS feed. Out of curiosity, how come you want to disable it?

yffr commented 2 years ago

personally i prefer to go super minimal with no update subscriptions as i quite appreciate the blog's versatility to become an article page for my website - where i can post tutorials and whatnot else without people getting pings

... even though nobody really reads the articles and only my friends have statistically ever visited my domain, i'd just appreciate a super simple interface to reference people who need help with topics i may have covered ...

dunno - tried bearblog and they require paid subscriptions to link to personal domains, which quickly drove me away immediately ... not that many other minimal blogging platform options, and yes, i've tried static site generators, and other git based web services on other platforms ...

upto you in the end, if not implemented i may just give up on the idea of a tutorial site, thats all

sirodoht commented 2 years ago

Hmm I see. I don't think we'll implement an option to disable RSS, with the thinking being that RSS is native to blogs, not only as a mechanism to get updates but also as a technique to boost the decentralised web (as RSS does not require a central discovery platform).

You can also just export your blog — from https://mataroa.blog/export/ — and use the mataroa theme with zola or hugo and just delete the RSS links from the templates/layout.

To be honest, since I understand you have everything you need feature-wise, if one decides to subscribe though RSS, just let them (also) decide how to handle these notifications/pings themselves. Just a suggestion / personal opinion :)

yffr commented 2 years ago

well, that may have to do - thanks for hearing me out :)

dejalavidavolar commented 1 month ago

Hi! Hope you are doing well. Any update of this? It would be great a little of customization!

sirodoht commented 1 month ago

Hey @dejalavidavolar!

Not really. The philosophy of mataroa is to be as minimal as possible, without enabling too many decisions about styling. I think this will remain the case for the future :)