-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathnews-content.html
68 lines (58 loc) · 2.02 KB
/
news-content.html
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
---
---
<!DOCTYPE html>
<html lang="{{ site.lang | default: "en-US" }}">
<head>
<!-- General meta -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" href="/favicon.png" type="image/x-icon">
<base target="_parent">
{% if page.indexing == false %}
<meta name="robots" content="noindex">
{% endif %}
{% if page.collectionpage %}
{% seo title=false %}
{% assign collectiondata = site.collections | where: "label", page.collectionpage | first %}
<title>{{ collectiondata.title }} - {{ site.title }}</title>
<meta property="og:title" content="{{ collectiondata.title }}">
<meta name="description" content="{{ collectiondata.description }}">
<meta property="og:description" content="{{ collectiondata.description }}">
{% else %}
{% seo %}
{% endif %}
<link rel="stylesheet" href="{{ "/assets/styles.css" | relative_url }}">
{% if site.avatarurl %}{% include site-favicons.html %}{% endif %}
</head>
<body style="margin-top:0px;" class="layout-{{ page.layout }}{% if page.title %} {{ page.title | slugify }}{% endif %}">
{% if paginator.posts %}
<section class="section typeset">
<ul class="list list--posts">
{% for page in paginator.posts %}
<li class="item item--post">
<article class="article article--post">
<h4><a target= "_blank" href="{{ site.baseurl }}{{ page.url }}">{{ page.title }}</a></h4>
{% include post-meta.html %}
{{ page.excerpt | markdownify | truncatewords: 60 }}
</article>
</li>
{% endfor %}
</ul>
{% include post-pagination.html %}
</section>
{% else %}
<section class="section typeset">
<ul class="list list--posts">
{% for page in site.posts %}
<li class="item item--post">
<article class="article article--post">
<h4><a href="{{ site.baseurl }}{{ page.url }}">{{ page.title }}</a></h4>
{% include post-meta.html %}
{{ page.excerpt | markdownify | truncatewords: 60 }}
</article>
</li>
{% endfor %}
</ul>
</section>
{% endif %}
</body>
</html>