Skip to content

How to change the format of the post title? #80

Answered by Rongronggg9
HabDV asked this question in Q&A
Discussion options

You must be logged in to vote

title_html = Bold(Underline(title_text)).get_html() if title_text else None

if title_type == POST_TITLE_W_LINK:
title_html = Bold(Underline(Link(title, param=self.link))).get_html()
elif title_type == POST_TITLE_NO_LINK:
title_html = Bold(Underline(title)).get_html()

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@HabDV
Comment options

@Rongronggg9
Comment options

@HabDV
Comment options

@Rongronggg9
Comment options

Answer selected by HabDV
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants