Add syntax highlighting, support draft posts
This commit is contained in:
parent
94c692a54c
commit
6fffd6e1cc
16 changed files with 64 additions and 97 deletions
9
util/heroicons.rb
Normal file
9
util/heroicons.rb
Normal file
|
@ -0,0 +1,9 @@
|
|||
module Util
|
||||
module Heroicons
|
||||
def self.pencil_square(cls)
|
||||
"<svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\" stroke-width=\"1.5\" stroke=\"currentColor\" class=\"#{cls}\">
|
||||
<path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L10.582 16.07a4.5 4.5 0 0 1-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 0 1 1.13-1.897l8.932-8.931Zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0 1 15.75 21H5.25A2.25 2.25 0 0 1 3 18.75V8.25A2.25 2.25 0 0 1 5.25 6H10\" />
|
||||
</svg>"
|
||||
end
|
||||
end
|
||||
end
|
5
util/markdown.rb
Normal file
5
util/markdown.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
class Phlex::Markdown
|
||||
def view_template
|
||||
template
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue