Code Monkey home page Code Monkey logo

Comments (9)

maple3142 avatar maple3142 commented on June 11, 2024 2

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.

tsanie avatar tsanie commented on June 11, 2024 1

@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.

ivan-nginx avatar ivan-nginx commented on June 11, 2024
custom_text: Hosted by <a href="https://pages.coding.me"><b>Coding Pages</b></a>

image

from hexo-theme-next.

iistak avatar iistak commented on June 11, 2024

how if i need a style besides <i>, <b>, <u>?

from hexo-theme-next.

maple3142 avatar maple3142 commented on June 11, 2024

@iistak style attribute?

<div style="">
</div>

from hexo-theme-next.

ivan-nginx avatar ivan-nginx commented on June 11, 2024

@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.

iistak avatar iistak commented on June 11, 2024

@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.

ivan-nginx avatar ivan-nginx commented on June 11, 2024

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.

iistak avatar iistak commented on June 11, 2024

@ivan-nginx @maple3142 @tsanie thank you all 4 the explanations and the solutions, help me a lot.

from hexo-theme-next.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.