class Tremolite::Post

Defined in:

tremolite/posts/post.cr

Constant Summary

LINE_JOIN_STRING = "\n"
Log = ::Log.for(self)

Constructors

Instance Method Summary

Constructor Detail

def self.new(blog : Tremolite::Blog, path : String) #

[View source]

Instance Method Detail

def <=>(other) #

[View source]
def author : String #

from header or filename


[View source]
def category : String #

from header or filename


[View source]
def content_html : String #

to allow using jekkyl-like post_url functions we need to process to html after initial post processing

NOTE you must execute this if you want to have functions processed


[View source]
def content_string : String #

[View source]
def custom_initialize #

[View source]
def custom_process_header #

[View source]
def date #

[View source]
def guuid #

for atom feed


[View source]
def header : YAML::Any #

[View source]
def image_url #

[View source]
def images_dir_url #

[View source]
def parse #

[View source]
def path : String #

from header or filename


[View source]
def process #

[View source]
def process_header #

[View source]
def process_paths #

[View source]
def public_image_url #

[View source]
def slug : String #

from header or filename


[View source]
def subtitle : String #

from header or filename


[View source]
def time : Time #

from header or filename


[View source]
def title : String #

from header or filename


[View source]
def updated_at #

[View source]
def url : String #

[View source]
def visible? #

by default all posts are visible, can be overriden


[View source]
def year #

[View source]