mirror of https://github.com/luizdepra/hugo-coder.git

Paolo Mainardi
13.18.2022 7fa76b460a7e36fec40606700b20de78df7528b5
Add a post-content class to single (#745)

### Prerequisites

Put an `x` into the box(es) that apply:

- [ ] This pull request fixes a bug.
- [x] This pull request adds a feature.
- [ ] This pull request introduces breaking change.

### Description

Post content misses an HTML class, that can be useful to style the
content.

### Issues Resolved

### Checklist

Put an `x` into the box(es) that apply:

#### General

- [x] Describe what changes are being made
- [x] Explain why and how the changes were necessary and implemented
respectively
- [s] https://github.com/luizdepra/hugo-coder/issues/744

#### Resources

- [ ] If you have changed any SCSS code, run `make release` to
regenerate all CSS files

#### Contributors

- [ ] Add yourself to `CONTRIBUTORS.md` if you aren't on it already

Co-authored-by: Luiz F. A. de PrĂ¡ <luizdepra@users.noreply.github.com>
1 files modified
2 ■■■ changed files
layouts/posts/single.html 2 ●●● patch | view | raw | blame | history
layouts/posts/single.html
@@ -31,7 +31,7 @@
        </div>
      </header>
      <div>
      <div class="post-content">
        {{ if .Params.featuredImage }}
          <img src="{{ .Params.featuredImage | relURL }}" alt="Featured image"/>
        {{ end }}