jekyll-polymer-magazine 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e312ce1bf0f122b4aecf9956499641ec8dc9d1dd
4
- data.tar.gz: 72f78677f4c4b3c12e2eb7381c647cfacdee4c8e
3
+ metadata.gz: 38c1db6cf4262fd658a2a6d01452073d13f59570
4
+ data.tar.gz: 7915fc6afcc8d8d4ae1c08e2d467addb469a02c0
5
5
  SHA512:
6
- metadata.gz: 4150b970b89ce1754b9996d202dae7dc3e77c6c1c0c44feb95d22b2a815b8056632ef339b614b00b0c06f41f0d96bb14fa61261f68ea516c0441fecd9c3689c7
7
- data.tar.gz: 3d496880d3c8ec0400ed34dc30f4e8f3748005fd12f36520d9d60dfb3682e034b59b3a8bd43c753cdca778c58f80c2465becb1b03cf268575a53ce1001c31030
6
+ metadata.gz: 27659651f908cdb131b813d511bc1a7d7f202d899769d352be2e44d2c08f4bbf0b649eee76fe4748fea01602cdf508be992fbaed9ddd3e6fb3127ee91866b487
7
+ data.tar.gz: d61d46188b95435e10763172996890f3dd5e7272880ba7f5c21dbb8e526eb1164a8590dc5302456770017ec0a3ce3c44798ac2cf475d8d21c59f2bd63ab0656b
@@ -1,24 +1,4 @@
1
1
  <section>
2
2
  <div id="disqus_thread"></div>
3
- <script>
4
- /**
5
- * RECOMMENDED CONFIGURATION VARIABLES: EDIT AND UNCOMMENT THE SECTION BELOW TO INSERT DYNAMIC VALUES FROM YOUR PLATFORM OR CMS.
6
- * LEARN WHY DEFINING THESE VARIABLES IS IMPORTANT: https://disqus.com/admin/universalcode/#configuration-variables
7
- */
8
- /*
9
- var disqus_config = function () {
10
- this.page.url = PAGE_URL; // Replace PAGE_URL with your page's canonical URL variable
11
- this.page.identifier = PAGE_IDENTIFIER; // Replace PAGE_IDENTIFIER with your page's unique identifier variable
12
- };
13
- */
14
- (function() { // DON'T EDIT BELOW THIS LINE
15
- var d = document, s = d.createElement('script');
16
3
 
17
- s.src = '//{{ site.disqus }}.disqus.com/embed.js';
18
-
19
- s.setAttribute('data-timestamp', +new Date());
20
- (d.head || d.body).appendChild(s);
21
- })();
22
- </script>
23
- <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
24
4
  </section>
@@ -18,7 +18,10 @@
18
18
  <link rel="import" href="{{ site.baseurl }}/assets/bower_components/paper-menu-button/paper-menu-button.html">
19
19
  <link rel="import" href="{{ site.baseurl }}/assets/bower_components/paper-item/paper-item.html">
20
20
  <link rel="import" href="{{ site.baseurl }}/assets/bower_components/paper-button/paper-button.html">
21
+ <link rel="import" href="{{ site.baseurl }}/assets/bower_components/paper-input/paper-input.html">
21
22
 
23
+ <link rel="import" href="{{ site.baseurl }}/assets/bower_components/iron-pages/iron-pages.html">
24
+ <link rel="import" href="{{ site.baseurl }}/assets/bower_components/iron-collapse/iron-collapse.html">
22
25
  <link rel="import" href="{{ site.baseurl }}/assets/bower_components/iron-icon/iron-icon.html">
23
26
  <link rel="import" href="{{ site.baseurl }}/assets/bower_components/iron-icons/iron-icons.html">
24
27
  <link rel="import" href="{{ site.baseurl }}/assets/bower_components/iron-icons/social-icons.html">
