Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/pjbakker/flexible-seo-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul <paul@brainspark.nl>2020-04-01 18:08:54 +0300
committerPaul <paul@brainspark.nl>2020-04-01 18:08:54 +0300
commit6d47849fe84cb1b4ef4820575691b8fe84c8ca57 (patch)
tree7db429a59be625167babb9d432bd1e1b792c8939
parenta3c334e08afce86a3fe419108c4f5c2aa1979d09 (diff)
Prettify read more in list / default home
-rw-r--r--layouts/_default/list.html2
-rw-r--r--layouts/partials/homes/simple.html2
-rw-r--r--static/css/theme.css8
3 files changed, 10 insertions, 2 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index cd7a0cf..f04b8bf 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -57,7 +57,7 @@
<div class="item-entry">
{{ if .Truncated }}
{{ .Summary }}
- <a href="{{ .Permalink }}" class="post-read-more">[Read more]</a>
+ <a href="{{ .Permalink }}" class="read-more">[Read more]</a>
{{ else }}
{{ .Content }}
{{ end }}
diff --git a/layouts/partials/homes/simple.html b/layouts/partials/homes/simple.html
index f09c48d..a740ac4 100644
--- a/layouts/partials/homes/simple.html
+++ b/layouts/partials/homes/simple.html
@@ -48,7 +48,7 @@
<div class="item-entry">
{{ if .Truncated }}
{{ .Summary }}
- <a href="{{ .Permalink }}" class="post-read-more">[Read more]</a>
+ <a href="{{ .Permalink }}" class="read-more">[Read more]</a>
{{ else }}
{{ .Content }}
{{ end }}
diff --git a/static/css/theme.css b/static/css/theme.css
index eef469a..b872337 100644
--- a/static/css/theme.css
+++ b/static/css/theme.css
@@ -109,3 +109,11 @@
{
content: "#";
}
+
+.read-more
+{
+ font-weight: 800;
+ float: right;
+ text-decoration: none;
+ color: #404040;
+}