|
87 | 87 | <div id="post-list" class="flex-grow-1 px-xl-1"> |
88 | 88 | {% for post in all_posts limit: site.paginate %} |
89 | 89 | <article class="card-wrapper card"> |
90 | | - <a href="{{ post.url | relative_url }}" class="post-preview row g-0" style="text-align: left !important; direction: ltr !important; flex-direction: row !important;"> |
| 90 | + <a href="{{ post.url | relative_url }}" class="post-preview row g-0"> |
91 | 91 | <div class="col-md-12"> |
92 | | - <div class="card-body d-flex flex-column" style="text-align: left !important; direction: ltr !important;"> |
93 | | - <h1 class="card-title my-2 mt-md-0 text-start" style="text-align: left !important; direction: ltr !important;"> |
| 92 | + <div class="card-body d-flex flex-column"> |
| 93 | + <h1 class="card-title my-2 mt-md-0"> |
94 | 94 | {% if post.collection == 'posts-es' %} |
95 | 95 | 🇪🇸 {{ post.title }} |
96 | 96 | {% unless page.url contains '/es/' %} |
97 | | - <small class="text-muted d-block mt-1 text-start" style="text-align: left !important; direction: ltr !important;"> |
98 | | - <i class="fas fa-language me-1"></i> |
99 | | - Only available in Spanish - |
100 | | - <a href="https://translate.google.com/translate?sl=es&tl=en&u={{ site.url }}{{ post.url }}" |
101 | | - target="_blank" rel="noopener" class="text-decoration-none"> |
102 | | - Translate with Google Translate |
103 | | - </a> |
| 97 | + <small class="language-notice-simple"> |
| 98 | + <i class="fas fa-language me-1"></i>Only available in Spanish |
104 | 99 | </small> |
105 | 100 | {% endunless %} |
106 | 101 | {% else %} |
107 | 102 | 🇬🇧 {{ post.title }} |
108 | 103 | {% if page.url contains '/es/' %} |
109 | | - <small class="text-muted d-block mt-1 text-start" style="text-align: left !important; direction: ltr !important;"> |
110 | | - <i class="fas fa-language me-1"></i> |
111 | | - Solo disponible en inglés - |
112 | | - <a href="https://translate.google.com/translate?sl=en&tl=es&u={{ site.url }}{{ post.url }}" |
113 | | - target="_blank" rel="noopener" class="text-decoration-none"> |
114 | | - Traducir con Google Translate |
115 | | - </a> |
| 104 | + <small class="language-notice-simple"> |
| 105 | + <i class="fas fa-language me-1"></i>Solo disponible en inglés |
116 | 106 | </small> |
117 | 107 | {% endif %} |
118 | 108 | {% endif %} |
119 | 109 | </h1> |
120 | 110 | <div class="card-text content mt-0 mb-3"> |
121 | | - <p>{{ post.excerpt | strip_html | truncate: 200 | escape }}</p> |
| 111 | + {% comment %} Simple approach: show excerpt if available, otherwise show fallback {% endcomment %} |
| 112 | + {% if post.excerpt and post.excerpt != blank and post.excerpt.size > 10 %} |
| 113 | + <p>{{ post.excerpt | strip_html | truncate: 200 | escape }}</p> |
| 114 | + {% else %} |
| 115 | + <p class="text-muted"> |
| 116 | + <i class="fas fa-file-text me-1"></i> |
| 117 | + {% if page.url contains '/es/' %} |
| 118 | + Haz clic para leer el artículo completo |
| 119 | + {% else %} |
| 120 | + Click to read the full article |
| 121 | + {% endif %} |
| 122 | + </p> |
| 123 | + {% endif %} |
122 | 124 | </div> |
123 | 125 | <div class="post-meta flex-grow-1 d-flex align-items-end"> |
124 | 126 | <div class="me-auto"> |
@@ -156,5 +158,22 @@ <h1 class="card-title"> |
156 | 158 | </div> |
157 | 159 | </div> |
158 | 160 | {% endif %} |
| 161 | + |
| 162 | +<!-- See All Posts Link --> |
| 163 | +{% if all_posts.size > site.paginate %} |
| 164 | +<div class="text-center mt-4 mb-5"> |
| 165 | + <a href="{% if page.url contains '/es/' %}/es/archives/{% else %}/archives/{% endif %}" class="btn btn-outline-primary"> |
| 166 | + <i class="fas fa-list me-2"></i> |
| 167 | + {% if page.url contains '/es/' %} |
| 168 | + Ver todas las entradas |
| 169 | + {% else %} |
| 170 | + See all posts |
| 171 | + {% endif %} |
| 172 | + </a> |
| 173 | +</div> |
| 174 | +{% endif %} |
159 | 175 | </div> |
160 | 176 | <!-- End Posts Section --> |
| 177 | + |
| 178 | +<!-- Company Blog Section --> |
| 179 | +{% include company-blog-section.html %} |
0 commit comments