Coder Social home page Coder Social logo

janraasch / hugo-product-launch Goto Github PK

View Code? Open in Web Editor NEW
59.0 3.0 25.0 7.59 MB

🚀 A Hugo theme for young start-ups, product launches, and »coming soon«-websites. Includes contact form & newsletter sign up via Netlify. Deploy with one click!

Home Page: https://themes.gohugo.io/hugo-product-launch/

License: Other

CSS 7.13% HTML 57.64% JavaScript 25.78% Shell 9.44%
hugo hugo-theme theme netlify-forms netlify postcss tailwindcss

hugo-product-launch's People

Contributors

dependabot[bot] avatar janraasch avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

hugo-product-launch's Issues

Upgrade Hugo theme from Tailwind CSS 2.0 to Tailwind CSS 3.0

Upgrade Hugo theme from Tailwind CSS 2.0 to Tailwind CSS 3.0. Here are the steps:

  1. Update your package.json file: Run the following commands in your terminal:
npm uninstall tailwindcss
npm install tailwindcss@latest
  1. Update your tailwind.config.js file: Tailwind CSS 3.0 introduces some changes to the configuration file. Update your tailwind.config.js file to match the new format. Refer to the Tailwind CSS documentation.

  2. Update your CSS files: Tailwind CSS 3.0 introduces some new utility classes and deprecates some old ones. Go through your CSS files and update any classes that have been changed or removed.

  3. Rebuild your CSS: Run the following command in your terminal:

npm run build
  1. Test your site: Test your site to make sure everything is working as expected. If you encounter any issues, refer to the Tailwind CSS documentation for troubleshooting.

Error: Error building site: POSTCSS: failed to transform "css/main.css"

Problem

After installation, hugo server fails due to the following error:

Error: Error building site: POSTCSS: failed to transform "css/main.css" (text/css): TypeError: Object.entries(...).flatMap is not 
a function

Solution

Tailwind requires Node 12.0 or higher as pointed out by adamwathan.

Windows user can install the node version manager and use it like so:

nvm install 12
nvm use 12

html not working as expected

Hello,
Thank you for this very nice one page template.
I am having issues using html

For example, this gets omitted

<img src="https://github.com/favicon.ico" width="48">

Even simpler things get also omitted.
Using inspect element in my browser I see
raw HTML omitted

Appreciate any help, I am trying to use html to control the width of some images I added to the landing page.
Using md to do so like ![](images/example.png){width="70"} doesn't work as expected, the image gets displayed at native width and {width = "70"} appears as normal text.

When deployed to S3 site looks a mess

I think I must be missing something (again). The site looks fine locally, but when I build and deploy to S3 it looks terrible. All the CSS seems to be missing - what am I doing wrong?

Consider use relative css path

I started using Hugo today, this is the first template I tested.

According to readme:

Simply copy over the contents of the exampleSite-directory included in this theme

Static site (in public folder) build in this way has broken CSS link (starts from http://examplesite.com/...) I solved this by using relative path in styling.html file:

<link href=".{{ $css.RelPermalink }}" rel="stylesheet" />

I think that could be helpful for beginners :)

I get can't evaluate IsProduction errors.

$ hugo server -D
WARN 2020/11/11 21:45:49 Module "hugo-product-launch" is not compatible with this Hugo version; run "hugo mod graph" for more information.
Building sites … ERROR 2020/11/11 21:45:49 render of "home" failed: execute of template failed: template: index.html:3:6: executing "index.html" at <partial "head.html" .>: error calling partial: "/Users/jrwren/src/hqs/themes/hugo-product-launch/layouts/partials/head.html:4:6": execute of template failed: template: partials/head.html:26:6: executing "partials/head.html" at <partial "head/styling.html" .>: error calling partial: "/Users/jrwren/src/hqs/themes/hugo-product-launch/layouts/partials/head/styling.html:4:6": execute of template failed: template: partials/head/styling.html:4:6: executing "partials/head/styling.html" at <hugo>: can't evaluate field IsProduction in type interface {}
Total in 26 ms
Error: Error building site: failed to render pages: render of "page" failed: execute of template failed: template: _default/single.html:3:6: executing "_default/single.html" at <partial "head.html" .>: error calling partial: "/Users/jrwren/src/hqs/themes/hugo-product-launch/layouts/partials/head.html:4:6": execute of template failed: template: partials/head.html:26:6: executing "partials/head.html" at <partial "head/styling.html" .>: error calling partial: "/Users/jrwren/src/hqs/themes/hugo-product-launch/layouts/partials/head/styling.html:4:6": execute of template failed: template: partials/head/styling.html:4:6: executing "partials/head/styling.html" at <hugo>: can't evaluate field IsProduction in type interface {}

hugo-product-launch-kickstart - starting point ?

I am trying out https://github.com/janraasch/hugo-product-launch-kickstart, is this example meant to work out of the box just running

hugo server

I am getting the following errors so I am not sure if this example requires additional customisation before it will work

Start building sites … 
Built in 12 ms
Error: Error building site: "/data1/nyue/temp/hugo/hugo-product-launch-kickstart/content/_index.md:21:1": failed to extract shortcode: template for shortcode "contact_form" not found

Cheers

Hugo rendering does not work as expected

Hello,

I've followed your guide to setup the example site for testing. If I start hugo server everything is fine and I get a css file with several thousand lines.

But if I render the page with hugo, the css is incomplete:

  • Its name is not main.css -> It is something like main.ec19971888d6d03ee7354d70b3b1b70cc3cf5ee8e7c34f98ddedd7348dd4c32b.css
  • Its content is incomplete.
  • The webpage clearly shows that css is missing something:

Bildschirmfoto_2020-11-10_14-55-27

I am using hugo version 0.74.3 and npm 6.14.8. Am I missing something?

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.