diff options
author | Gyorgy Orban <o.gyorgy@gmail.com> | 2017-11-18 12:25:23 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-18 12:25:23 +0300 |
commit | 238b19c50ddea366d31ff4cd9009fcfdcdcb3e53 (patch) | |
tree | dbd240bfc372e7630961ab5e6b2f89322480b36f | |
parent | 54613cc4fdb653c7151cd9794d8eac267e8c89b2 (diff) | |
parent | 7a43ca381c5c4205eb9f0a2c574117112c197478 (diff) |
Merge pull request #6 from gyorb/change_rmore
change the position of the read more link
-rw-r--r-- | layouts/_default/summary.html | 8 | ||||
-rw-r--r-- | static/css/color-dark.css | 2 | ||||
-rw-r--r-- | static/css/layout.css | 12 |
3 files changed, 6 insertions, 16 deletions
diff --git a/layouts/_default/summary.html b/layouts/_default/summary.html index 401e101..ccf23a8 100644 --- a/layouts/_default/summary.html +++ b/layouts/_default/summary.html @@ -8,12 +8,12 @@ {{ partial "tags.html" . }} </header> - <div class="summary"> {{ .Summary }} </div> + <div class="summary"> + {{ .Summary }} + <a href='{{ .Permalink }}' class="rmore">Read more ...</a> + </div> - <footer> <div class="rmore"> - <a href='{{ .Permalink }}'><nobr>Read more ...</nobr></a> </div> - </footer> </article> diff --git a/static/css/color-dark.css b/static/css/color-dark.css index 358821d..88b4d47 100644 --- a/static/css/color-dark.css +++ b/static/css/color-dark.css @@ -29,5 +29,5 @@ th { background: #1D1F21; } .post-preview .title a{ color: #99cc66; } .content-item a:hover{ text-decoration: underline; color: #99cc66; } .post-list .title { color: #99cc66; } -.rmore a { color: #99cc66; } +.rmore { color: #99cc66; } .terms .term a:hover { text-decoration: underline; color: #99cc66; } diff --git a/static/css/layout.css b/static/css/layout.css index 2498cc1..3093cfe 100644 --- a/static/css/layout.css +++ b/static/css/layout.css @@ -356,17 +356,7 @@ th, td { } .rmore { - text-align: right; -} - -.rmore a { - display: inline-block; - padding: 0.1em; - text-decoration: none; -} - -.rmore a:hover { - text-decoration: underline; + padding: 0 0 0 0.8em; } /* terms list */ |