Remove mentionedin again
This commit is contained in:
parent
a5ce0e459d
commit
232c15c6df
|
@ -779,7 +779,7 @@ select {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Related articles and webmentions */
|
/* Related articles and webmentions */
|
||||||
.related, .mentions, .mentionedin {
|
.related, .mentions {
|
||||||
@include subarticle-element;
|
@include subarticle-element;
|
||||||
@media screen and (max-width: $break1) {
|
@media screen and (max-width: $break1) {
|
||||||
min-width: 100%;
|
min-width: 100%;
|
||||||
|
|
|
@ -65,7 +65,4 @@
|
||||||
translation: Lies mir bitte vor.
|
translation: Lies mir bitte vor.
|
||||||
|
|
||||||
- id: stopspeak
|
- id: stopspeak
|
||||||
translation: Hör auf zu sprechen!
|
translation: Hör auf zu sprechen!
|
||||||
|
|
||||||
- id: mentionedin
|
|
||||||
translation: Erwähnt in
|
|
|
@ -68,7 +68,4 @@
|
||||||
translation: Read to me, please.
|
translation: Read to me, please.
|
||||||
|
|
||||||
- id: stopspeak
|
- id: stopspeak
|
||||||
translation: Stop speaking!
|
translation: Stop speaking!
|
||||||
|
|
||||||
- id: mentionedin
|
|
||||||
translation: Mentioned in
|
|
|
@ -22,7 +22,6 @@
|
||||||
</div>
|
</div>
|
||||||
{{ partial "post_tags" . }}
|
{{ partial "post_tags" . }}
|
||||||
</article>
|
</article>
|
||||||
{{ partial "mentionedin.html" . }}
|
|
||||||
{{ if (.Param "authorbox") }}{{ partialCached "authorbox" . }}{{ end }}
|
{{ if (.Param "authorbox") }}{{ partialCached "authorbox" . }}{{ end }}
|
||||||
</main>
|
</main>
|
||||||
{{ if (and (.Param "promo") .CurrentSection.Parent) }}{{ partialCached "promo" . }}{{ end }}
|
{{ if (and (.Param "promo") .CurrentSection.Parent) }}{{ partialCached "promo" . }}{{ end }}
|
||||||
|
|
|
@ -1,26 +0,0 @@
|
||||||
{{ if .Param "mentionedin" }}
|
|
||||||
{{ if in (.Site.Param "postSections" | default (slice "posts")) .Type }}
|
|
||||||
{{ $mentionedIn := slice }}
|
|
||||||
{{ $current := .RelPermalink }}
|
|
||||||
{{ range .Sites }}
|
|
||||||
{{ $allPages := ( where .RegularPages "Type" "in" (.Param "postSections" | default (slice "posts")) ) }}
|
|
||||||
{{ range $allPages }}
|
|
||||||
{{ if strings.Contains .RawContent $current }}
|
|
||||||
{{ $mentionedIn = $mentionedIn | append . }}
|
|
||||||
{{ end }}
|
|
||||||
{{ end }}
|
|
||||||
{{ end }}
|
|
||||||
{{ with $mentionedIn }}
|
|
||||||
<div class="mentionedin">
|
|
||||||
<details>
|
|
||||||
<summary class="mentionedin-caption">{{ T "mentionedin" }}</summary>
|
|
||||||
<ul class="mentionedin-list">
|
|
||||||
{{ range sort . "Date" "desc" }}
|
|
||||||
<li><a href="{{ .RelPermalink }}">{{ with .Title }}{{ . }}{{ else }}{{ .Summary | truncate 60 }}{{ end }}</a> <i>{{.Date.Format ( .Site.Params.dateformat | default "January 02, 2006")}}</i></li>
|
|
||||||
{{ end }}
|
|
||||||
</ul>
|
|
||||||
</details>
|
|
||||||
</div>
|
|
||||||
{{ end }}
|
|
||||||
{{ end }}
|
|
||||||
{{ end }}
|
|
Reference in New Issue