Skip to content

Commit 3167c6d

Browse files
committed
Try
Signed-off-by: mgoin <[email protected]>
1 parent f5bdc55 commit 3167c6d

File tree

5 files changed

+546
-503
lines changed

5 files changed

+546
-503
lines changed

_includes/custom-head.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
<link rel="stylesheet" href="{{ '/assets/css/custom.css' | relative_url }}">
2+
13
{% if page.math %}
24
<script>
35
MathJax = {
@@ -9,4 +11,4 @@
911
</script>
1012
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js">
1113
</script>
12-
{% endif %}
14+
{% endif %}

_layouts/home.html

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,26 @@
33
---
44

55
<div class="home">
6-
<div class="home-header">
6+
<header class="home-header">
77
<h1 class="home-title">{{ site.title | escape }}</h1>
88
<p class="home-description">{{ site.description | escape }}</p>
9-
</div>
9+
</header>
1010

1111
{%- if site.posts.size > 0 -%}
1212
<div class="post-grid">
1313
{%- for post in site.posts -%}
1414
<article class="post-card">
1515
<a href="{{ post.url | relative_url }}" class="post-card-link">
16-
{%- if post.image -%}
17-
<div class="post-card-image">
18-
<img src="{{ post.image | relative_url }}" alt="{{ post.title | escape }}" loading="lazy">
19-
</div>
20-
{%- else -%}
21-
<div class="post-card-image post-card-image-placeholder">
16+
<div class="post-card-image{% unless post.image %} post-card-image-placeholder{% endunless %}">
17+
{%- if post.image -%}
18+
<img src="{{ post.image | relative_url }}" alt="" loading="lazy">
19+
{%- else -%}
2220
<svg viewBox="0 0 100 80" xmlns="http://www.w3.org/2000/svg">
23-
<polygon points="15,70 35,20 50,45" fill="#E5A733" opacity="0.9"/>
24-
<polygon points="50,45 65,10 85,70" fill="#6FA8DC" opacity="0.9"/>
21+
<polygon points="15,70 35,15 50,50" fill="#E5A733"/>
22+
<polygon points="50,50 65,8 85,70" fill="#6FA8DC"/>
2523
</svg>
24+
{%- endif -%}
2625
</div>
27-
{%- endif -%}
2826
<div class="post-card-content">
2927
<h2 class="post-card-title">{{ post.title | escape }}</h2>
3028
<div class="post-card-meta">
@@ -36,7 +34,7 @@ <h2 class="post-card-title">{{ post.title | escape }}</h2>
3634
</time>
3735
</div>
3836
{%- if post.excerpt -%}
39-
<p class="post-card-excerpt">{{ post.excerpt | strip_html | truncate: 120 }}</p>
37+
<p class="post-card-excerpt">{{ post.excerpt | strip_html | truncatewords: 25 }}</p>
4038
{%- endif -%}
4139
</div>
4240
</a>

_layouts/post.html

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
<article class="post h-entry" itemscope itemtype="http://schema.org/BlogPosting">
66
<header class="post-header">
7-
<div class="post-header-accent"></div>
87
<h1 class="post-title p-name" itemprop="name headline">{{ page.title | escape }}</h1>
98
<div class="post-meta">
109
{%- if page.author -%}
@@ -16,14 +15,6 @@ <h1 class="post-title p-name" itemprop="name headline">{{ page.title | escape }}
1615
<time class="dt-published" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
1716
{{ page.date | date: "%B %-d, %Y" }}
1817
</time>
19-
{%- if page.modified_date -%}
20-
<span class="post-meta-sep">&middot;</span>
21-
<span class="post-updated">
22-
Updated: <time class="dt-modified" datetime="{{ page.modified_date | date_to_xmlschema }}" itemprop="dateModified">
23-
{{ page.modified_date | date: "%B %-d, %Y" }}
24-
</time>
25-
</span>
26-
{%- endif -%}
2718
</div>
2819
</header>
2920

0 commit comments

Comments
 (0)