Skip to content
This repository was archived by the owner on Feb 1, 2023. It is now read-only.

Commit 7ea8b61

Browse files
committed
Make entire entries and archive items "clickable"
Expand click target to cover entire entry (title, excerpt, date, image, etc.) in home, posts, categories, tags, and collection views.
1 parent e9a3099 commit 7ea8b61

File tree

3 files changed

+23
-4
lines changed

3 files changed

+23
-4
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

8+
## [Unreleased] -
9+
10+
### Changed
11+
- Make entire entries and archive items "clickable"
12+
- Remove redundant "Read more..." links on each entry.
13+
814
## [3.1.2] - 02-17-2018
915

1016
### Changed

_includes/entry.html

+1-4
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<header class="entry-header">
99
<h3 class="entry-title p-name">
1010
{% if entry.link %}
11-
<a class="u-bookmark-of" href="{{ entry.link }}">{{ title }} <span class="link-arrow">&rarr;</span></a>
11+
<a class="u-bookmark-of" href="{{ entry.link }}">{{ title }}</a> <a href="{{ entry.url | relative_url }}" rel="bookmark"><span class="link-arrow">&rarr;</span></a>
1212
{% else %}
1313
<a href="{{ entry.url | relative_url }}" rel="bookmark">{{ title }}</a>
1414
{% endif %}
@@ -26,9 +26,6 @@ <h3 class="entry-title p-name">
2626
<div class="entry-excerpt p-summary">
2727
{% if entry.excerpt %}
2828
{{ entry.excerpt | markdownify }}
29-
<div class="more-link">
30-
<a href="{{ entry.url | relative_url }}">{{ site.data.text[site.locale].read_more | default: 'Read More' }}</a>
31-
</div>
3229
{% endif %}
3330
</div>
3431
{% endunless %}

_sass/so-simple/_entries.scss

+16
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
.entry {
66
@include clearfix();
7+
position: relative;
78

89
a {
910
color: inherit;
@@ -35,6 +36,15 @@
3536
a {
3637
text-decoration: none;
3738
}
39+
40+
a[rel="bookmark"]::before {
41+
content: '';
42+
position: absolute;
43+
left: 0;
44+
top: 0;
45+
right: 0;
46+
bottom: 0;
47+
}
3848
}
3949

4050
.entry-image {
@@ -59,6 +69,12 @@
5969
}
6070
}
6171

72+
.entry-excerpt a,
73+
.u-bookmark-of {
74+
position: relative;
75+
z-index: 10;
76+
}
77+
6278
/*
6379
Entries List Layout
6480
========================================================================== */

0 commit comments

Comments
 (0)