|
15 | 15 | {% assign author = site.data.authors[page.author] %}
|
16 | 16 |
|
17 | 17 | <header class="post-header">
|
18 |
| - <p class="size-14 color-orange-900 mb-2 weight-500"> |
19 |
| - {% capture category %}{{ page.category }}{% endcapture %} |
20 |
| - {% t news.filters.{{ category }} %} |
21 |
| - </p> |
22 | 18 | <h1 class="size-36 weight-700 color-gray-900">{{ page.title }}</h1>
|
23 | 19 | {% assign words = page.content | number_of_words %}
|
24 | 20 | {% if words < 360 %}
|
@@ -47,87 +43,13 @@ <h1 class="size-36 weight-700 color-gray-900">{{ page.title }}</h1>
|
47 | 43 | </div>
|
48 | 44 | <div class="container-fluid">
|
49 | 45 | <div class="container py-3">
|
50 |
| - |
51 |
| - |
52 | 46 | <div class="row no-gutters justify-content-center pb-4">
|
53 | 47 | <div class="col-lg-9">
|
54 | 48 | <article class="post-content pb-3">
|
55 | 49 | {{ content }}
|
56 | 50 | </article>
|
57 | 51 | </div>
|
58 | 52 | </div>
|
59 |
| - |
60 |
| - <hr> |
61 |
| - |
62 |
| - <div class="row no-gutters pt-4"> |
63 |
| - <h2 class="size-24 color-gray-900 pb-2">{% t news.related %}</h2> |
64 |
| - </div> |
65 |
| - |
66 |
| - <div class="row no-gutters pb-4"> |
67 |
| - <div class="row justify-content-start"> |
68 |
| - |
69 |
| - {% if page.url contains 'news' %} |
70 |
| - |
71 |
| - {% assign maxRelated = 3 %} |
72 |
| - {% assign minCommonTags = 1 %} |
73 |
| - {% assign maxRelatedCounter = 0 %} |
74 |
| - |
75 |
| - {% for news in site.news %} |
76 |
| - |
77 |
| - {% assign sameTagCount = 0 %} |
78 |
| - {% assign commonTags = '' %} |
79 |
| - |
80 |
| - {% for category in news.categories %} |
81 |
| - {% if news.url != page.url %} |
82 |
| - {% if page.categories contains category %} |
83 |
| - {% assign sameTagCount = sameTagCount | plus: 1 %} |
84 |
| - {% capture tagmarkup %} {% endcapture %} |
85 |
| - {% assign commonTags = commonTags | append: tagmarkup %} |
86 |
| - {% endif %} |
87 |
| - {% endif %} |
88 |
| - {% endfor %} |
89 |
| - |
90 |
| - {% if sameTagCount >= minCommonTags %} |
91 |
| - <div class="col-12 col-md-4 mb-3 d-flex"> |
92 |
| - <div class="highlight-card"> |
93 |
| - <a class="stretched-link" href="{{ news.url | replace: '.html', '' }}"></a> |
94 |
| - <img class="mb-3" src="{{ site.baseurl_root }}/assets/images/posts/{{ news.image }}" alt="{{ news.title }}" /> |
95 |
| - <h3 class="size-24 color-gray-900 weight-700">{{ news.title }}</h3> |
96 |
| - {% if news.excerpt %} |
97 |
| - {% assign excerpt = news.excerpt %} |
98 |
| - {% else %} |
99 |
| - {% assign excerpt = news.content %} |
100 |
| - {% endif %} |
101 |
| - <p class="size-14 color-gray-900 mb-3">{{ excerpt | strip_html | truncatewords: 15 }}</p> |
102 |
| - <div class="bottom"> |
103 |
| - <span class="size-12 color-gray-900 weight-700 mb-0"> |
104 |
| - {% capture category %}{{ news.category }}{% endcapture %} |
105 |
| - {% t news.filters.{{ category }} %} |
106 |
| - </span> |
107 |
| - </div> |
108 |
| - <div class="bottom right"> |
109 |
| - <span class="size-12 color-gray-900 weight-700 mb-0"> |
110 |
| - {% capture month %}{{ news.date | date: "%b" }}{% endcapture %} |
111 |
| - {% t month.{{ month }} %} {{ news.date | date: "%-d, %Y"}} |
112 |
| - </span> |
113 |
| - </div> |
114 |
| - </div> |
115 |
| - </div> |
116 |
| - {% assign maxRelatedCounter = maxRelatedCounter | plus: 1 %} |
117 |
| - {% if maxRelatedCounter >= maxRelated %} |
118 |
| - {% break %} |
119 |
| - {% endif %} |
120 |
| - {% endif %} |
121 |
| - |
122 |
| - {% endfor %} |
123 |
| - |
124 |
| - {% else %} |
125 |
| - |
126 |
| - {% endif %} |
127 |
| - |
128 |
| - </div> |
129 |
| - </div> |
130 |
| - |
131 | 53 | </div>
|
132 | 54 | </div>
|
133 | 55 | </div>
|
|
0 commit comments