Skip to content

Styles at posts and pages #568

Answered by razonyang
iamgiannisx asked this question in Q&A
Discussion options

You must be logged in to vote

Btw, I recommend using Bootstrap utilities CSS instead of inline style, in this case, you can define something like following:

<div class="text-center">
  {{ .Inner }}
</div>

You may need to restart Hugo server.

If you prefer using Markdown inside a shortcode, you'll need to process the Markdown:

{{< shortcodename >}}
[My Site](https://example.com)
{{</ shortcodename >}}
{{ .Inner | markdownify }}

Replies: 5 comments 1 reply

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
1 reply
@razonyang
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by iamgiannisx
Comment options

You must be logged in to vote
0 replies
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