-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrecent.html
More file actions
executable file
·45 lines (44 loc) · 1.43 KB
/
recent.html
File metadata and controls
executable file
·45 lines (44 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
---
layout: home
adsense: false
---
{% raw %}
<div id="app">
<H3>최근 변경된 문서</H3>
<template>
<ul class="post-list">
<li v-for="doc in list">
<div>
<a class="post-link" v-bind="{ href: doc.url }">
<div class="post-meta">{{ doc.updated }} - {{ doc.title }}</div>
<div class="post-excerpt">{{ doc.summary }}</div>
<ul class="tag-list" v-if="doc.tag">
<li class="post-tag" v-for="tagName in doc.tag">
<a v-bind="{ href: '/tag/#' + tagName }">#{{tagName}}</a>
</li>
</ul>
</a>
</div>
</li>
</ul>
</template>
</div>
{% endraw %}
<script src="/js/vue.js"></script>
<script>
{% assign documents = site.wiki | sort: 'updated' | reverse %}
var app = new Vue({
el: '#app',
data: {
list: [ {% for doc in documents %} {% if doc.public != false and doc.title != 'wiki' %}
{
title: "{{ doc.title }}",
url: "{{ doc.url }}",
updated: "{{ doc.updated | date: "%Y.%m.%d" }}",
tag: [{% for tag in doc.tags %}"{{ tag }}"{% unless forloop.last %},{% endunless %}{% endfor %}],
summary: "{{ doc.summary }}"
}{% unless forloop.last %},{% endunless %}{% endif %}{% endfor %}
]
}
})
</script>