Skip to content

Commit 5c86b13

Browse files
committed
Adjust layout order and show teasers
1 parent c0a0839 commit 5c86b13

File tree

9 files changed

+38
-24
lines changed

9 files changed

+38
-24
lines changed

_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ facebook:
8686
username :
8787
app_id :
8888
publisher :
89-
og_image : # Open Graph/Twitter default site image
89+
og_image : /assets/images/data-science.png
9090
# For specifying social profiles
9191
# - https://developers.google.com/structured-data/customize/social-profiles
9292
social:

_includes/archive-single.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111
{% endif %}
1212

1313
<div class="{{ include.type | default: 'list' }}__item">
14-
<article class="archive__item" itemscope itemtype="https://schema.org/CreativeWork">
15-
{% if include.type == "grid" and teaser %}
16-
<div class="archive__item-teaser">
17-
<a href="{{ post.url | relative_url }}"><img src="{{ teaser | relative_url }}" alt="{{ post.title }}"></a>
18-
</div>
19-
{% endif %}
14+
<article class="archive__item card" itemscope itemtype="https://schema.org/CreativeWork">
15+
{% if teaser %}
16+
<div class="archive__item-teaser">
17+
<a href="{{ post.url | relative_url }}"><img src="{{ teaser | relative_url }}" alt="{{ post.title }}"></a>
18+
</div>
19+
{% endif %}
2020
<h2 class="archive__item-title no_toc" itemprop="headline">
2121
{% if post.link %}
2222
<a href="{{ post.link }}">{{ title }}</a> <a href="{{ post.url | relative_url }}" rel="permalink"><i class="fas fa-link" aria-hidden="true" title="permalink"></i><span class="sr-only">Permalink</span></a>

_includes/head.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<!-- Google Fonts -->
2121
<link rel="preconnect" href="https://fonts.googleapis.com">
2222
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
23-
<link href="https://fonts.googleapis.com/css2?family=Lora:wght@400;700&family=Roboto:wght@400;700&display=swap" rel="stylesheet">
23+
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;700&family=Nunito+Sans:wght@400;700&display=swap" rel="stylesheet">
2424

2525
{% if site.head_scripts %}
2626
{% for script in site.head_scripts %}

_layouts/single.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,4 +108,4 @@ <h2 class="page__related-title">{{ site.data.ui-text[site.locale].related_label
108108
{% if jekyll.environment == 'production' and site.comments.provider and page.comments %}
109109
{% include comments.html %}
110110
{% endif %}
111-
</div>
111+
</div>

_sass/minimal-mistakes/_variables.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ $calisto: "Calisto MT", serif !default;
3232
$garamond: Garamond, serif !default;
3333

3434
// Setting the fonts
35-
$global-font-family: "Roboto", Helvetica, Arial, sans-serif;
36-
$header-font-family: "Lora", "Times New Roman", serif;
35+
$global-font-family: 'Inter', system-ui, sans-serif;
36+
$header-font-family: 'Nunito Sans', system-ui, sans-serif;
3737
$caption-font-family: "Cardo, serif";
3838

3939
/* type scale */

_sass/minimal-mistakes/skins/_air.scss

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
========================================================================== */
44

55
/* Colors */
6-
$background-color: #eeeeee !default;
7-
$text-color: #222831 !default;
8-
$muted-text-color: #393e46 !default;
9-
$primary-color: #0092ca !default;
10-
$border-color: mix(#fff, #393e46, 75%) !default;
6+
$background-color: #f7f9fa !default;
7+
$text-color: #2a2a2a !default;
8+
$muted-text-color: #6c757d !default;
9+
$primary-color: #2a4849 !default;
10+
$border-color: mix(#fff, $text-color, 85%) !default;
1111
$footer-background-color: $primary-color !default;
12-
$link-color: #393e46 !default;
12+
$link-color: $primary-color !default;
1313
$masthead-link-color: $text-color !default;
1414
$masthead-link-color-hover: $text-color !default;
1515
$navicon-link-color-hover: mix(#fff, $text-color, 80%) !default;

assets/css/main.scss

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,3 +134,16 @@ a:hover {
134134
max-height: 40vh;
135135
object-fit: cover;
136136
}
137+
138+
/* Card styles for archive items */
139+
.archive__item.card {
140+
background: $background-color;
141+
border-radius: $border-radius;
142+
padding: 1em;
143+
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
144+
transition: transform 0.2s, box-shadow 0.2s;
145+
}
146+
.archive__item.card:hover {
147+
transform: translateY(-4px);
148+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
149+
}

robots.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
User-agent: *
22
Disallow:
33

4-
# Sitemap location
5-
Sitemap: https://diogoribeiro7.github.io/sitemap.xml
4+
# Sitemap
5+
Sitemap: https://diogoribeiro7.github.io/sitemap.xml

tests/test_fix_date.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
import os
22
import sys
33
import tempfile
4-
import frontmatter
5-
import pytest
6-
74

8-
# Add the project root to sys.path
9-
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
5+
# Add the project root to sys.path so local modules can be imported when
6+
# running the tests via the `pytest` entry point (which doesn't prepend the
7+
# working directory to `sys.path`).
8+
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
109

10+
import frontmatter
11+
import pytest
1112
import fix_date
1213

1314

0 commit comments

Comments
 (0)