Boolean Algebra

This is also a pdf test

click me to go to the pdf

acutally, I have read lots of passage about embedding pdf into hexo

  • use the plugin hexo-pdf

  • However this plugin is too old to use, lots of vulnerabilities in it.

  • use pdf.js

    • It seems to be an elegant method, but I don’t understand how to use it, the documentation is tough to read. And the most important thing is that I just want to get this job done, I don’t want to be elegant this time.

    • Plus, I heard words like this

      It is very difficult to embed it into Hexo since command hexo d only uploads Hexo’s own file to the server.

Finally, solution from notlsd enlightened me, why not let the browser get all jobs done? Thank you, notlsd.

thankyou

My solution

just one line of code, every thing is done. Also, the style of the link can be highly customized.

It is ugly, but it works.

1
<div style="cursor:pointer;color:green;" onclick='window.location.href="./Boolean Algebra.pdf"' >click me to go to the pdf</div>
  • do not use href="./assert-folder/Boolean algebra.pdf", only ./Boolean Algebra, otherwise the path converter will convert it into /assert-folder//assert-folder/Boolean%20algebra.pdf, wired🤷‍♂️
  • if you do not have the converter, you may need to check
    • permalink in _config.yml
    • post_asset_folder: true in _config.yml

another promising solution