@@ -0,0 +1,9 @@
1
+ <paper-toolbar style='{% if page.color %}background: {{ page.color }};{% endif %}'>
2
+ <paper-icon-button icon="arrow-back" onclick="location.href='{{ site.baseurl }}/'"></paper-icon-button>
3
+ <div class="title">
4
+ {{ site.title }}
5
+ </div>
6
+ <paper-icon-button icon="archive" onclick="location.href='{{ site.baseurl }}/archive'"></paper-icon-button>
7
+ <paper-icon-button icon="label" onclick="location.href='{{ site.baseurl }}/tags'"></paper-icon-button>
8
+ <paper-icon-button icon="search" onclick="toggleSearch()"></paper-icon-button>
9
+ </paper-toolbar>
@@ -0,0 +1,8 @@
1
+ <paper-toolbar>
2
+ <div class="title">
3
+ {{ site.title }}
4
+ </div>
5
+ <paper-icon-button icon="archive" onclick="location.href='{{ site.baseurl }}/archive'"></paper-icon-button>
6
+ <paper-icon-button icon="label" onclick="location.href='{{ site.baseurl }}/tags'"></paper-icon-button>
7
+ <paper-icon-button icon="search" onclick="toggleSearch()"></paper-icon-button>
8
+ </paper-toolbar>
@@ -1,3 +1,25 @@
1
+ <script>
2
+ /**
3
+ * RECOMMENDED CONFIGURATION VARIABLES: EDIT AND UNCOMMENT THE SECTION BELOW TO INSERT DYNAMIC VALUES FROM YOUR PLATFORM OR CMS.
4
+ * LEARN WHY DEFINING THESE VARIABLES IS IMPORTANT: https://disqus.com/admin/universalcode/#configuration-variables
5
+ */
6
+ /*
7
+ var disqus_config = function () {
8
+ this.page.url = PAGE_URL; // Replace PAGE_URL with your page's canonical URL variable
9
+ this.page.identifier = PAGE_IDENTIFIER; // Replace PAGE_IDENTIFIER with your page's unique identifier variable
10
+ };
11
+ */
12
+ (function() { // DON'T EDIT BELOW THIS LINE
13
+ var d = document, s = d.createElement('script');
14
+
15
+ s.src = '//{{ site.disqus }}.disqus.com/embed.js';
16
+
17
+ s.setAttribute('data-timestamp', +new Date());
18
+ (d.head || d.body).appendChild(s);
19
+ })();
20
+ </script>
21
+ <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
22
+
1
23
  <script src="https://apis.google.com/js/platform.js" async defer></script>
2
24
  <div id="fb-root"></div>
