Giter Site home page Giter Site logo

know-all-app / shawnyeung.github.io Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cotes2020/jekyll-theme-chirpy

0.0 0.0 0.0 45 MB

Great theme for Github Page

Home Page: https://chirpy.cotes.page/posts/getting-started/

License: MIT License

Shell 4.69% JavaScript 18.42% Ruby 1.26% HTML 38.55% SCSS 37.08%

shawnyeung.github.io's Introduction

tips

  1. merge冲突时,from master是本地文件。

  2. post中的文件名不要重复,可以随便起,无所谓

  3. 去掉右侧panel的最近更新和热门标签,去layouts-page.html,搜trending即可

  4. 更改所有中文名,比如sidebar里tag的名字,去zh-CN文件里改

  5. 在首页增加摘要,需要在/_layouts/home.html 增加

        <div class="post-excerpt">
        {{ post.excerpt }}
        </div>
    

    且删除

        <div class="post-content">
          <p>
            {% include no-linenos.html content=post.content %}
            {{ content | markdownify | strip_html | truncate: 200 | escape }}
          </p>
        </div>
    
  6. 调整首页的摘要布局,需要把/_sass/layout/home.scss里的

          .post-content {
          margin-top: 0.6rem;
          margin-bottom: 0.6rem;
          color: var(--post-list-text-color);
          }
    

    替换为

    .post-excerpt {
          margin-top: 1.6rem;
          margin-bottom: 0.6rem;
          color: var(--sidebar-active-color);
          font-size:1.2rem;
          font-weight:500;
          }
    
  7. post页删除摘要,需要删除在/_layouts/post.html 里的

    <div class="post-meta text-muted">
    

    整个部分

  8. 增大post页右侧导航的字号,在/_sass/layout/post.scss 里增加

    #toc li a {
      font-size: 1rem;
      
      &.nav-link:not(.active) {
        color: #ababab;
      }
    }
    

shawnyeung.github.io's People

Contributors

cotes2020 avatar shawnyeung avatar zakkemble avatar dependabot-preview[bot] avatar joshjohanning avatar mattpopovich avatar nichtshsu avatar sillebille avatar ruzickap avatar brootware avatar mreddx avatar mpavelka avatar fwolfst avatar ryantg avatar periecle avatar genericmadscientist avatar paulovitorweb avatar nshidqi avatar michaeltan9999 avatar matybuild avatar martinp7r avatar marnick39 avatar renardjojo avatar sorindex avatar tamschi avatar codacy-badger avatar onevcat avatar blacksheep-git avatar ternbusty avatar mirusu400 avatar

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.