bento icon indicating copy to clipboard operation
bento copied to clipboard

Incomplete formatting and no disqus comments

Open starship9 opened this issue 3 years ago • 7 comments

Hi,

I'm using your theme to build my blog, when viewed locally the website seems fine but as soon as I use a service like Netlify or Render, some elements are not formatted correctly. For instance:

  • The name of the website
  • The tags for each post
  • Disqus comments not loading

starship9 avatar Jun 08 '21 08:06 starship9

I got the Disqus comments to load, however, I needed to modify the formatting for the website title with regular HTML, tailwindCSS was not rendering correctly.

The tags are also formatted incorrectly with the orange link background not showing up at all

starship9 avatar Jun 09 '21 12:06 starship9

I believe I'm encountering the same issue deploying to Github Pages, there are some very obvious styling differences between running on the local hugo server vs. deployed to Github Pages.

Hard to know if there's an issue with the theme, hugo, or the build process. I did notice some differences in the CSS "header" locally vs remote:

Local CSS: /*!modern-normalize v1.1.0 | MIT License | https://github.com/sindresorhus/modern-normalize*/

Remote CSS: /*!normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css*/

Edit: I think Tailwind is missing entirely on the remote build.

mattdeluco avatar Mar 10 '22 03:03 mattdeluco

@starship9 Did you ever resolve this issue?

mattdeluco avatar Mar 10 '22 03:03 mattdeluco

@mattdeluco I didn't manage to resolve this unfortunately, I wasn't really sure how to go about it since CSS isn't really my strong suit

starship9 avatar Mar 10 '22 07:03 starship9

@leonardofaria are there any special requirements for the build command? Right now my gh-pages.yml uses hugo --minify to build.

mattdeluco avatar Mar 11 '22 14:03 mattdeluco

@starship9 I found a solution with help on the Hugo discourse forums: either you need to commit the resources directory in your project, or your automated build needs to include installing nodejs and running npm install to install node dependencies (like Tailwind.)

Here's my gh-pages.yml for an example.

mattdeluco avatar Mar 13 '22 02:03 mattdeluco

@starship9 I ended up reverting the changes to my gh-pages.yml file and instead committing the resources/ directory with the CSS generated for the Bento theme.

mattdeluco avatar Mar 13 '22 03:03 mattdeluco