Giter Site home page Giter Site logo

rq-chen / rq-chen.github.io Goto Github PK

View Code? Open in Web Editor NEW
2.0 0.0 1.0 396.63 MB

Ruiqi's personal website

Home Page: https://rq-Chen.github.io/

HTML 81.07% MATLAB 4.71% CSS 7.28% JavaScript 5.84% Python 1.08%
brain-networks cognitive-neuroscience phd-application

rq-chen.github.io's Introduction

Ruiqi's Personal Website

The idea is to build the website in the easiest way. From my point of view, compared to the Jekyll method, it is even more convenient to use Typora to generate html file from markdown notes. Besides, you can maintain a more straightforward folder structure in your website.

The as-easy-as-possible way:

  1. Download Typora.
  2. Choose a Typora theme you like.
  3. Write your blogs in Typora.
  4. Export them to HTML.
  5. Put HTMLs in your github page repo.

However, in this way all your html files will contain an identitle stylesheet, which is somewhat redundant. Besides, you can only use Typora's theme, and it's hard to change the theme for your established website.

The somewhow-more-concise way:

  1. Download Typora.

  2. Go to "Preferences"-"Export":

    1. Create a new output type by clicking the plus sign.

    2. Select "HTML (without styles)".

    3. In the "Append in <head/>" box, enter:

      <link rel="stylesheet" type="text/css" href="/css/global.css">
      <link rel="stylesheet" type="text/css" href="css/local.css">

      This will allow you to format all your html pages by a single theme global.css under the root of your website. Besides, it allows you to set the theme for a specific page by providing a local.css for it.

  3. Write your blogs in Typora, then export them with the type you create.

  4. Create a folder /css under the root of your github pages repo. Find a css you like, rename it to global.css and put it under this folder.

    (Note: if you are as lazy as me, you can go to "themes"-"open themes folder" and find Typora's default themes there)

  5. Whenever you need to display a page with additional format, create a folder /css in the same place and put in a local.css.

You can add javascripts to all your pages by modifying "Append in <head/>" too. For example, I add some syntax highlighting with highlight.js:

<link href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.2.0/styles/stackoverflow-light.min.css" rel="stylesheet">
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.2.0/highlight.min.js"></script>
<script >hljs.initHighlightingOnLoad();</script>

You can also modify the "Append in <body/>" section to put something at the bottom of your pages, e.g. a link to the homepage.

rq-chen.github.io's People

Contributors

rq-chen avatar

Stargazers

 avatar  avatar

Forkers

shushu66

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.