3
25
  <script>(function(d, s, id) {
@@ -18,3 +40,13 @@
18
40
  ga('send', 'pageview');
19
41
 
20
42
  </script>
43
+ <script>
44
+ function toggleSearch(){
45
+ var pages = document.querySelector('iron-pages');
46
+ if(pages.selected==0){
47
+ pages.selected = 1;
48
+ }else{
49
+ pages.selected = 0;
50
+ }
51
+ }
52
+ </script>
@@ -0,0 +1,53 @@
1
+ <paper-header-panel>
2
+ <paper-toolbar style="background:white; color:black;">
3
+ <paper-icon-button icon="arrow-back" onclick="toggleSearch()"></paper-icon-button>
4
+ <paper-input no-label-float label="Type to search"
5
+ oninput="searchPosts()" style="width:100%;" id="searchinput">
6
+ </paper-input>
7
+ <paper-icon-button icon="close" onclick="clearSearchInput()"></paper-icon-button>
8
+ </paper-toolbar>
9
+ <div>
10
+ <iron-list id="searchresults">
11
+ </iron-list>
12
+ </div>
13
+ <script>
14
+ var posts;
15
+
16
+ function searchPosts(){
17
+ var searchkeyword = document.getElementById('searchinput').value;
18
+ results = new Array;
19
+ if(posts==undefined){
20
+ fetch('{{ site.baseurl }}/search.json')
21
+ .then(function(response) {
22
+ response.json().then((json)=>{
23
+ posts=json;
24
+ filterResults(searchkeyword);
25
+ });
26
+ })
27
+ }else{
28
+ filterResults(searchkeyword);
29
+ }
30
+ }
31
+ function filterResults(keyword){
32
+ var results = document.getElementById('searchresults');
33
+ results.innerHTML = "";
34
+ if(keyword==""||keyword==undefined){
35
+ return;
36
+ }
37
+ for(var i=0; i<posts.length; i++){
38
+ console.log(keyword);
39
+ console.log(typeof(keyword));
40
+ console.log(posts[i]);
41
+ if(posts[i].title.includes(keyword) ||
42
+ posts[i].tags.includes(keyword) ||
43
+ posts[i].url.includes(keyword) ||
44
+ posts[i].date.includes(keyword)){
45
+ results.innerHTML += `<paper-item onclick="location.href='${posts[i].url}'">${posts[i].date} | ${posts[i].title}</paper-item>`;
46
+ }
47
+ }
48
+ }
49
+ function clearSearchInput(){
50
+ document.getElementById('searchinput').value = "";
51
+ }
52
+ </script>
53
+ </paper-header-panel>
@@ -0,0 +1,44 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+ <body>
5
+ <iron-pages selected="0">
6
+ <paper-header-panel>
7
+ {% include header.html %}
8
+ <div>
9
+ <div align="center" class="container">
10
+ <section class="postview-content" align="start">
11
+ <h1>Archive</h1>
12
+ {% for post in site.posts %}
13
+
14
+ {% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %}
15
+ {% capture next_year %}{{ post.previous.date | date: "%Y" }}{% endcapture %}
16
+
17
+ {% if forloop.first %}
18
+
19
+ <h2 class="card-content" id="{{ this_year }}-ref">{{this_year}}</h2><br>
20
+ <!-- <ul> -->
21
+ {% endif %}
22
+
23
+ <p>{{ post.date | date: "%Y.%m.%d" }} | <a href="{{ site.baseurl }}/{{ post.url }}">{{ post.title }}</a>{% if post.author %} | {{ post.author }} {% endif %}</p>
24
+
25
+
26
+ {% if forloop.last %}
27
+ {% else %}
28
+ {% if this_year != next_year %}
29
+
30
+ <h2 class="card-content" id="{{ next_year }}-ref">{{next_year}}</h2>
31
+ {% endif %}
32
+ {% endif %}
33
+
34
+ {% endfor %}
35
+ </section>
36
+
37
+ </div>
38
+ {% include footer.html %}
39
+ </div>
40
+ </paper-header-panel>
41
+ {% include search.html %}
42
+ </iron-pages>
43
+ {% include javascripts.html %}
44
+ </body>
@@ -2,59 +2,56 @@
2
2
  layout: default
3
3
  ---
4
4
  <body>
5
- <paper-header-panel >
6
- <paper-toolbar>
7
- <div class="title">
8
- {{ site.title }}
9
- </div>
10
- <paper-icon-button icon="search"></paper-icon-button>
11
- </paper-toolbar>
12
- <div>
13
- <div class="grid grid-pad">
14
-
15
- {% for post in paginator.posts %}
16
- <div class="col-1-2">
17
-
18
- <paper-material class="content post-card" elevation="0"
19
- onmouseover="this.elevation='2'" onmouseout="this.elevation='0'"
20
- onclick="location.href='{{ site.baseurl }}/{{ post.url }}'"
21
- style="{% if post.image %}background: linear-gradient( rgba(0, 0, 0, 0.4),
22
- rgba(0, 0, 0, 0.4) ), url('{{ post.image }}')center / cover;{% endif %}">
23
- <paper-ripple></paper-ripple>
24
- <h2>{{ post.title }}</h2>
25
- <p>
26
- {{ post.date | date: "%Y.%m.%d" }}
27
- </p>
28
- <p>
29
- {{ post.content | strip_html | truncatewords:60 }}
30
- <section>
31
- {% for tag in post.tags %}
32
- <b>#{{ tag }}</b>
33
- {% endfor %}
34
- </section>
35
- </p>
36
- </paper-material>
5
+ <iron-pages selected="0">
6
+ <paper-header-panel>
7
+ {% include homeheader.html %}
8
+ <div>
9
+ <div class="grid grid-pad">
10
+ {% for post in paginator.posts %}
11
+ <div class="col-1-2">
12
+ <paper-material class="content post-card" elevation="0"
13
+ onmouseover="this.elevation='2'" onmouseout="this.elevation='0'"
14
+ onclick="location.href='{{ site.baseurl }}/{{ post.url }}'"
15
+ style="{% if post.image %}background: linear-gradient( rgba(0, 0, 0, 0.4),
16
+ rgba(0, 0, 0, 0.4) ), url('{{ post.image }}')center / cover;{% endif %}">
17
+ <paper-ripple></paper-ripple>
18
+ <h2>{{ post.title }}</h2>
19
+ <p>
20
+ {{ post.date | date: "%Y.%m.%d" }}
21
+ </p>
22
+ <p>
23
+ {{ post.content | strip_html | truncatewords:60 }}
24
+ <section>
25
+ {% for tag in post.tags %}
26
+ <b>#{{ tag }}</b>
27
+ {% endfor %}
28
+ </section>
29
+ </p>
30
+ </paper-material>
31
+ </div>
32
+ {% endfor %}
37
33
  </div>
