HugoBlox / hugo-blox-builder

🚨 GROW YOUR AUDIENCE WITH HUGOBLOX! 🚀 HugoBlox is an easy, fast no-code website builder for researchers, entrepreneurs, data scientists, and developers. Build stunning sites in minutes. 适合研究人员、企业家、数据科学家和开发者的简单快速无代码网站构建器。用拖放功能、可定制模板和内置SEO工具快速创建精美网站!
https://hugoblox.com/templates/
MIT License
8.19k stars 2.9k forks source link

Collapsible section not working #1588

Closed mees closed 4 years ago

mees commented 4 years ago

Hi, I am creating a news section with a blank widget and I want to add a collapsible option to display old news with the

Past News
tags such as shown in this snippet: https://gist.github.com/pierrejoubert73/902cc94d79424356a8d20be2b382e1ab (which works in github as you can see) However the collapsible section is not rendered on the website, is this a problem related to hugo or academic?

My widget:

+++
widget = "blank"  # See https://sourcethemes.com/academic/docs/page-builder/
headless = true  # This file represents a page section.
active = true  # Activate this widget? true/false
weight = 25  # Order that this section will appear.

title = "News"
subtitle = ""

[design]
  # Choose how many columns the section has. Valid values: 1 or 2.
  columns = "1"

[design.spacing]
  # Customize the section spacing. Order is top, right, bottom, left.
  padding = ["20px", "0", "20px", "0"]

+++
<br/><br/>
+  **09 Mar 2020**: foo
+ **12 Feb 2020**: bar.
+ **01 Feb 2020**: bla.

<details>
  <summary>Click to expand!</summary>

  ## Heading
  1. A numbered
  2. list
     * With some
     * Sub bullets
</details>
gcushen commented 4 years ago

Collapsable news is not a feature of Academic, although is possible using HTML snippets. Please use the chat to ask questions and discuss customizations with the community, see https://github.com/gcushen/hugo-academic/blob/master/.github/support.md

mees commented 4 years ago

@gcushen the problem is that the

tags are not parsed correctly, is this issue related to Hugos Goldmark markdown renderer? I opened the issue in the forum, but if you have an idea I would be grateful for your feedback.

gcushen commented 4 years ago

Yes, Hugo's new renderer works differently to BlackFriday. There are some Goldmark options that you can add to your config.toml that may help - refer to the Hugo docs/forums.