Coder Social home page Coder Social logo

Comments (11)

chipzoller avatar chipzoller commented on May 28, 2024 3

The first feature is something we aren't planning to implement at this time, but of course that's subject to change especially if there's more interest. The second feature, as I said, will get implemented in 2.0. That will probably be a next year target.

For page resources, the convention in Hugo is to separate static files from text content because images, icons, etc don't get rendered by Hugo while text (in the form of MD) does. So for my own blog, I create a dir for the year-month followed by a year for the post title. I do this for both content and static sides. Separating that content also helps in some CI/CD processes where changes occur in only one directory while leaving images be.

from hugo-clarity.

chipzoller avatar chipzoller commented on May 28, 2024 2

Hello, Nicola. I can handle the third question while the other two would be better answered by @onweru. We currently have not implemented a search function, however this is planned in the 2.0 milestone via a custom implementation. The "reading time" function you mentioned is a separate piece of functionality if you're asking about blogs that state something like "estimated 5 minutes to read" up front. This isn't something that a search function would solve, however.

from hugo-clarity.

onweru avatar onweru commented on May 28, 2024 1

@rugginic,

what would be the best way to customise the theme (color scheme, fonts, ecc)

I believe that is covered, to a good degree, in the readme

do you use the "static folder" for images and other content? and "content folder" only for the MDs?

That's exactly right.

I'm trying to keep posts and their resources (images, attachments, ecc) within the content folder, leveraging page bundles.

I'm familiar with the concept of page bundles, but I have so far ignored them to an obvious fault. Nonetheless for a good reason; I find media management on forestry cms (most SSG cms) painful when Hugo page resources are applied. I'll give this some thought, and if the theme can support page bundles simultaneously, I'll add support. Thanks for raising this.

from hugo-clarity.

chipzoller avatar chipzoller commented on May 28, 2024 1

Yes, that's the concept of Page Bundles, but they're a (fairly) new concept to Hugo. Prior to Page Bundles, the convention was that non-rendered files (typically images) should be defined in /static which is what we're currently doing. Bundles are certainly something I'd like to see, but that's just going to take a little time.

from hugo-clarity.

onweru avatar onweru commented on May 28, 2024 1

@rugginic, I have updated the readme accordingly to accommodate your question. It might be helpful to look at the comments embedded in the files affected by 714a461 as well

from hugo-clarity.

onweru avatar onweru commented on May 28, 2024 1

One more thing, to add new font files use these wonderful templates that were added by @razonyang at #50

from hugo-clarity.

rugginic avatar rugginic commented on May 28, 2024 1

@onweru Thanks a lot!
I maneged to override the colors creating /assets/sass/_override.sass !!
Just a heads up:

// we recommend not editing this file directly. Instead, create an assets/sass/override.sass file at the root level of your site.

In my case it didn't work without the "_" underscore. The file has to be renamed _override.sass

from hugo-clarity.

rugginic avatar rugginic commented on May 28, 2024

Hello Chip! Thanks for coming back to me! You are right, In fact my 3rd question was a kind of "feature request" for 2 separate features:

  1. Reading time as many other themes already have. Exactly what you are referring to: "estimated reading time" nice to have for a casual reader who has 5 spare minutes and might not start reading an article that takes an average of 30 minutes to read (or vice versa!)
  2. The second is for implementing search through articles. I read that it is planned for v2.0 release and also here someone has already implemented a custom search page, that could do for me while waiting for the official release!

Just out of curiosity, what is your approach in terms of page resources? When you publish a new post that has a bunch of screenshots, thumbnail, featured image and possibly search image, do you use the "static folder" for images and other content? and "content folder" only for the MDs?

Thanks,
Nicola

from hugo-clarity.

rugginic avatar rugginic commented on May 28, 2024

@onweru Thank you,

I believe that is covered, to a good degree, in the readme

yes, you are right. is it covered in the readme, and my apologies if I'm asking silly questions, I guess this is more related to git and workflow instead of this theme: I wanted to change the background color and, following the instruction I modifies _variables.sass, but now git complains about untracked changes for the submodule.
I know I could just clone the repository instead of adding the submodule, but in this way, wouldn't I miss the chance to update the theme in the future when a new release is available?

I find media management on forestry cms (most SSG cms) painful when Hugo page resources are applied.

Sorry, I'm not sure I understand how forestry is related. For my understanding, image processing was introduced in hugo for the purpose to help manage images on page bundles, right? That's why image processing only applies to images within the "content" folder, as per Hugo guidelines on Content Management.

@chipzoller Thank you,

For page resources, the convention in Hugo is to separate static files from text content

I'm confused, Isn't it contradicting the concept of Page Bundles?

from hugo-clarity.

rugginic avatar rugginic commented on May 28, 2024

@onweru

Pro Tip: You can change the theme colors via the this variable's SASS file

How do one overrides the _variables.sass or creates a custom .sass outside the them folder? I'm quite happy with changing $bg and $theme colors and I think I tried almost everything but I can't manage to change those settinngs leaving the theme's folder untouched. Can you please help?

from hugo-clarity.

onweru avatar onweru commented on May 28, 2024

@rugginic, thanks for catching that.

from hugo-clarity.

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.