yoyoyo 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/head.html +2 -3
- data/_includes/pagination.html +41 -0
- data/_includes/post-card.html +12 -0
- data/_layouts/default.html +4 -4
- data/_layouts/home.html +3 -2
- data/assets/js/app.js +115 -0
- data/assets/js/app.js.map +1 -0
- data/assets/ts/app.ts +2 -2
- metadata +6 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 49b65c2c4918163c595a5171b9f4d64a86d40253
|
4
|
+
data.tar.gz: c6f6fddaacd25f423e52452fae8b90e745d770f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a4cdf600fc0ec353d1fa9c746be8ef1505f74879f605cecff271c2670c168794457577d06cf58da79e138cf662d2b340c21d365f8c1ab783e07b4186f98087cd
|
7
|
+
data.tar.gz: 2fcdeed94cb6c06d321f23660ddbf251d323fcf1db112b3496aebf43d5aaf06d65b2b98ca894188278835065fb5e9168206bf9164a556eb34c787d5e322c9a98
|
data/_includes/head.html
CHANGED
@@ -1,9 +1,8 @@
|
|
1
1
|
<meta charset="utf-8" />
|
2
2
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
3
|
-
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
|
4
|
-
<title>{{ page.title }}</title>
|
5
|
-
<link rel="stylesheet" href="{{ site.baseurl }}/assets/css/styles.css" />
|
3
|
+
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no, user-scalable=no" />
|
6
4
|
{% feed_meta %}
|
5
|
+
<link rel="stylesheet" href="{{ site.baseurl }}/assets/css/styles.css" />
|
7
6
|
{% seo %}
|
8
7
|
<!-- Global site tag (gtag.js) - Google Analytics -->
|
9
8
|
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.ga.userid }}"></script>
|
@@ -0,0 +1,41 @@
|
|
1
|
+
{% if paginator.next_page %}
|
2
|
+
<div class="posts__pagination">
|
3
|
+
<span class="posts__next">Load More</span>
|
4
|
+
</div>
|
5
|
+
{% endif %}
|
6
|
+
|
7
|
+
{% if paginator.total_pages > 1 %}
|
8
|
+
|
9
|
+
<div class="pagination">
|
10
|
+
{% if paginator.previous_page %}
|
11
|
+
<a href="{{ paginator.previous_page_path | relative_url }}">
|
12
|
+
« Prev
|
13
|
+
</a>
|
14
|
+
{% else %}
|
15
|
+
<span>« Prev</span>
|
16
|
+
{% endif %}
|
17
|
+
|
18
|
+
{% for page in (1..paginator.total_pages) %}
|
19
|
+
{% if page == paginator.page %}
|
20
|
+
<em>{{ page }}</em>
|
21
|
+
{% elsif page == 1 %}
|
22
|
+
<a href="{{ paginator.previous_page_path | relative_url }}">
|
23
|
+
{{ page }}
|
24
|
+
</a>
|
25
|
+
{% else %}
|
26
|
+
<a href="{{ site.paginate_path | relative_url | replace: ':num', page }}">
|
27
|
+
{{ page }}
|
28
|
+
</a>
|
29
|
+
{% endif %}
|
30
|
+
{% endfor %}
|
31
|
+
|
32
|
+
{% if paginator.next_page %}
|
33
|
+
<a href="{{ paginator.next_page_path | relative_url }}">
|
34
|
+
Next »
|
35
|
+
</a>
|
36
|
+
{% else %}
|
37
|
+
<span>Next »</span>
|
38
|
+
{% endif %}
|
39
|
+
</div>
|
40
|
+
|
41
|
+
{% endif %}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<article class="posts__post" itemprop="blogPost" itemscope itemtype="http://schema.org/BlogPosting">
|
2
|
+
<a class="posts__link" href="{{ post.url | prepend: site.baseurl }}" itemprop="url">
|
3
|
+
{% if post.image %}
|
4
|
+
<figure class="posts__img">
|
5
|
+
<img src="{{ post.image }}" alt="{{ post.title }}" data-aos="fade-in" itemprop="image"/>
|
6
|
+
</figure>
|
7
|
+
{% endif %}
|
8
|
+
<div>
|
9
|
+
<h2 class="posts__text"><strong itemprop="name">{{ post.title }}</strong> — <span itemprop="description">{{ post.content | strip_html | truncatewords: 35, "" }}</span></h2>
|
10
|
+
</div>
|
11
|
+
</a>
|
12
|
+
</article>
|
data/_layouts/default.html
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
<!DOCTYPE html>
|
2
|
-
<html lang="
|
2
|
+
<html lang="{{site.lang}}">
|
3
3
|
<head>
|
4
4
|
{% include head.html %}
|
5
5
|
</head>
|
6
6
|
<body>
|
7
|
-
{% include navigation.html %}
|
8
|
-
{% include tags.html %}
|
7
|
+
<!-- {% include navigation.html %}
|
8
|
+
{% include tags.html %} -->
|
9
9
|
{{ content }}
|
10
|
-
{% include categories.html %}
|
10
|
+
<!-- {% include categories.html %} -->
|
11
11
|
<script src="{{ site.baseurl }}/assets/js/app.js"></script>
|
12
12
|
<script type="application/ld+json">
|
13
13
|
{
|
data/_layouts/home.html
CHANGED
data/assets/js/app.js
ADDED
@@ -0,0 +1,115 @@
|
|
1
|
+
/******/ (function(modules) { // webpackBootstrap
|
2
|
+
/******/ // The module cache
|
3
|
+
/******/ var installedModules = {};
|
4
|
+
/******/
|
5
|
+
/******/ // The require function
|
6
|
+
/******/ function __webpack_require__(moduleId) {
|
7
|
+
/******/
|
8
|
+
/******/ // Check if module is in cache
|
9
|
+
/******/ if(installedModules[moduleId]) {
|
10
|
+
/******/ return installedModules[moduleId].exports;
|
11
|
+
/******/ }
|
12
|
+
/******/ // Create a new module (and put it into the cache)
|
13
|
+
/******/ var module = installedModules[moduleId] = {
|
14
|
+
/******/ i: moduleId,
|
15
|
+
/******/ l: false,
|
16
|
+
/******/ exports: {}
|
17
|
+
/******/ };
|
18
|
+
/******/
|
19
|
+
/******/ // Execute the module function
|
20
|
+
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
21
|
+
/******/
|
22
|
+
/******/ // Flag the module as loaded
|
23
|
+
/******/ module.l = true;
|
24
|
+
/******/
|
25
|
+
/******/ // Return the exports of the module
|
26
|
+
/******/ return module.exports;
|
27
|
+
/******/ }
|
28
|
+
/******/
|
29
|
+
/******/
|
30
|
+
/******/ // expose the modules object (__webpack_modules__)
|
31
|
+
/******/ __webpack_require__.m = modules;
|
32
|
+
/******/
|
33
|
+
/******/ // expose the module cache
|
34
|
+
/******/ __webpack_require__.c = installedModules;
|
35
|
+
/******/
|
36
|
+
/******/ // define getter function for harmony exports
|
37
|
+
/******/ __webpack_require__.d = function(exports, name, getter) {
|
38
|
+
/******/ if(!__webpack_require__.o(exports, name)) {
|
39
|
+
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
40
|
+
/******/ }
|
41
|
+
/******/ };
|
42
|
+
/******/
|
43
|
+
/******/ // define __esModule on exports
|
44
|
+
/******/ __webpack_require__.r = function(exports) {
|
45
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
46
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
47
|
+
/******/ }
|
48
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
49
|
+
/******/ };
|
50
|
+
/******/
|
51
|
+
/******/ // create a fake namespace object
|
52
|
+
/******/ // mode & 1: value is a module id, require it
|
53
|
+
/******/ // mode & 2: merge all properties of value into the ns
|
54
|
+
/******/ // mode & 4: return value when already ns object
|
55
|
+
/******/ // mode & 8|1: behave like require
|
56
|
+
/******/ __webpack_require__.t = function(value, mode) {
|
57
|
+
/******/ if(mode & 1) value = __webpack_require__(value);
|
58
|
+
/******/ if(mode & 8) return value;
|
59
|
+
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
60
|
+
/******/ var ns = Object.create(null);
|
61
|
+
/******/ __webpack_require__.r(ns);
|
62
|
+
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
63
|
+
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
64
|
+
/******/ return ns;
|
65
|
+
/******/ };
|
66
|
+
/******/
|
67
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
68
|
+
/******/ __webpack_require__.n = function(module) {
|
69
|
+
/******/ var getter = module && module.__esModule ?
|
70
|
+
/******/ function getDefault() { return module['default']; } :
|
71
|
+
/******/ function getModuleExports() { return module; };
|
72
|
+
/******/ __webpack_require__.d(getter, 'a', getter);
|
73
|
+
/******/ return getter;
|
74
|
+
/******/ };
|
75
|
+
/******/
|
76
|
+
/******/ // Object.prototype.hasOwnProperty.call
|
77
|
+
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
78
|
+
/******/
|
79
|
+
/******/ // __webpack_public_path__
|
80
|
+
/******/ __webpack_require__.p = "";
|
81
|
+
/******/
|
82
|
+
/******/
|
83
|
+
/******/ // Load entry module and return exports
|
84
|
+
/******/ return __webpack_require__(__webpack_require__.s = "./assets/ts/app.ts");
|
85
|
+
/******/ })
|
86
|
+
/************************************************************************/
|
87
|
+
/******/ ({
|
88
|
+
|
89
|
+
/***/ "./assets/ts/app.ts":
|
90
|
+
/*!**************************!*\
|
91
|
+
!*** ./assets/ts/app.ts ***!
|
92
|
+
\**************************/
|
93
|
+
/*! no static exports found */
|
94
|
+
/***/ (function(module, exports) {
|
95
|
+
|
96
|
+
var Student = (function () {
|
97
|
+
function Student(firstName, middleInitial, lastName) {
|
98
|
+
this.firstName = firstName;
|
99
|
+
this.middleInitial = middleInitial;
|
100
|
+
this.lastName = lastName;
|
101
|
+
this.fullName = firstName + " " + middleInitial + " " + lastName;
|
102
|
+
}
|
103
|
+
return Student;
|
104
|
+
}());
|
105
|
+
function greeter(person) {
|
106
|
+
return "Hello, " + person.firstName + " " + person.lastName;
|
107
|
+
}
|
108
|
+
var user = new Student("xixihaha", "M.", "User");
|
109
|
+
document.body.append(greeter(user));
|
110
|
+
|
111
|
+
|
112
|
+
/***/ })
|
113
|
+
|
114
|
+
/******/ });
|
115
|
+
//# sourceMappingURL=app.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./assets/ts/app.ts"],"names":[],"mappings":";AAAA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,kDAA0C,gCAAgC;AAC1E;AACA;;AAEA;AACA;AACA;AACA,gEAAwD,kBAAkB;AAC1E;AACA,yDAAiD,cAAc;AAC/D;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAyC,iCAAiC;AAC1E,wHAAgH,mBAAmB,EAAE;AACrI;AACA;;AAEA;AACA;AACA;AACA,mCAA2B,0BAA0B,EAAE;AACvD,yCAAiC,eAAe;AAChD;AACA;AACA;;AAEA;AACA,8DAAsD,+DAA+D;;AAErH;AACA;;;AAGA;AACA;;;;;;;;;;;;AClFA;IAEE,iBACS,SAAiB,EACjB,aAAqB,EACrB,QAAgB;QAFhB,cAAS,GAAT,SAAS,CAAQ;QACjB,kBAAa,GAAb,aAAa,CAAQ;QACrB,aAAQ,GAAR,QAAQ,CAAQ;QAEvB,IAAI,CAAC,QAAQ,GAAG,SAAS,GAAG,GAAG,GAAG,aAAa,GAAG,GAAG,GAAG,QAAQ,CAAC;IACnE,CAAC;IACH,cAAC;AAAD,CAAC;AAOD,SAAS,OAAO,CAAC,MAAc;IAC7B,OAAO,SAAS,GAAG,MAAM,CAAC,SAAS,GAAG,GAAG,GAAG,MAAM,CAAC,QAAQ,CAAC;AAC9D,CAAC;AAED,IAAI,IAAI,GAAG,IAAI,OAAO,CAAC,UAAU,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;AAEjD,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC","file":"app.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"./assets/ts/app.ts\");\n","class Student {\n fullName: string;\n constructor(\n public firstName: string,\n public middleInitial: string,\n public lastName: string\n ) {\n this.fullName = firstName + \" \" + middleInitial + \" \" + lastName;\n }\n}\n\ninterface Person {\n firstName: string;\n lastName: string;\n}\n\nfunction greeter(person: Person) {\n return \"Hello, \" + person.firstName + \" \" + person.lastName;\n}\n\nlet user = new Student(\"xixihaha\", \"M.\", \"User\");\n\ndocument.body.append(greeter(user));\n"],"sourceRoot":""}
|
data/assets/ts/app.ts
CHANGED
@@ -18,6 +18,6 @@ function greeter(person: Person) {
|
|
18
18
|
return "Hello, " + person.firstName + " " + person.lastName;
|
19
19
|
}
|
20
20
|
|
21
|
-
let user = new Student("
|
21
|
+
let user = new Student("xixihaha", "M.", "User");
|
22
22
|
|
23
|
-
document.body.
|
23
|
+
document.body.append(greeter(user));
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yoyoyo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hertz Zhang
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-02-
|
11
|
+
date: 2019-02-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -92,6 +92,8 @@ files:
|
|
92
92
|
- _includes/categories.html
|
93
93
|
- _includes/head.html
|
94
94
|
- _includes/navigation.html
|
95
|
+
- _includes/pagination.html
|
96
|
+
- _includes/post-card.html
|
95
97
|
- _includes/tags.html
|
96
98
|
- _layouts/about.html
|
97
99
|
- _layouts/author.html
|
@@ -188,6 +190,8 @@ files:
|
|
188
190
|
- _sass/utilities/_visibility.scss
|
189
191
|
- assets/css/styles.scss
|
190
192
|
- assets/images/wxmp.png
|
193
|
+
- assets/js/app.js
|
194
|
+
- assets/js/app.js.map
|
191
195
|
- assets/ts/app.ts
|
192
196
|
homepage: https://github.com/hertzZhang/yoyoyo
|
193
197
|
licenses:
|