Hexo Opening

Before there was a time used Hexo, was put content Githubon domestic. . . I know it, the slow one, so I gave up, bought the domain name myself, rented the Alibaba Cloud server, and set up a blog website. At that time, I was really happy. This was the first time in my life. It is worth remembering. It ’s worth remembering once, when I was planning to rebuild the blog site, and I backed up the code myself, but the database was not there. In this way, the ashes disappeared. Of course, the website is still there, and I plan to change it to something else.

I have recently regained it Hexo. It ’s free. Is n’t it suitable for a poor program male ape like me? It is convenient to record the problems encountered in work and study. Some trivial things in life are very convenient.

This gadget is very simple to download. It was when I selected the theme that my severely selected dysfunction patient relapsed , and finally chose Meadow , brother, remember to give money and advertise it. Of course, everyone ’s aesthetic is different. Part of the content of this theme has been changed as follows:

  1. Search section.
    Original theme click Searchthe icon input box will not take the initiative to get the focus, I feel not very friendly, so meadow.jsadd the following code:
$$('#toolbar [mdui-dialog]')[0].onclick = function () {
  let input = $$('#search .search-form-input')[0];
  // 这里使用 setTimeout 是因为 js 的执行顺序问题,最开始这个输入框是隐藏的
  setTimeout(function () {
    input.focus();
  });
}
  1. read more.
    This is at the very beginning there is bug, if not delete Hello Worldthis article you will find changes: will achieve.ejsthe summary section read:
<div id="achieve-abstract" class="mdui-card-content mdui-p-x-4">
<div class="post-abstract mdui-typo ">
  <% if (post.excerpt) { %>
    <%- strip_html(trim(post.excerpt)).replace(/\$/g, '') %>
  <% } else { %>
    <% let content = strip_html(trim(post.content)).replace(/\$/g, ''); %>
    <%- truncate(content, {length: theme.excerpt_length}) %>
  <% } %>
  </div>
  <%# 阅读更多%>
  <div style="text-align:center;">
    <a class="post-readmore mdui-btn mdui-ripple mdui-btn-raised" href="<%-url_for(post.path)%>"%>><%= __('more') %></a>
  </div>
</div>

I also changed the color of a place, but I wo n’t write it here. This is a personal aesthetic issue. At this point, the whole drama ends.

(Add my blog address: Bruce's Blog (Gitee) , Bruce's Blog (Github) )

Should I put two pictures? . .
PC:
PC blog style
mobile:
Mobile blog style

Follow me, there are small surprises every day!

Guess you like

Origin www.cnblogs.com/Super-Lee/p/12685229.html