A Fresh New Start

RuninChaos.com | Created by Runmin ZHAO

ABOUT


The Bolgger

Runmin ZHAO, PhD
Email: zhaorm1995@gmail.com

The Content Management System

CMS: Typecho 1.1 >>
Theme: Amaze >> (Originally in Chinese. Edited the PHP code to display the sidebars in English)

The Mathjax Rendering

Added script codes in the <body> part of the file footer.php.

<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js"],
    jax: ["input/TeX", "output/HTML-CSS"],
    tex2jax: {
      inlineMath:  [ ["$", "$"],  ["\(","\)"] ],
      displayMath: [ ["$$","$$"], ["\[","\]"] ],
      processEscapes: true
    },
    "HTML-CSS": { availableFonts: ["TeX"] }
  });
</script>
<script type="text/javascript"
   src="https://cdn.bootcss.com/mathjax/2.7.2/latest.js?config=TeX-AMS-MML_HTMLorMML">
</script>

Nginx Rewrite

Added script codes in the file bcloud_nginx_user.conf in the webroot directory.

if (-f $request_filename/index.html){
    rewrite (.*) $1/index.html break;
}
if (-f $request_filename/index.php){
    rewrite (.*) $1/index.php;
}
if (!-f $request_filename){
    rewrite (.*) /index.php;
}

Add a New Comment