Skip to content

Commit f536e4b

Browse files
author
Claudio Cortese
committed
Add post.css file only on post layout
1 parent 0dd6cc5 commit f536e4b

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

_includes/head.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@
88

99
<!-- Custom CSS & Bootstrap Core CSS - Uses Bootswatch Flatly Theme: http://bootswatch.com/flatly/ -->
1010
<link rel="stylesheet" href="{{ "/style.css" | prepend: site.baseurl }}">
11+
12+
<!-- Controlla il layout e aggiungi il CSS solo per i post -->
13+
{% if page.layout == "post" %}
14+
<link rel="stylesheet" href="{{ "/post.css" | prepend: site.baseurl }}">
15+
{% endif %}
16+
1117
<link
1218
rel="stylesheet"
1319
href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css"

_layouts/style.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
{% include css/bootstrap.min.css %}
22
{% include css/agency.css %}
3-
{% include css/post.css %}
43
{{ content }}

0 commit comments

Comments
 (0)