Comments (9)
I think using a block is better, no need to escape any quote.
custom_text: >
Hosted by <a href="https://pages.coding.me" style="font-weight:bold">Coding Pages</a>
from hexo-theme-next.
@iistak Hi man, try to add the single quote surrounding the custom texts. such as:
custom_text: 'Hosted by <a href="https://pages.coding.me" style="font-weight: bold">Coding Pages</a>'
from hexo-theme-next.
custom_text: Hosted by <a href="https://pages.coding.me"><b>Coding Pages</b></a>
from hexo-theme-next.
how if i need a style besides <i>, <b>, <u>?
from hexo-theme-next.
@iistak style attribute?
<div style="">
</div>
from hexo-theme-next.
@maple3142 he want set styles in JSON object.
@iistak i solve your issue, why u asking this questions? There are many various books about HTML, CSS and JS, u just can learn it and do byself anything u want.
from hexo-theme-next.
@ivan-nginx as you said that the issue was caused by a repeated ":" in the config file, i am a total fresh and now i understand that one ":" means one key(key: value/string).
in this situation, the string may include one ":" or more, you did solve my issue by replacing the style attribute including ":" with the <b> tag, but how if when i have to use the style attribute? you know a style must include at least one ":".
luckily, i'v solved the issue when first post,
as i mentioned in Other Information
i deleted the space between font-weight: & bold, then hexo work fine
and following is my current config:
custom_text: Hosted by <a href="https://pages.coding.me" style="font-weight:bold">Coding Pages</a>
from hexo-theme-next.
but how if when i have to use the style attribute?
Nowhow. This is configuration file, it's work for save settings at most boolean, digits and simple words data. For serve styles there is special files for this, located in source/css
and engine preserve smooth compatability for SCSS/SASS styles within read data from configuration file.
If u want to do something good with this for yourself, it is bad begining to try set anything anywhere u want. It is system, and system like order and discipline.
font-weight:bold
This is absolutely wrong implementation. Someday u can get a lot of errors and a lot of time will think what's going on with this shit and why maintainers so stupid cos can't make simple things to stable work.
from hexo-theme-next.
@ivan-nginx @maple3142 @tsanie thank you all 4 the explanations and the solutions, help me a lot.
from hexo-theme-next.
Related Issues (20)
- 无法设置自动折叠帖子 HOT 5
- click tags btn but get 404 page HOT 1
- Archive page cannot be rendered and displayed normally. HOT 1
- NexT note with customize link color HOT 1
- 如何添加博客分享功能? HOT 2
- <tr> tag with class="header" displayed incorrectly HOT 1
- 如何更换自定义字体 HOT 1
- ~/source/_data/footer.swig can't work as well HOT 1
- 能不能在主题中增加一个按标签进行分类,在搜索框前面增加选择标签的下拉框,进而实现分类搜索的功能?? HOT 1
- 移动端国内访问博客只显示框架,不显示文字 HOT 2
- 使用utteranc作为评论系统, 点击github注册按钮后, 总是返回到http://example.com/... 然后页面找不到 HOT 2
- 自定义:添加代码块折叠
- 空格宽度不一样 HOT 2
- 能否支持配置备案跳转地址 HOT 1
- Gitter集成问题 HOT 1
- insert a inline image in text, but the image and text are not aligned horizontally HOT 1
- next 主题如何设置首页为Archives HOT 1
- 有中文说明的config.yml吗? HOT 1
- 将官网链接替换为 theme-next.js.org HOT 2
- 關於中文段首空格與豎排的支持諮詢。 HOT 1
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 hexo-theme-next.