Giter VIP home page Giter VIP logo

Comments (10)

adityatelange avatar adityatelange commented on June 1, 2024 1

To keep it fast and performing the stuff like custom fonts and color gradings are not considered as a value to theme as it may make it slower as more resources are consumed

from hugo-papermod.

singhkays avatar singhkays commented on June 1, 2024 1

custom.css looks good in the commit. I'm not a web-dev so let me make sure I get this right:

1. Your branch custom-css includes an example of how to edit the head.html
2. I can use this head.html to override the default theme template using the Hugo doc link you shared above
3. Should I include the custom.css file in the theme's assets directory or the hugo blog's static/css directory?
4. I don't completely understand the minification comment. Are you saying custom css file will always be excluded from minification or if I include in the assets directory then it will be minified?

EDIT: Ignore 1-3. I got custom css working! 👍

from hugo-papermod.

adityatelange avatar adityatelange commented on June 1, 2024

pull requests are welcome

from hugo-papermod.

singhkays avatar singhkays commented on June 1, 2024

I don't know much about Go templates but I can take a crack at this by editing the default CSS. Does this theme also support custom css? I searched but couldn't find a reference to custom_css in the source code.

from hugo-papermod.

singhkays avatar singhkays commented on June 1, 2024

makes sense to be the default but assuming I'm OK with the perf hit, what's the best way to make my style choices for my blog? I suppose other users of this theme would be in the same boat and would want to customize the look and feel of their blogs based on this theme.

from hugo-papermod.

adityatelange avatar adityatelange commented on June 1, 2024

makes sense to be the default but assuming I'm OK with the perf hit, what's the best way to make my style choices for my blog? I suppose other users of this theme would be in the same boat and would want to customize the look and feel of their blogs based on this theme.

People using this theme are the one's who liked the minimalisim, dual-toned clean factor nature of hugo -paper but miss customization features which helps them increase the functionality and accessibility

The theme you're currently using (https://github.com/MunifTanjim/minimo/) is great as far as colors and features are a concern. Kudos for thier great work

from hugo-papermod.

adityatelange avatar adityatelange commented on June 1, 2024

suppose other users of this theme would be in the same boat and would want to customize the look and feel of their blogs based on this theme.

checkout these
https://theclonker.de/
https://brunoluiz.net/
https://raphaelgosteli.com/
https://veruu.github.io/
https://y2kappa.github.io/blog/

from hugo-papermod.

singhkays avatar singhkays commented on June 1, 2024

suppose other users of this theme would be in the same boat and would want to customize the look and feel of their blogs based on this theme.

checkout these
https://theclonker.de/
https://brunoluiz.net/
https://raphaelgosteli.com/
https://veruu.github.io/
https://y2kappa.github.io/blog/

Those look exactly the same as default. I hear you and as the theme author you have every right to make the default minimalistic choices for your users. However, hugo provides a way for users to customize their site using the custom.css file. Are you open to allow user customization in this way so that users who care about customizing their blogs can do so?

from hugo-papermod.

adityatelange avatar adityatelange commented on June 1, 2024

I had custom.css included earlier see this commit: a22aa8a

Reason being you can always override any asset or layout from the theme
read here: https://gohugobrasil.netlify.app/themes/customizing/#override-template-files
and here: https://gohugo.io/hugo-modules/theme-components/

Also as papermod does not have any nodejs dependencies you're good to go just by editing the css and/or the template, just like that.

p.s. This is also beacuse papermod uses minification by default, and using custom css without it in `assets' dir it won't be bundled with the stylesheet

{{- $stylesheet := slice $anoldhope $style | resources.Concat "assets/css/stylesheet.css" | minify | fingerprint -}}

this matters site loading time, more the requests, slower the site becomes
more : https://web.dev/resource-summary/ and https://web.dev/critical-request-chains/

from hugo-papermod.

adityatelange avatar adityatelange commented on June 1, 2024

@singhkays check this out b56f6dc

from hugo-papermod.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.