Add more microformat tags

This commit is contained in:
2023-02-13 09:33:27 +11:00
parent 0dc7ee25bf
commit 71ec805cd3
3 changed files with 35 additions and 23 deletions

View File

@@ -50,6 +50,10 @@ module Adamantium
truncate_html(content, 140, true)
end
def permalink
"#{Hanami.app.settings.micropub_site_url}/post/#{slug}"
end
private
def truncate_html(content, len = 30, at_end = nil)