Skip to content

Commit

Permalink
Revert "Revert "Merge branch 'post-thumbnail' of https://github.com/L…
Browse files Browse the repository at this point in the history
…ucasVadilho/anatole into pr/72""

This reverts commit 7ffa9a6.
  • Loading branch information
lxndrblz committed Sep 18, 2020
1 parent 1306bb7 commit 6752fb1
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 3 deletions.
9 changes: 9 additions & 0 deletions assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -952,6 +952,15 @@ a.btn {
.theme-switch-item {
float: none;
}

.preview {
flex-direction: column;
align-items: center;
}

.preview .thumbnail {
order: var(--thumbnail-position);
}
}

/* Medium zoom */
Expand Down
4 changes: 3 additions & 1 deletion exampleSite/content/post/emoji-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ description = "Guide to emoji usage in Hugo"
tags = [
"emoji",
]
thumbnail = "http://placeimg.com/150/150/any?2"
[thumbnail]
src = "http://placeimg.com/150/150/any?2"
alt = "Thumbnail image"
+++

Emoji can be enabled in a Hugo project in a number of ways.
Expand Down
4 changes: 3 additions & 1 deletion exampleSite/content/post/markdown-syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ categories = [
]
series = ["Themes Guide"]
aliases = ["migrate-from-jekyl"]
thumbnail = "http://placeimg.com/150/150/any?1"
[thumbnail]
src = "http://placeimg.com/150/150/any?1"
alt = "Thumbnail image"
+++

This article offers a sample of basic Markdown syntax that can be used in Hugo content files, also it shows whether basic HTML elements are decorated with CSS in a Hugo theme.
Expand Down
4 changes: 3 additions & 1 deletion exampleSite/content/post/rich-content.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ tags = [
"shortcodes",
"privacy",
]
thumbnail = "http://placeimg.com/150/150/any?3"
[thumbnail]
src = "http://placeimg.com/150/150/any?3"
alt = "Thumbnail image"
+++

Hugo ships with several [Built-in Shortcodes](https://gohugo.io/content-management/shortcodes/#use-hugo-s-built-in-shortcodes) for rich content, along with a [Privacy Config](https://gohugo.io/about/hugo-and-gdpr/) and a set of Simple Shortcodes that enable static and no-JS versions of various social media embeds.
Expand Down

0 comments on commit 6752fb1

Please sign in to comment.