Giter Club home page Giter Club logo

gitalk's People

Contributors

zhwangart avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

gitalk's Issues

> @mwm0522

@mwm0522
我想请教下,你首页的内容默认收起来,点击标题阅读全文是怎么做的,我的怎么是把全部文章展示出来了。我也是搞了一下午,后来我看看你的请求链接,才发现我的请求链接错误了

我是这么做的,不知道能不能帮到你:

1、模板文件中(还是以 ejs 为例)写:

<% if (post.excerpt && index){ %>
  <%- post.excerpt %>
    <% if (theme.excerpt_link){ %>
      <a class="article-more-link" href="<%- url_for(post.path) %>"><%= theme.excerpt_link %></a>
    <% } %>
  <% } else { %>
    <%- post.content %>
<% } %>

2、Theme config.yml 中定义 excerpt_link 文本内容

excerpt_link: Read More...

3、Markdown 文档:

摘要...
<!--more-->
正文...

然后首页就只显示 摘要... 了!

Originally posted by @zhwangart in #6 (comment)

再见 2012 | 数学家

https://zhwangart.github.io/Bye-2012.html

沿着这城市一起走过的每一个地方,慢慢走着,似乎在探寻三年以前关于半边身子赌注的故事,闻闻什刹海水的味道,看看古老的建筑物,还是否能找到你我爱情留下的痕迹,追溯过去留在这座城市中的脚印,品味下独特的古都情怀。终我一生,我想我再也找不到那年月里埋在心里的最初的美好。

再见 2012 | 数学家

https://zhwangart.github.io/2012/12/21/Bye-2012/

沿着这城市一起走过的每一个地方,慢慢走着,似乎在探寻三年以前关于半边身子赌注的故事,闻闻什刹海水的味道,看看古老的建筑物,还是否能找到你我爱情留下的痕迹,追溯过去留在这座城市中的脚印,品味下独特的古都情怀。终我一生,我想我再也找不到那年月里埋在心里的最初的美好。

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.