Coder Social home page Coder Social logo

Comments (1)

tangjyan avatar tangjyan commented on August 18, 2024 4

基本解决,供其他有需要的人参考

衬线字体

可以分别在各个字体设置中改,但是太麻烦,可以直接在_sass-_variables.scss中把非衬线字体的后面都改为衬线字体,Georgia比较好看。
$serif: Georgia, serif;

中英文切换

可以再建一个完全一样的仓库叫zh-cn,改为中文内容,这样访问https://[name].github.io/zh-cn 就可以很跳转了,然后将原模板网页中左上角没用的”[Homepage]“改为中英文切换,在_includes-masthead.html中改。有几个坑

  • 无法再fork,只能新建再设置
  • 中文锚点不起作用,实在解决不了了,我在md中自定义了新锚点
  • [Homepage]在移动端会隐藏,找到css取消隐藏
  • 中英文切换会新建标签页,css中加self属性
  • masthead.html中的navigation.yml url要加/zh-cn前缀(原模版中的顶栏导航跳转错误就是因为这里没加/acad-homepage.github.io前缀)
# main links links
main:
  - title: "About Me"
    url: "/acad-homepage.github.io/#about-me"

  - title: "News"
    url: "/acad-homepage.github.io/#-news"

  - title: "Publications"
    url: "/acad-homepage.github.io/#-publications"

  - title: "Honors and Awards"
    url: "/acad-homepage.github.io/#-honors-and-awards"

  - title: "Educations"
    url: "/acad-homepage.github.io/#-educations"

  - title: "Invited Talks"
    url: "/acad-homepage.github.io/#-invited-talks"

  - title: "Internships"
    url: "/acad-homepage.github.io/#-internships"

from acad-homepage.github.io.

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.