question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

  1. make sure our folder structure is the proper one for what we want to achieve. Also see if we can make folder nesting level smaller, maybe by using permalinks or something. For content and static.
  2. can we generate SRI hashes for existent files on the fly? For bootstrap.min.css, bootstrap.*.js, popper.js/1.14.7/umd/popper.min.js. This would simplify things as we could remove the release-sri script
  3. get image width/height with Hugo when possible (examples images, homepage)
  4. maybe use Hugo Extended version for docs’ CSS? This is now done
  5. bep’s suggestion:

    Re.

    {{< partial "callout-warning-color-assistive-technologies.md" >}}
    

    The partial above uses the partial func to load, parse and execute templates. This has its limitations and is possibly ineffective. I would recommend that you store your callouts (and other content files you want to include) in a so-called headless bundle – and load them via .GetPage. This way you can use markdown + shortcodes etc.

  6. bep’s suggestion:

    Ref. {{ block "header" . }} in your single.html template. Blocks only make sense inside base template(s) (i.e. baseof.html), which I cannot see. I would highly recommend that you restructure your templates to use them. It removes some repetition.

  7. Fix https://github.com/twbs/bootstrap/blob/6335fbe224f28d2ce65c628756a84113ea65643f/site/layouts/_default/docs.html#L27
  8. Add a body class like layout-{{layout}} page-{{kind}}-{{title}}{{ with .Params.body_class }} {{ . }}{{ end }}

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:26 (19 by maintainers)

github_iconTop GitHub Comments

1reaction
bepcommented, Apr 5, 2019

Re sha384 – see https://github.com/gohugoio/hugo/issues/5815 – I will get that in the (big!) release on Monday.

With map files etc. in play, I think a “regular leaf bundle” will do the work, as map etc. files will just be copied to destination.

1reaction
budparrcommented, Mar 15, 2019

Curious why you’re running Fingerprint twice? Also, I think resources.Get is looking for your CSS file relative to the assets directory, so you may need to change your path. I’m happy to pull the repo down and fool around with it if that would be helpful.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Hugo | Calendar, meeting notes & tasks all in one place
Make your meetings more productive. Manage your calendar, notes, and tasks in one place. 30000+ teams & pros stay organized, prepared & aligned...
Read more >
Hugo M Toro, MD, PA: Board Certified Internal Medicine Katy ...
Trusted Board Certified Internal Medicine serving Katy, TX. Contact us at 281-398-8008 or visit us at 21660 Kingsland Blvd, Suite 300, Katy, TX...
Read more >
Hugo TODO · Issue #231 · twbs/blog - GitHub
TODO : social: add back og:site_name=Bootstrap Blog? vnu: ignore the duplicate IDs errors report the issue upstream in Hugo canonical URL is ...
Read more >
Add visual reminder on pages with "todo" shortcode - HUGO
I stole that for my hugo documentation site & extended it because I found very useful to have a visual reminder on the...
Read more >
hugo - Lo hago todo por ti - Apps on Google Play
What do you want today? With hugo you receive everything you need wherever you are. Order food from your favorite restaurants, drinks, transportation, ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found