38
- {% endfor %}
34
+ <table align="center" style="margin-bottom:64px; margin-top:32px;">
35
+ <tr>
36
+ <td style="padding-right:16px;">
37
+ <paper-button {% if paginator.next_page %} onclick="location.href='{{ site.baseurl }}/{{ paginator.next_page_path }}'"{% else %}{% endif %}>
38
+ <iron-icon icon="arrow-back"></iron-icon>
39
+ Older
40
+ </paper-button>
41
+ </td>
42
+ <td>{{ paginator.page }} / {{ paginator.total_pages }}</td>
43
+ <td style="padding-left:16px;">
44
+ <paper-button {% if paginator.previous_page %} onclick="location.href='{{ site.baseurl }}/{{ paginator.previous_page_path }}'"{% else %}{% endif %}>
45
+ Newer
46
+ <iron-icon icon="arrow-forward"></iron-icon>
47
+ </paper-button>
48
+ </td>
49
+ </tr>
50
+ </table>
51
+ {% include footer.html %}
39
52
  </div>
40
- <table align="center" style="margin-bottom:64px; margin-top:32px;">
41
- <tr>
42
- <td style="padding-right:16px;">
43
- <paper-button {% if paginator.next_page %} onclick="location.href='{{ site.baseurl }}/{{ paginator.next_page_path }}'"{% else %}{% endif %}>
44
- <iron-icon icon="arrow-back"></iron-icon>
45
- Older
46
- </paper-button>
47
- </td>
48
- <td>{{ paginator.page }} / {{ paginator.total_pages }}</td>
49
- <td style="padding-left:16px;">
50
- <paper-button {% if paginator.previous_page %} onclick="location.href='{{ site.baseurl }}/{{ paginator.previous_page_path }}'"{% else %}{% endif %}>
51
- Newer
52
- <iron-icon icon="arrow-forward"></iron-icon>
53
- </paper-button>
54
- </td>
55
- </tr>
56
- </table>
57
- {% include footer.html %}
58
- </div>
59
- </paper-header-panel>
53
+ </paper-header-panel>
54
+ {% include search.html %}
55
+ </iron-pages>
56
+ {% include javascripts.html %}
60
57
  </body>
