Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Template #131

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 6 additions & 11 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Site settings 配置站点
title: '廖柯宇的独立博客'
description: '昵称悟空,千禧一代,前端开发者/伪极客/灵魂摄影师,热爱技术&设计。很高兴能在这里与你分享我对技术和生活的思考。'
keyword: '廖柯宇, 廖柯宇的独立博客, 廖柯宇的博客, 前端, 前端开发, 前端博客, javascript, vuejs, nodejs, 设计'
title: 'nightmare-man'
description: 'life if char,study is long long.'
keyword: 'student,java,client'
url: '' # your host

# when build blog on server, if you don't need baseurl, you should leave this value blank.
Expand All @@ -24,9 +24,9 @@ footer:
since: 2017

# Author 配置博主信息
author: '廖柯宇'
nickname: '悟空'
bio: '前端开发者,热爱技术&设计,简单乐观爱创造'
author: 'nightmare-man'
nickname: ' '
bio: 'student'
avatar: '/assets/img/profile.png'

# Search
Expand Down Expand Up @@ -55,11 +55,6 @@ postPatterns: 'circuitBoard'

# SNS settings 配置社交网站
# url: email, weibo, zhihu, twitter, instagram, juejin, github, douban, facebook, dribble, uicn, jianshu, medium, linkedin
sns:
weibo: '//weibo.com/lovecolcol'
juejin: '//juejin.im/user/57a6f434165abd006159b4cc'
instagram: '//www.instagram.com/steveliaocn'
github: '//github.com/kaeyleo'

# Tags 设置标签
recommend-tags: true # whether or not display recommend-tags on the sidebar
Expand Down
Binary file added assets/img/100.jfif
Binary file not shown.
Binary file removed assets/img/profile.png
Binary file not shown.
92 changes: 2 additions & 90 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,100 +1,12 @@
---
layout: default
home-title: H2O Theme For Jekyll
description: 或许是最漂亮的Jekyll主题
description:
---

{% include header.html %}

<div
class="g-banner home-banner {{ site.theme-color | prepend: 'banner-theme-' }}"
data-theme="{{ site.theme-color }}"
style="{% if page.header-img %}background: url({{ page.header-img | relative_url }}) no-repeat center center; background-size: cover;{% endif %}"
>
<h2>{{ page.home-title }}</h2>
<h3>{{ page.description }}</h3>
</div>

<main class="g-container home-content">
<div class="article-list">
{% for post in paginator.posts %}
<article class="article-item">
{% if post.cover %}
<div class="post-cover">
<a class="post-link" href="{{ post.url | relative_url }}" title="{{ post.title }}"></a>
<img src="{{ post.cover | relative_url }}" href="{{ post.url | relative_url }}" alt="">
</div>
{% endif %}
<section class="post-preview">
<a class="post-link" href="{{ post.url | relative_url }}" title="{{ post.title }}"></a>
<h2 class="post-title">{{ post.title }}</h2>
{% if post.subtitle %}
<h3 class="post-subtitle">{{ post.subtitle }}</h3>
{% endif %}
{% if post.subtitle.size==0 or post.subtitle==nil %}
<p class="post-excerpt">{{ post.excerpt | strip_html | strip_newlines | truncate: 126}}</p>
{% endif %}
</section>
<footer class="post-meta">
<div class="post-tags">
{% if post.tags.size > 0 %}
{% for tag in post.tags %}
<a href={{ "tags.html#" | append: tag | relative_url }} class="post-tag">{{ tag }}</a>
{% endfor %}
{% endif %}
</div>
<time class="post-date" datetime="{{ post.date | date:"%y-%m-%d" }}">{{ post.date | date_to_string }}</time>
</footer>
</article>
{% endfor %}

{% if paginator.total_pages > 1 %}
{% include pageNav.html %}
{% endif %}

</div>

<aside class="g-sidebar-wrapper">
<div class="g-sidebar">
<section class="author-card">
<div class="avatar">
<img src="{{ site.avatar | relative_url }}" alt="">
</div>
<div class="author-name" rel="author">{{ site.author }}</div>
<div class="bio">
<p>{{ site.bio }}</p>
</div>
{% if site.sns.size > 0 %}
<ul id="sns-links" class="sns-links">
{% for s in site.sns %}
<li>
<a href="{{ s[1] }}" target="_blank">
<i class="iconfont icon-{{ s[0] }}"></i>
</a>
</li>
{% endfor %}
</ul>
{% endif %}
</section>

{% if site.recommend-tags and site.tags.size>0 %}
<section class="tags-card">
{% for tag in site.tags %}
{% if forloop.index > site.recommend-condition-size %}
{% break %}
{% endif %}
<a href="{{ "tags.html#" | append: tag[0] | relative_url }}" class="tag">{{ tag[0]}}</a>
{% endfor %}
</section>
{% endif %}
</div>

{% if site.search %}
<div class="search-card">
<input id="search_input" type="text" placeholder="Search..." autocomplete="off">
<i class="iconfont icon-search"></i>
<div class="search_result"></div>
</div>
<d
{% endif %}

</aside>
Expand Down