mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-04-21 08:01:52 +02:00
Merge pull request #661 from nunocoracao/650-external-posts-should-not-display-likes-and-views
🐛 External posts should not display likes and views
This commit is contained in:
commit
3be3e817bc
3 changed files with 3 additions and 10 deletions
|
@ -1960,11 +1960,6 @@ select {
|
||||||
min-height: auto;
|
min-height: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.min-h-fit {
|
|
||||||
min-height: -moz-fit-content;
|
|
||||||
min-height: fit-content;
|
|
||||||
}
|
|
||||||
|
|
||||||
.min-h-full {
|
.min-h-full {
|
||||||
min-height: 100%;
|
min-height: 100%;
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,8 +4,6 @@ date: 2019-01-24
|
||||||
externalUrl: "https://nunocoracao.com/projects/"
|
externalUrl: "https://nunocoracao.com/projects/"
|
||||||
summary: "The `externalUrl` front matter parameter can link to any URL."
|
summary: "The `externalUrl` front matter parameter can link to any URL."
|
||||||
showReadingTime: true
|
showReadingTime: true
|
||||||
showLikes: false
|
|
||||||
showViews: false
|
|
||||||
_build:
|
_build:
|
||||||
render: "false"
|
render: "false"
|
||||||
list: "local"
|
list: "local"
|
||||||
|
|
|
@ -30,15 +30,15 @@
|
||||||
{{ $meta.Add "partials" (slice (partial "meta/reading-time.html" .)) }}
|
{{ $meta.Add "partials" (slice (partial "meta/reading-time.html" .)) }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ if (.Params.showViews | default (.Site.Params.article.showViews | default false)) }}
|
{{ if and (not .Params.externalURL) (.Params.showViews | default (.Site.Params.article.showViews | default false)) }}
|
||||||
{{ $meta.Add "partials" (slice (partial "meta/views.html" .)) }}
|
{{ $meta.Add "partials" (slice (partial "meta/views.html" .)) }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ if (.Params.showLikes | default (.Site.Params.article.showLikes | default false)) }}
|
{{ if and (not .Params.externalURL) (.Params.showLikes | default (.Site.Params.article.showLikes | default false)) }}
|
||||||
{{ $meta.Add "partials" (slice (partial "meta/likes.html" .)) }}
|
{{ $meta.Add "partials" (slice (partial "meta/likes.html" .)) }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ if and (eq $scope "single") (.Params.showLikes | default (.Site.Params.article.showLikes | default false)) }}
|
{{ if and (eq $scope "single") (not .Params.externalURL) (.Params.showLikes | default (.Site.Params.article.showLikes | default false)) }}
|
||||||
{{ $meta.Add "partials" (slice (partial "meta/likes_button.html" .)) }}
|
{{ $meta.Add "partials" (slice (partial "meta/likes_button.html" .)) }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue