File tree Expand file tree Collapse file tree 2 files changed +3
-15
lines changed
Expand file tree Collapse file tree 2 files changed +3
-15
lines changed Original file line number Diff line number Diff line change 1- {% comment %}
2- Get the last 5 posts from lastmod list.
3- {% endcomment %}
1+ <!-- Get the last 5 posts from lastmod list. -->
42
53{% assign MAX_SIZE = 5 %}
64
2624{% if update_list.size > 0 %}
2725 < div id ="access-lastmod " class ="post ">
2826 < div class ="panel-heading "> {{- site.data.locales[include.lang].panel.lastmod -}}</ div >
29- < ul class ="post-content ps-0 pb-1 ms-1 mt-2 ">
27+ < ul class ="post-content list-unstyled ps-0 pb-1 ms-1 mt-2 ">
3028 {% for item in update_list %}
3129 {% assign index = item | split: '::' | last | plus: 0 %}
3230 {% assign post = site.posts[index] %}
3331 {% assign url = post.url | relative_url %}
34- < li >
32+ < li class =" text-truncate lh-lg " >
3533 < a href ="{{ url }} "> {{ post.title }}</ a >
3634 </ li >
3735 {% endfor %}
Original file line number Diff line number Diff line change 255255}
256256
257257#access-lastmod {
258- li {
259- height : 1.8rem ;
260- overflow : hidden ;
261- text-overflow : ellipsis ;
262- display : -webkit-box ;
263- -webkit-line-clamp : 1 ;
264- -webkit-box-orient : vertical ;
265- list-style : none ;
266- }
267-
268258 a {
269259 & :hover {
270260 @extend %link-hover ;
You can’t perform that action at this time.
0 commit comments