Comments (5)
I don't quite understand your question, this is the source code for your screenshot. Can you show me an example where ``` method does not work?
```markdown
{{</* admonition type=tip title="This is a tip" open=false */>}}
A **tip** banner
{{</* /admonition */>}}
Or
{{</* admonition tip "This is a tip" false */>}}
A **tip** banner
{{</* /admonition */>}}
```
from doit.
Apologies, haven't used this theme before and I am probably doing something wrong however if you view this page https://unklnik.com/posts/2d-vector2-border-collisions/
You will see that when I copy and paste that code exactly as you typed above into the markdown file I get what you see in the image , which looks completely wrong. Black background, no header or copy icon. I have added this in the TOML file so not really sure what is going on. I have not altered or added any custom CSS it is default Hugo Extended & DoIt install.
[params.page.code]
# whether to show the copy button of the code block
copy = true
# the maximum number of lines of displayed code by default
maxShownLines = 10
THIS IS WHAT DISPLAYS USING THE CODE YOU SUPPLIED?
from doit.
Remove pygmentsUseClassic=true
in your config file.
from doit.
Config file? It is not in hugo.toml so where should I look?
from doit.
OK, so this was my mistake a newbie. So, basically I had copied the code below:
[markup]
[markup.highlight]
anchorLineNos = false
codeFences = true
guessSyntax = false
hl_Lines = ''
hl_inline = false
lineAnchors = ''
lineNoStart = 1
lineNos = false
lineNumbersInTable = true
noClasses = true
noHl = false
style = 'monokai'
tabWidth = 4
over the code below:
# Markup related configuration in Hugo
[markup]
# Syntax Highlighting (https://gohugo.io/content-management/syntax-highlighting)
[markup.highlight]
# false is a necessary configuration (https://github.com/dillonzq/LoveIt/issues/158)
noClasses = false
Once I had replaced the Basic Configuration code it suddenly works. Thanks
from doit.
Related Issues (20)
- [FEATURE] How to open search results in a new window HOT 1
- [BUG] 文章页面 刷新网页图片会变小 HOT 30
- [BUG] Author Avatar not updating HOT 2
- [BUG] can not override global font HOT 6
- [BUG] Dark theme overrides cosmetic settings from custom shortocde HOT 1
- [FEATURE] Adding [optional] summary in the article HOT 2
- [FEATURE] Add the author avatar to the post meta HOT 5
- [FEATURE] Person from LoveIt theme
- [BUG] 代码框无法正常渲染,无复制按钮、无折叠按钮 Code box not rendering properly, no copy button, no collapse button HOT 3
- [BUG] autocomplete, algolia 和 fuse 不使用 CDN
- [FEATURE] support content path is not posts
- 建立多个简单静态页面的标题栏,比如想建立about后,再标题栏再建立一个about类似的简单的页面,比如改名字为book
- [BUG] strange display summary in home page HOT 3
- Google Search Console is unable to index pages HOT 3
- [BUG] Cannot get side bar Table of Contents HOT 1
- [BUG] Unable to use Artalk(无法使用 Artalk) HOT 4
- [BUG] Diagrams/Mermaids in dark theme are messed up! HOT 2
- [FEATURE] Ability to disable image linking by default HOT 2
- [FEATURE] Provides PDF automatic paging function
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from doit.