|
@@ -1,47 +1,51 @@
|
|
|
<section class="index-new">
|
|
|
- <div class="container px-0">
|
|
|
+ <div class="container">
|
|
|
<!-- 标题 -->
|
|
|
- <h1 class="display-5 fw-bold text-center mb-5">What's New At Mietubl</h1>
|
|
|
-
|
|
|
- <div class="row gx-0">
|
|
|
+ <h2 class="text-center">Notícias</h2>
|
|
|
+ <hr class="w-25 mx-auto mb-5">
|
|
|
+ <div class="row index-new-wrapper">
|
|
|
<!-- 左侧活动卡片 -->
|
|
|
{% for item in pages %}
|
|
|
{% if forloop.index == 1 %}
|
|
|
- <div class="col-12 col-md-6">
|
|
|
- <div class="event-card bg-white h-100 main-new">
|
|
|
+ <div class="div-card">
|
|
|
+ <a href="/pages/{% if item.slug %}{{ item.slug }}{% else %}{{ item.id }}{% endif %}" target="_blank">
|
|
|
+ <div class="event-card heading-new">
|
|
|
{% if item.cover_image %}
|
|
|
- <img src="{% if item.cover_image contains 'http' %}{{ item.cover_image }}{% else %}{{ site.image_base_url }}{{ item.cover_image | append: '?x-oss-process=image/resize,m_fill,w_720,h_500' }}{% endif %}" alt="{{ item.title | strip_html }}">
|
|
|
+ <img src="{% if item.cover_image contains 'http' %}{{ item.cover_image }}{% else %}{{ site.image_base_url }}{{ item.cover_image}}{% endif %}" alt="{{ item.title | strip_html }}">
|
|
|
{% else %}
|
|
|
- <img src="{{ site.asset_base_url }}static/tpl/screen_protector_solutions/image/product_default.jpg?x-oss-process=image/resize,m_fill,w_720,h_500" alt="{{ item.title | strip_html }}" class="img-fluid w-100 h-auto">
|
|
|
+ <img src="{{ site.asset_base_url }}static/tpl/screen_protector_solutions/image/product_default.jpg" alt="{{ item.title | strip_html }}" class="img-fluid">
|
|
|
{% endif %}
|
|
|
<div class="main-new-text">
|
|
|
<p class="date-text mb-3">{{ item.post_date | date: 'M %d.%Y' }}</p>
|
|
|
<p class="fw-bold">{{ item.title | strip_html }}</p>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ </a>
|
|
|
</div>
|
|
|
{% endif %}
|
|
|
{% endfor %}
|
|
|
|
|
|
<!-- 右侧新闻列表 -->
|
|
|
- <div class="col-12 col-md-6">
|
|
|
+ <div class="div-card">
|
|
|
<!-- 新闻条目 1 -->
|
|
|
{% for item in pages %}
|
|
|
{% if forloop.index > 1 %}
|
|
|
- <div class="news-card bg-white list-new {% if forloop.index < 4 %}list-new-botom{% endif %}">
|
|
|
- <div class="row align-items-center">
|
|
|
- <div class="col-12 col-md-4">
|
|
|
+ <div class="news-card list-new">
|
|
|
+ <div class="news-card-pic">
|
|
|
+ <a href="/pages/{% if item.slug %}{{ item.slug }}{% else %}{{ item.id }}{% endif %}" target="_blank">
|
|
|
{% if item.cover_image %}
|
|
|
- <img src="{% if item.cover_image contains 'http' %}{{ item.cover_image }}{% else %}{{ site.image_base_url }}{{ item.cover_image | append: '?x-oss-process=image/resize,m_fill,w_400,h_266' }}{% endif %}" class="img-fluid rounded-top" style="min-height:120px" alt="{{ item.title | strip_html }}">
|
|
|
+ <img src="{% if item.cover_image contains 'http' %}{{ item.cover_image }}{% else %}{{ site.image_base_url }}{{ item.cover_image}}{% endif %}" class="img-fluid" alt="{{ item.title | strip_html }}">
|
|
|
{% else %}
|
|
|
- <img src="{{ site.asset_base_url }}static/tpl/screen_protector_solutions/image/product_default.jpg" alt="{{ item.title | strip_html }}" class="img-fluid rounded">
|
|
|
+ <img src="{{ site.asset_base_url }}static/tpl/screen_protector_solutions/image/product_default.jpg" alt="{{ item.title | strip_html }}" class="img-fluid">
|
|
|
{% endif %}
|
|
|
+ </a>
|
|
|
</div>
|
|
|
- <div class="col-12 col-md-8">
|
|
|
- <p class="date-text">{{ item.post_date | date: 'M %d.%Y' }}</p>
|
|
|
- <div class="news-title">{{ item.title | strip_html }}</div>
|
|
|
+ <div class="news-card-text">
|
|
|
+ <a href="/pages/{% if item.slug %}{{ item.slug }}{% else %}{{ item.id }}{% endif %}" target="_blank">
|
|
|
+ <div class="date-text">{{ item.post_date | date: 'M %d.%Y' }}</div>
|
|
|
+ <h3 class="news-title">{{ item.title | strip_html }}</h3>
|
|
|
+ </a>
|
|
|
</div>
|
|
|
- </div>
|
|
|
</div>
|
|
|
{% endif %}
|
|
|
{% endfor %}
|