Skip to content

Commit

Permalink
Fix authors recent articles
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigoalcarazdelaosa committed Jul 10, 2024
1 parent 24aaec7 commit 239a36f
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions layouts/authors/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ <h1>{{ .Title }}</h1>
</div>
{{ end }}

<section id="profile-page" class="home-section">
<section id="profile-page" class="home-section">
<div class="container">

{{/* Breadcrumbs. */}}

<nav aria-label="breadcrumb">
<ol class="breadcrumb breadcrumb-widget">
{{ if eq .Site.Language.Lang "es" }}
{{ if eq .Site.Language.Lang "es" }}
<li class="breadcrumb-item"><a href="/"><img draggable="false" class="icon" alt="logo" src="/icon/logo-fisiquimicamente.svg" id="fisiquimicamente-breadcrumb"><script>
document.addEventListener('wcThemeChange', (e) => {
// console.log('isDarkTheme? ' + e.detail.isDarkTheme());
Expand Down Expand Up @@ -57,7 +57,7 @@ <h1>{{ .Title }}</h1>
{{ else if eq .Site.Language.Lang "ca" }}
<li class="breadcrumb-item"><a href="/equip">👥 Equip</a></li>
{{ end }}
<li class="breadcrumb-item active" aria-current="page">{{ .Title }}</li>
<li class="breadcrumb-item active" aria-current="page">{{ .Title }}</li>
</ol>
</nav>

Expand All @@ -71,9 +71,6 @@ <h1>{{ .Title }}</h1>
{{end}}

{{ $query := where .Pages ".IsNode" false }}
{{ range .Translations }}
{{ $query = $query | lang.Merge .Pages }}
{{ end }}
{{ $count := len $query }}
{{ if $count }}
<div class="article-widget content-widget-hr">
Expand All @@ -91,7 +88,7 @@ <h3>{{ i18n "user_profile_latest" | default "Latest" }}</h3>
{{ else if eq $sec "prac" }}
<a href="{{ .Permalink }}">🧪 {{ .Title }}</a>
{{ else if eq $sec "biog" }}
<a href="{{ .Permalink }}">📖 {{ .Title }}</a>
<a href="{{ .Permalink }}">📖 {{ .Title }}</a>
{{ else if eq $sec "EBAU" }}
<a href="{{ .Permalink }}">🎓 {{ .Title }}</a>
{{ else if eq $sec "opos" }}
Expand All @@ -106,7 +103,7 @@ <h3>{{ i18n "user_profile_latest" | default "Latest" }}</h3>
<a href="{{ .Permalink }}">✍️ {{ .Title }}</a>
{{ else }}
<a href="{{ .Permalink }}">{{ .Title }}</a>
{{ end }}
{{ end }}
<p class="search-hit-description">
{{ .Summary | plainify | emojify }}
</p>
Expand Down

0 comments on commit 239a36f

Please sign in to comment.