A beginner: How to render callouts? #1030
-
Hi there, To be honest, I am not very well versed with ruby gem. I managed to play with Just the docs but the only part where I am stuck at the current stage is callout not being rendered.
callouts_level: quiet # or loud
callouts:
highlight:
color: yellow
important:
title: Important
color: blue
new:
title: New
color: green
note:
title: Note
color: purple
warning:
title: Warning
color: red
Could you please help me out, please? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hey @Curovearth, can you send us a link to your repository and/or the code you're using to actually render the callout? |
Beta Was this translation helpful? Give feedback.
-
@Curovearth Thanks for posting the link to your repo.
Your gem "just-the-docs", "0.4.0.rc3"
# gem "just-the-docs", github: "pdmosses/just-the-docs", branch: "callouts"
# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
# uncomment the line below. To upgrade, run `bundle update github-pages`.
# gem "github-pages", group: :jekyll_plugins
# If you have any plugins, put them here!
But there's another issue, which is the reason the callouts still don't appear correctly. Your home page includes: # BIPR aka BioInspired Perception and Robotics
---
{: .warning }
> This website is under active construction.
{: .note } This website is under active construction. The kramdown docs for Block Boundaries states:
If you insert a blank line before ---
{: .warning }
> This website is under active construction. that callout should render as intended. (The theme docs for Callouts should be updated to warn about the need for blank lines before the Block IAL.) And if you replace {: .note }
This ... that one should work too. A local screenshot: |
Beta Was this translation helpful? Give feedback.
@Curovearth Thanks for posting the link to your repo.
Your
Gemfile
includes:jekyll-remote-theme
is a plugin, included by thegithub-pages
gem. If you uncomment the penultimate line above, the theme layout should appear after rebuilding your site locally.But there's ano…