OSDN Git Service

Regular updates
[twpd/master.git] / _layouts / 2017 / home.html
1 <!doctype html>
2 <html class='NoJs' lang='en'><head>
3
4 {% assign featured_pages = site.pages
5   | where_exp: "page", "page.tags contains 'Featured'"
6 %}
7 {% assign recent_pages = site.pages
8   | where_exp: "page", "page.updated"
9   | sort: "updated", "first"
10 %}
11 {% include 2017/head.html critical='home' %}
12
13 </head><body class='UseCompactHeader HighlightPubFirstLine'>
14
15 {% include 2017/top-nav.html page=page is_home=true noedit=true noback=true %}
16
17 <div class='body-area -slim'>
18   <div class='site-header' role='banner'>
19     <h1>
20       {{ site.data.content.home.title }}
21     </h1>
22     <p>
23       {{ site.data.content.home.tagline }}
24     </p>
25
26     {% include 2017/search-form.html live=true %}
27
28     {% if site.data.carbon.enabled %}
29       <div class='pubbox'>
30         {% include 2017/headline-pub.html %}
31       </div>
32     {% endif %}
33   </div>
34
35   <div class='pages-list' role='main'>
36     {% for page in featured_pages %}
37       {% include 2017/pages-list-item.html page=page class='item top-sheet' %}
38     {% endfor %}
39
40     <h2 class='category item' data-js-searchable-header>
41       <span>Recently updated</span>
42     </h2>
43
44     {% for page in recent_pages reversed %}
45       {% if forloop.index <= 18 %}
46         {% include 2017/pages-list-item.html page=page class='article item' %}
47       {% endif %}
48     {% endfor %}
49
50
51     {% for category in site.data.categories.names %}
52       <h2 class='category item' id='{{ category | downcase | replace: " ", "-" }}' data-js-searchable-header>
53         <span>{{ category }}</span>
54       </h2>
55
56       {% for page in site.pages %}
57         {% if page.category == category %}
58           {% if page.title %}
59             {% include 2017/pages-list-item.html page=page class='article item' %}
60           {% endif %}
61         {% endif %}
62       {% endfor %}
63     {% endfor %}
64
65     <div class='message item missing-message'>
66       <h3>See something missing?</h3>
67       <p>
68         <a class='push-button' href='{{ site.github.repository_url }}/issues/907'>Request cheatsheet</a>
69       </p>
70     </div>
71   </div>
72 </div>
73
74 {% include 2017/announcements-list.html %}
75
76 {% include 2017/foot.html %}
77 </body>
78 </html>