Skip to content

Commit ccd6162

Browse files
lunacodesmr-c
authored andcommitted
Fix Invalid HTML on front pg #99
1 parent 05b86a6 commit ccd6162

File tree

3 files changed

+20
-13
lines changed

3 files changed

+20
-13
lines changed

content/_includes/home/feature-boxes.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<section class="features-grid">
22
{%- for feature in site.data.home.feature_boxes -%}
33
<div class="feature-item {{ feature.title | downcase | replace: " ", "-" }}">
4-
<a class="no-underline black-text feature-box-wrap-link" href="{{ feature.box_url }}"><h3 class="feature-title" id="{{ feature.title | downcase | replace: " ", "-" }}">{{ feature.title }}</h3></a>
4+
<a class="feature-title" href="{{ feature.box_url }}">{{ feature.title }}</a>
55
<a class="no-underline black-text feature-box-wrap-link" href="{{ feature.box_url }}"><img src="/assets/img/{{ feature.icon }}" class="feature-img" alt="{{ feature.icon-alt }}"></a>
66
<p class="feature-text">{{ feature.text | markdownify | remove: "<p>" | remove: "</p>" }}</p>
77
</div>

content/_layouts/default.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</ul>
1212

1313
<div class="site-wrapper {{ page.class }} page-{{ page.permalink | downcase | replace: "/", "" | replace: " ", "-" }}" id="siteTop">
14-
{%- include top_nav.html -%}
14+
{% include top_nav.html %}
1515

1616
{%- if page.class contains 'home' or page.title == 'Home' -%}
1717
{%- include header.html -%}

content/_sass/partials/home/_features.scss

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,6 @@
5252
}
5353
}
5454

55-
.feature-box-wrap-link {
56-
&:visited {
57-
color: $black;
58-
}
59-
60-
&:hover,
61-
&:active {
62-
color: $cwl-red;
63-
}
64-
}
65-
6655
.feature-item {
6756
align-items: center;
6857
box-shadow: 0 6px 15px $box-shadow--color;
@@ -76,6 +65,24 @@
7665
@include hide-anchor-symbols;
7766
}
7867

68+
.feature-title {
69+
color: $black;
70+
font-size: calc(1.3rem + 0.6vw);
71+
font-weight: 500;
72+
line-height: 1.2;
73+
margin: 0 0 1rem;
74+
text-decoration: none;
75+
76+
&:visited {
77+
color: $black;
78+
}
79+
80+
&:hover,
81+
&:active {
82+
color: $cwl-red;
83+
}
84+
}
85+
7986
@include media-breakpoint-up(md) {
8087
.feature-title {
8188
font-size: 1.3rem;

0 commit comments

Comments
 (0)