@@ -2,92 +2,89 @@
2
2
  layout: default
3
3
  ---
4
4
  <body>
5
- <paper-header-panel>
6
- <paper-toolbar id="postview-toolbar" style='{% if page.color %}background: {{ page.color }};{% endif %}'>
7
- <paper-icon-button icon="arrow-back" onclick="location.href='{{ site.baseurl }}/'"></paper-icon-button>
8
- <div class="title">
9
- {{ site.title }}
10
- </div>
11
- <paper-icon-button icon="search"></paper-icon-button>
12
- </paper-toolbar>
13
- <div>
14
- <section class="postview-header" elevation="0" id="header"
15
- style="{% if page.image %}background: linear-gradient( rgba(0, 0, 0, 0.4),
16
- rgba(0, 0, 0, 0.4) ), url('{{ page.image }}')center / cover;{% endif %}"
17
- align="center">
18
- <div class="postview-titlebox" align="start">
19
- <h1>{{ page.title }}</h1>
20
- <p>
21
- {{ page.date | date: "%Y.%m.%d" }}
22
- </p>
23
- </div>
24
- </section>
25
- {% include sharebtn.html %}
26
- <div align="center">
27
- <section class="postview-content" align="start">
28
- {{ page.content }}
29
- <section>
30
- <hr class="hr-with-margin" />
31
- {% for tag in page.tags %}
32
- <b>#{{ tag }}</b>
33
- {% endfor %}
34
- <table class="social-btns">
35
- <tbody>
36
- <tr>
37
- <td>
38
- <!-- 구글플러스 +1 버튼 -->
39
- <g:plusone></g:plusone>
40
- </td>
41
- <td>
42
- <!-- Facebook 좋아요 버튼 -->
43
- <div class="fb-like" data-href="{{ site.baseurl }}/{{ page.url }}"
44
- data-layout="button_count" data-action="like" data-show-faces="true" data-share="true"></div>
45
- </td>
46
- </tr>
47
- </tbody>
48
- </table>
5
+ <iron-pages selected="0">
6
+ <paper-header-panel>
7
+ {% include header.html %}
8
+ <div>
9
+ <section class="postview-header" elevation="0"
10
+ style="{% if page.image %}background: linear-gradient( rgba(0, 0, 0, 0.4),
11
+ rgba(0, 0, 0, 0.4) ), url('{{ page.image }}')center / cover;{% endif %}"
12
+ align="center">
13
+ <div class="postview-titlebox" align="start">
14
+ <h1>{{ page.title }}</h1>
15
+ <p>
16
+ {{ page.date | date: "%Y.%m.%d" }}
17
+ </p>
18
+ </div>
19
+ </section>
20
+ {% include sharebtn.html %}
21
+ <div align="center">
22
+ <section class="postview-content" align="start">
23
+ {{ page.content }}
24
+ <section>
25
+ <hr class="hr-with-margin" />
26
+ {% for tag in page.tags %}
27
+ <b>#{{ tag }}</b>
28
+ {% endfor %}
29
+ <table class="social-btns">
30
+ <tbody>
31
+ <tr>
32
+ <td>
33
+ <!-- 구글플러스 +1 버튼 -->
34
+ <g:plusone></g:plusone>
35
+ </td>
36
+ <td>
37
+ <!-- Facebook 좋아요 버튼 -->
38
+ <div class="fb-like" data-href="{{ site.baseurl }}/{{ page.url }}"
39
+ data-layout="button_count" data-action="like" data-show-faces="true" data-share="true"></div>
40
+ </td>
41
+ </tr>
42
+ </tbody>
43
+ </table>
44
+ </section>
45
+ {% include disqus.html %}
49
46
  </section>
50
- {% include disqus.html %}
51
- </section>
52
47
 
