mirror of
https://github.com/gcushen/hugo-academic.git
synced 2025-07-26 19:15:16 +02:00
style: don't color authors as links in Pages widget with Cite view
Authors are still clickable but colored the same as the rest of the entry. Only the publication title link is colored as a normal link. See #950
This commit is contained in:
parent
177dd391d3
commit
a62c6bf01f
3 changed files with 16 additions and 3 deletions
|
@ -33,7 +33,7 @@ hero_media = "hero-academic.png"
|
|||
# Display link(s) by specifying a URL and label below. Icon is optional for `[cta]`.
|
||||
# Remove a link/note by deleting a cta/note block.
|
||||
[cta]
|
||||
url = "post/getting-started/"
|
||||
url = "https://sourcethemes.com/academic/docs/install/"
|
||||
label = "Get Started"
|
||||
icon_pack = "fas"
|
||||
icon = "download"
|
||||
|
|
|
@ -1218,6 +1218,19 @@ article .article-metadata {
|
|||
overflow: hidden;
|
||||
}
|
||||
|
||||
.li-cite-author {
|
||||
font-size: 1em;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.li-cite-author a {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.dark .li-cite-author a {
|
||||
color: rgb(248, 248, 242);
|
||||
}
|
||||
|
||||
/*************************************************
|
||||
* Experience
|
||||
**************************************************/
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
{{/* APA Style */}}
|
||||
{{ if eq ($.Site.Params.publications.citation_style | default "apa") "apa" }}
|
||||
|
||||
<span itemprop="author">
|
||||
<span itemprop="author" class="article-metadata li-cite-author">
|
||||
{{ partial "page_metadata_authors" . }}
|
||||
</span>
|
||||
({{- .Date.Format "2006" -}}).
|
||||
|
@ -19,7 +19,7 @@
|
|||
{{/* MLA Style */}}
|
||||
{{ else }}
|
||||
|
||||
<span itemprop="author">
|
||||
<span itemprop="author" class="article-metadata li-cite-author">
|
||||
{{ partial "page_metadata_authors" . }}
|
||||
</span>.
|
||||
<a href="{{ .RelPermalink }}" itemprop="name">{{ .Title }}</a>.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue