Closed iistak closed 6 years ago
custom_text: Hosted by <a href="https://pages.coding.me"><b>Coding Pages</b></a>
how if i need a style besides \, \, \?
@iistak style attribute?
<div style="">
</div>
@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.
@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 \ 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>
@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>'
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>
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.
@ivan-nginx @maple3142 @tsanie thank you all 4 the explanations and the solutions, help me a lot.
I agree and want to create new issue
Expected behavior
Actual behavior
Steps to reproduce the behavior
Node.js and NPM Information
Package dependencies Information
Hexo Information
Hexo version
Hexo Configuration
NexT Information
NexT Version:
NexT Scheme:
NexT Configuration:
Other Information
i deleted the space between
font-weight:
&bold
, then hexo work fine