|
SimpleLog wiki
Installing SimpleLog Upgrading Working with themes
How to
Troubleshooting Development & resources |
Themes /
StyleExtendedLinkIf you want to be able to style the extended link that gets rendered on a post 'teaser' (say, to float it right or use a background image), do the following: In app/helpers/post_helper.rb, find the following:
def extended_content_link(post, wrap_in_p = true)
...
ext_link = "<a href=\"#{Post.permalink(post)}\" title=\"#{ext_link}\">#{ext_link}</a>"
...
end
Add a style class, (class=\"readmore"\):
def extended_content_link(post, wrap_in_p = true)
...
ext_link = "<a href=\"#{Post.permalink(post)}\" title=\"#{ext_link}\" class=\"readmore\">#{ext_link}</a>"
...
end
Now you can style the link using
NOTE: Since this is a core app file, you will have to re-insert this code every time you upgrade to a new version. Hopefully, future versions will put something like this in for us... |