-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: copy files from Ourairyu's source code
- Loading branch information
Showing
22 changed files
with
384 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
$(document).on "click", ".Nav-cell a", -> | ||
$el = $(@) | ||
cls = "is-active" | ||
|
||
$(".Navs .#{cls}, .Grids .#{cls}").removeClass cls | ||
|
||
$(".Grids [data-flag='#{$el.attr "data-flag"}']") | ||
.add $el | ||
.addClass cls | ||
|
||
return false | ||
|
||
$(document).ready -> | ||
$(".Navs [data-flag]:first").click() | ||
|
||
$(".Repo, .Site").each -> | ||
$(@).attr("target", "_blank") if @hostname isnt location.hostname | ||
|
||
$cnt = $('.Moments') | ||
|
||
$('.js-affix').each -> | ||
$(@) | ||
.on | ||
"affixed-top.bs.affix": -> | ||
$(@).css | ||
position: 'static' | ||
width: 'auto' | ||
"affixed.bs.affix": -> | ||
$(@).css | ||
position: "fixed" | ||
width: $(@).parent().width() | ||
.affix | ||
offset: | ||
top: $(@).offset().top | ||
bottom: -> | ||
return $(document).height() - ($cnt.offset().top + $cnt.outerHeight(true)) | ||
|
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
.Card { | ||
position: relative; | ||
overflow: hidden; | ||
min-height: 150px; | ||
background-color: #FFF; | ||
@include border-radius(6px); | ||
@include box-shadow(0 1px 2px 0 rgba(0, 0, 0, 0.22)); | ||
|
||
&-link, | ||
&-thumbnail { | ||
@include stretch; | ||
} | ||
|
||
&-link { | ||
z-index: 3; | ||
padding: 15px; | ||
text-decoration: none !important; | ||
font-size: 14px; | ||
line-height: 1.2; | ||
|
||
&, | ||
&:hover { | ||
color: #555; | ||
} | ||
} | ||
|
||
&-thumbnail { | ||
z-index: 2; | ||
background: { | ||
position: 50% 50%; | ||
repeat: no-repeat; | ||
size: cover; | ||
} | ||
opacity: .15; | ||
border-radius: 6px; | ||
|
||
img { | ||
display: none; | ||
} | ||
} | ||
|
||
&-name { | ||
margin: 0; | ||
font-size: 18px; | ||
color: #333; | ||
} | ||
|
||
&-description { | ||
margin: { | ||
top: 10px; | ||
bottom: 0; | ||
} | ||
line-height: 1.5; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
.LightBox { | ||
font-size: 14px; | ||
|
||
ul, | ||
li { | ||
@include display-flex; | ||
} | ||
|
||
ul { | ||
list-style-type: none; | ||
margin-bottom: 0; | ||
padding-left: 0; | ||
@include align-items(stretch); | ||
} | ||
|
||
li { | ||
@include flex-grow(1); | ||
} | ||
|
||
a, | ||
h3, | ||
p { | ||
position: relative; | ||
} | ||
|
||
a { | ||
display: block; | ||
width: 100%; | ||
text-decoration: none; | ||
color: rgba(255, 255, 255, .8); | ||
@include covered_background(none, #222); | ||
|
||
&:after { | ||
@include stretch; | ||
z-index: 1; | ||
content: $UN-space; | ||
background-color: rgba(0, 0, 0, .2); | ||
@include transition(background-color 0.2s ease); | ||
} | ||
|
||
&:hover:after { | ||
background-color: rgba(0, 0, 0, .5); | ||
} | ||
} | ||
|
||
h3, | ||
p { | ||
z-index: 2; | ||
} | ||
|
||
h3 { | ||
margin: 0 0 10px; | ||
font-size: 1.4em; | ||
line-height: 1.25; | ||
color: #fff; | ||
} | ||
|
||
p { | ||
margin-bottom: 0 !important; | ||
line-height: 1.5 !important; | ||
} | ||
|
||
@media all and (max-width: $screen-xs-max) { | ||
ul { | ||
@include flex-direction(column); | ||
} | ||
|
||
h3 { | ||
margin-bottom: 0; | ||
text-align: center; | ||
} | ||
|
||
p { | ||
display: none; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.u-bold { | ||
font-weight: bold !important; | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
<meta charset="UTF-8"> | ||
<!-- SEO --> | ||
{% include metadata/seo.html %} | ||
<!-- 页面渲染兼容性 --> | ||
{% include metadata/render.html %} | ||
<!-- 站点 icon --> | ||
<link rel="icon" href="{{ 'favicon.ico' | asset_path }}"> | ||
{% include metadata/feed.html %} | ||
{% include metadata/brand.html %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<meta name="theme-color" content="#0871ab"> | ||
<link rel="icon" href="{{ 'favicon.ico' | asset_path }}"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{% assign feed_config = site.site-modules.social.feed %} | ||
{% if feed_config %} | ||
<!-- 订阅 --> | ||
{% if feed_config.atom %}{% feed_meta %}{% endif %} | ||
{% if feed_config.rss %}<link type="application/rss+xml" rel="alternate" href="//{{ site.ourairyu.site.domain }}/rss.xml" title="{{ site.title }}">{% endif %} | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
<!-- 页面渲染兼容性 --> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="renderer" content="webkit"> | ||
<meta name="viewport" content="width=device-width,initial-scale=1.0"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
<!-- SEO --> | ||
{% if site.url %} | ||
{% assign seo_url = site.url | append: site.baseurl %} | ||
{% endif %} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{% assign admin = site.author %} | ||
{% assign author = page.author %} | ||
<!-- 爬虫抓取的文章中显示来源 --> | ||
<blockquote class="sr-only"> | ||
<p>本文首发于<a href="{{ admin.uri }}">{{ site.title }}</a>,作者是<a href="{{ author.uri | default: admin.uri }}" title="访问{{ author.name | default: admin.name }}的网站">{{ author.name | default: admin.name }}</a>。由于会时不时对文章进行补充、修正或润色,为了保证你所看到的是最新版本,<strong>请阅读<a href="{{ page.url | prepend: site.ourairyu.site.url }}" title="阅读《{{ page.title }}》原文">原文</a></strong>。</p> | ||
</blockquote> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<ul class="ArticleList"> | ||
{% for post in include.posts %} | ||
<li class="ArticleList-item"><time datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date: "%F" }}</time><i class="fa fa-pencil"></i><a href="{{ post.url }}">{{ post.title }}</a>{% if post.album %}<i class="fa fa-camera"></i>{% endif %}{% if post.tags contains 'vlog' %}<i class="fa fa-video-camera"></i>{% endif %}</li> | ||
{% endfor %} | ||
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{% if site.module.comment == true %} | ||
{% assign comment_config = site.site-modules.social.comment.disqus %} | ||
{% if jekyll.environment == "production" %} | ||
{% assign disqus_shortname = comment_config.shortname %} | ||
{% else %} | ||
{% assign disqus_shortname = "" %} | ||
{% endif %} | ||
<div id="disqus_thread"></div> | ||
{% if comment_config.proxy %} | ||
{% javascript disqusjs.min %} | ||
<script> | ||
var dsqjs = new DisqusJS({ | ||
shortname: '{{ disqus_shortname }}', | ||
siteName: '{{ site.ourairyu.site.name }}', | ||
identifier: '{{ page.url }}', | ||
url: 'http:https://' + location.host + '{{ page.url }}', | ||
title: '{{ page.title }}', | ||
api: '{{ comment_config.api.endpoint }}', | ||
apikey: '{{ comment_config.api.key }}', | ||
admin: '{{ comment_config.username }}', | ||
adminLabel: '鹳狸猿' | ||
}); | ||
</script> | ||
{% else %} | ||
<script> | ||
var disqus_config = function () { | ||
this.page.url = "http:https://" + location.host + "{{ page.url }}"; | ||
this.page.identifier = "{{ page.url }}"; | ||
this.page.title = "{{ page.title }}"; | ||
}; | ||
|
||
(function() { | ||
var d = document, s = d.createElement('script'); | ||
|
||
s.src = '//{{ disqus_shortname }}.disqus.com/embed.js'; | ||
|
||
s.setAttribute('data-timestamp', +new Date()); | ||
(d.head || d.body).appendChild(s); | ||
})(); | ||
</script> | ||
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="external ">comments powered by Disqus.</a></noscript> | ||
<script id="dsq-count-scr" src="//{{ disqus_shortname }}.disqus.com/count.js" async></script> | ||
{% endif %} | ||
{% endif %} |
Oops, something went wrong.