Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
letsoon committed Sep 10, 2021
1 parent d1346cc commit 2f07912
Show file tree
Hide file tree
Showing 7 changed files with 41 additions and 6 deletions.
8 changes: 7 additions & 1 deletion _config.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
title: letsoon
url: letsoon.github.io

friends:
-
title: 素锦
href: https://www.isujin.com

sass:
style: compressed
sass_dir: _sass

plugins:
- jekyll-coffeescript
- jekyll-sass-converter
- kramdown-syntax-coderay


8 changes: 4 additions & 4 deletions _layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@
{% assign have_year = false %}

{% assign year_item = year | split: ',' %}
{% assign year_arr = init_year | concat: year_item %}

{% for post_year in init_year %}
{% if post_year == year %}
{{ have_year = true }}
{% assign have_year = true %}
{% endif %}
{% endfor %}

{% if have_year or init_year.size == 0 %}
{% if have_year == false or init_year.size == 0 %}
<li class="year">{{ year }}</li>
{% endif %}

{{ init_year = year_arr }}
{% assign init_year = init_year | uniq | concat: year_item %}


<li class="post">
<a href="{{ post.url }}">
Expand Down
8 changes: 8 additions & 0 deletions _layouts/link.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{% include header.html %}
<div class="box link">
{{friends | join: ','}}
{% for link in site.friends %}
<a href="{{link.href}}" class="link-item" target="_blank">{{link.title}}</a>
{% endfor %}
</div>
{% include footer.html %}
6 changes: 6 additions & 0 deletions _posts/2021-09-10-test2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
layout: post
title: test2
---

[123](/assets/image/1.jpg)
14 changes: 13 additions & 1 deletion assets/css/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,23 @@ article{
}
}

.about{
.about, .link{
margin-top: 50px;
padding: 20px;
}

.link .link-item{
display: inline-block;
font-size: 14px;
min-width: 100px;
text-align: center;
padding: 10px 0;
background-color: #eee;
color: #666;
letter-spacing: 1px;
border-radius: 3px;
}

.tag-list{
padding: 20px;
margin-top: 50px;
Expand Down
Binary file added assets/image/1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions link.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
layout: link
---

0 comments on commit 2f07912

Please sign in to comment.