53
- <!-- Show Previous and Next Post Link -->
54
- <div class="grid grid-pad">
55
- {% if page.previous.url %}
56
- <div class="col-1-2">
57
- <paper-material class="post-card-small" elevation="0"
58
- onmouseover="this.elevation='2'" onmouseout="this.elevation='0'"
59
- onclick="location.href='{{ site.baseurl}}/{{ page.previous.url }}'"
60
- style="{% if page.previous.image %}background: linear-gradient( rgba(0, 0, 0, 0.4),
61
- rgba(0, 0, 0, 0.4) ), url('{{ page.previous.image }}')center / cover;{% endif %}"
62
- align="start">
63
- <paper-ripple></paper-ripple>
64
- <h2>{{ page.previous.title }}</h2>
65
- <p>
66
- {{ page.previous.date | date: "%Y.%m.%d" }}
67
- </p>
68
- </paper-material>
69
- </div>
70
- {% else %}{% endif %}
71
- {% if page.next.url %}
72
- <div class="col-1-2">
73
- <paper-material class="post-card-small" elevation="0"
74
- onmouseover="this.elevation='2'" onmouseout="this.elevation='0'"
75
- onclick="location.href='{{ site.baseurl }}/{{ page.next.url }}'"
76
- style="{% if page.next.image %}background: linear-gradient( rgba(0, 0, 0, 0.4),
77
- rgba(0, 0, 0, 0.4) ), url('{{ page.next.image }}')center / cover;{% endif %}"
78
- align="start">
79
- <paper-ripple></paper-ripple>
80
- <h2>{{ page.next.title }}</h2>
81
- <p>
82
- {{ page.next.date | date: "%Y.%m.%d" }}
83
- </p>
84
- </paper-material>
85
- </div>
86
- {% else %}{% endif %}
48
+ <!-- Show Previous and Next Post Link -->
49
+ <div class="grid grid-pad">
50
+ {% if page.previous.url %}
51
+ <div class="col-1-2">
52
+ <paper-material class="post-card-small" elevation="0"
53
+ onmouseover="this.elevation='2'" onmouseout="this.elevation='0'"
54
+ onclick="location.href='{{ site.baseurl}}/{{ page.previous.url }}'"
55
+ style="{% if page.previous.image %}background: linear-gradient( rgba(0, 0, 0, 0.4),
56
+ rgba(0, 0, 0, 0.4) ), url('{{ page.previous.image }}')center / cover;{% endif %}"
57
+ align="start">
58
+ <paper-ripple></paper-ripple>
59
+ <h2>{{ page.previous.title }}</h2>
60
+ <p>
61
+ {{ page.previous.date | date: "%Y.%m.%d" }}
62
+ </p>
63
+ </paper-material>
64
+ </div>
65
+ {% else %}{% endif %}
66
+ {% if page.next.url %}
67
+ <div class="col-1-2">
68
+ <paper-material class="post-card-small" elevation="0"
69
+ onmouseover="this.elevation='2'" onmouseout="this.elevation='0'"
70
+ onclick="location.href='{{ site.baseurl }}/{{ page.next.url }}'"
71
+ style="{% if page.next.image %}background: linear-gradient( rgba(0, 0, 0, 0.4),
72
+ rgba(0, 0, 0, 0.4) ), url('{{ page.next.image }}')center / cover;{% endif %}"
73
+ align="start">
74
+ <paper-ripple></paper-ripple>
75
+ <h2>{{ page.next.title }}</h2>
76
+ <p>
77
+ {{ page.next.date | date: "%Y.%m.%d" }}
78
+ </p>
79
+ </paper-material>
80
+ </div>
81
+ {% else %}{% endif %}
82
+ </div>
87
83
  </div>
84
+ {% include footer.html %}
88
85
  </div>
89
- {% include footer.html %}
90
- </div>
91
- </paper-header-panel>
86
+ </paper-header-panel>
87
+ {% include search.html %}
88
+ </iron-pages>
92
89
  {% include javascripts.html %}
93
90
  </body>