fix taxonomy issues
This commit is contained in:
parent
4acfe1d027
commit
900fe7ed06
@ -39,7 +39,7 @@ header h1, header h1 a
|
|||||||
color: $text
|
color: $text
|
||||||
text-decoration: none
|
text-decoration: none
|
||||||
padding: 0
|
padding: 0
|
||||||
transition: color 0.4s
|
transition: color 0.4s ease-in-out
|
||||||
&:hover, &:focus
|
&:hover, &:focus
|
||||||
color: $accent-light
|
color: $accent-light
|
||||||
|
|
||||||
@ -67,9 +67,10 @@ nav ul li a
|
|||||||
color: $text
|
color: $text
|
||||||
text-decoration: none
|
text-decoration: none
|
||||||
font-weight: 500
|
font-weight: 500
|
||||||
transition: background 0.4s
|
transition: background 0.4s ease-in-out
|
||||||
&:hover, &:focus
|
&:hover, &:focus
|
||||||
background: $accent-dark
|
background: $accent-dark
|
||||||
|
color: $text
|
||||||
|
|
||||||
@media (max-width: 600px)
|
@media (max-width: 600px)
|
||||||
header
|
header
|
||||||
|
@ -1,5 +1,12 @@
|
|||||||
/* _text.sass */
|
/* _text.sass */
|
||||||
|
|
||||||
|
a
|
||||||
|
color: $primary
|
||||||
|
text-decoration: underline
|
||||||
|
transition: color 0.3s ease-in-out
|
||||||
|
&:hover, &:focus
|
||||||
|
color: $accent
|
||||||
|
|
||||||
#quick-links
|
#quick-links
|
||||||
text-align: left
|
text-align: left
|
||||||
|
|
||||||
@ -31,6 +38,6 @@
|
|||||||
color: $darkest
|
color: $darkest
|
||||||
text-decoration: none
|
text-decoration: none
|
||||||
font-weight: 500
|
font-weight: 500
|
||||||
transition: background 0.4s
|
transition: background 0.3s ease-in-out
|
||||||
&:hover, &:focus
|
&:hover, &:focus
|
||||||
background: $accent-light
|
background: $accent-light
|
||||||
|
13
assets/sass/_publications.sass
Normal file
13
assets/sass/_publications.sass
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
#publications
|
||||||
|
ul
|
||||||
|
list-style: none
|
||||||
|
margin: 0
|
||||||
|
padding: 0
|
||||||
|
display: flex
|
||||||
|
flex-direction: column
|
||||||
|
gap: 1em
|
||||||
|
|
||||||
|
li
|
||||||
|
background: $surface
|
||||||
|
border-radius: 8px
|
||||||
|
padding: 1em 1.5em
|
@ -7,62 +7,60 @@ table#taxonomy-table
|
|||||||
background: $surface
|
background: $surface
|
||||||
text-align: left
|
text-align: left
|
||||||
|
|
||||||
tr:nth-child(even)
|
tr
|
||||||
background: darken($surface, 2%)
|
border-bottom: 3px solid $background
|
||||||
transition: background 0.4s
|
&:nth-child(even)
|
||||||
tr:nth-child(odd)
|
background: darken($surface, 2%)
|
||||||
background: lighten($surface, 3%)
|
transition: background 0.4s ease-in-out
|
||||||
transition: background 0.4s
|
&:nth-child(odd)
|
||||||
tr:hover, tr:focus
|
background: lighten($surface, 3%)
|
||||||
background: $border
|
transition: background 0.4s ease-in-out
|
||||||
|
&:hover, &:focus
|
||||||
|
background: $border
|
||||||
|
|
||||||
#taxonomy-table thead
|
thead
|
||||||
text-align: left
|
text-align: left
|
||||||
border: none
|
border: none
|
||||||
background: $darkest
|
background: $darkest
|
||||||
border-radius: $border-radius $border-radius 0 0
|
border-radius: $border-radius $border-radius 0 0
|
||||||
|
|
||||||
#taxonomy-table th
|
th
|
||||||
color: $text
|
color: $text
|
||||||
padding: 0.6rem 0.6rem
|
padding: 0.6rem 0.6rem
|
||||||
text-align: left
|
text-align: left
|
||||||
font-weight: 600
|
font-weight: 600
|
||||||
border: none
|
border: none
|
||||||
|
|
||||||
#taxonomy-table td
|
td
|
||||||
padding: 0.3rem 0.6rem
|
padding: 0.3rem 0.6rem
|
||||||
text-align: left
|
text-align: left
|
||||||
font-weight: 600
|
font-weight: 600
|
||||||
border: none
|
border: none
|
||||||
|
|
||||||
#taxonomy-table tr
|
a.term-link
|
||||||
border-bottom: 3px solid $background
|
padding: 0.2rem 0.6rem
|
||||||
&:hover, &:focus
|
margin: 0.2rem
|
||||||
background: $primary-light
|
display: inline-block
|
||||||
|
border-radius: $border-radius
|
||||||
|
text-decoration: none
|
||||||
|
font-weight: 500
|
||||||
|
color: $text
|
||||||
|
transition: color 0.4s ease-in-out, background 0.4s ease-in-out
|
||||||
|
&:hover, &:focus
|
||||||
|
color: $darkest !important
|
||||||
|
background: $text-subtle !important
|
||||||
|
|
||||||
#taxonomy-table a.term-link
|
a.taxonomy-name
|
||||||
padding: 0.2rem 0.6rem
|
padding: 0
|
||||||
margin: 0.2rem
|
margin: 0.2rem
|
||||||
display: inline-block
|
display: inline-block
|
||||||
border-radius: $border-radius
|
border-radius: $border-radius
|
||||||
text-decoration: none
|
text-decoration: none
|
||||||
font-weight: 500
|
font-weight: 500
|
||||||
color: $text
|
color: $text
|
||||||
transition: color 0.4s
|
transition: color 0.4s ease-in-out
|
||||||
&:hover, &:focus
|
&:hover, &:focus
|
||||||
color: $darkest
|
color: $accent-light
|
||||||
|
|
||||||
#taxonomy-table a.taxonomy-name
|
|
||||||
padding: 0
|
|
||||||
margin: 0.2rem
|
|
||||||
display: inline-block
|
|
||||||
border-radius: $border-radius
|
|
||||||
text-decoration: none
|
|
||||||
font-weight: 500
|
|
||||||
color: $text
|
|
||||||
transition: color 0.4s
|
|
||||||
&:hover, &:focus
|
|
||||||
color: $accent-light
|
|
||||||
|
|
||||||
#taxonomy-page a.term-link
|
#taxonomy-page a.term-link
|
||||||
padding: 0.3rem 1.2rem
|
padding: 0.3rem 1.2rem
|
||||||
@ -72,7 +70,7 @@ table#taxonomy-table
|
|||||||
text-decoration: none
|
text-decoration: none
|
||||||
font-weight: 500
|
font-weight: 500
|
||||||
color: $text
|
color: $text
|
||||||
transition: color 0.4s
|
transition: color 0.4s ease-in-out
|
||||||
font-size: 1.2rem
|
font-size: 1.2rem
|
||||||
&:hover, &:focus
|
&:hover, &:focus
|
||||||
color: $darkest
|
color: $darkest
|
||||||
|
@ -2,4 +2,5 @@
|
|||||||
@import "colors"
|
@import "colors"
|
||||||
@import "layout"
|
@import "layout"
|
||||||
@import "taxonomy"
|
@import "taxonomy"
|
||||||
@import "links"
|
@import "links"
|
||||||
|
@import "publications"
|
@ -26,19 +26,21 @@
|
|||||||
<h2>At a Glance</h2>
|
<h2>At a Glance</h2>
|
||||||
<table id="taxonomy-table">
|
<table id="taxonomy-table">
|
||||||
<tbody>
|
<tbody>
|
||||||
|
{{ $params := .Params }}
|
||||||
{{ range $taxonomyname, $taxonomy := .Site.Taxonomies }}
|
{{ range $taxonomyname, $taxonomy := .Site.Taxonomies }}
|
||||||
{{ with $taxonomy }}
|
{{ $terms := index $params $taxonomyname }}
|
||||||
<tr>
|
{{ if $terms }}
|
||||||
<td>
|
<tr>
|
||||||
<a
|
<td>
|
||||||
|
<a
|
||||||
class="taxonomy-name"
|
class="taxonomy-name"
|
||||||
href="{{ "/" | relLangURL }}{{ $taxonomyname }}">
|
href="{{ "/" | relLangURL }}{{ $taxonomyname }}">
|
||||||
{{ $taxonomyname | strings.FirstUpper }}
|
{{ $taxonomyname | strings.FirstUpper }}
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{{ range $key, $value := $taxonomy }}
|
{{ range $term := $terms }}
|
||||||
{{ partial "term-link.html" (dict "name" $key "taxonomy" $taxonomyname) }}
|
{{ partial "term-link.html" (dict "name" $term "taxonomy" $taxonomyname) }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@ -54,21 +56,29 @@
|
|||||||
</section>
|
</section>
|
||||||
|
|
||||||
{{ with .Params.publications}}
|
{{ with .Params.publications}}
|
||||||
<section>
|
<section id="publications">
|
||||||
<h2>Publications</h2>
|
<h2>Publications</h2>
|
||||||
<ul>
|
<ul>
|
||||||
{{ range $citation, $pub := site.Data.publications }}
|
{{ range $citation, $pub := site.Data.publications }}
|
||||||
{{ range $pub }}
|
{{ range $pub }}
|
||||||
{{ if in $.Params.publications .key }}
|
{{ if in $.Params.publications .key }}
|
||||||
<li>
|
<li>
|
||||||
{{ if .year }} <strong>{{ .year }}</strong>: {{ end }}
|
{{ if .title }} <strong>{{ .title }}</strong> {{ end }}
|
||||||
{{ if .title }} <em>{{ .title }}</em> {{ end }}
|
{{ if .year }}
|
||||||
{{ if .author }} <br /> by {{ delimit .author " | " | html }} {{ end }}
|
{{ if .month }}
|
||||||
{{ if .booktitle }} <br />Appears in <em>{{ .booktitle }}</em> {{ end }}
|
({{ .month }} {{.year }})
|
||||||
{{ if .journal }} <br />Appears in <em>{{ .journal }}</em> {{ end }}
|
{{ else }}
|
||||||
{{ if .volume }} <strong>{{ .volume }}</strong> {{ end }}
|
({{ .year }})
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
{{ if .author }} by {{ index .author 0 }}{{ if (gt (len .author) 1) }} et. al. {{ end }}{{ end }}
|
||||||
|
{{ if .booktitle }} | Appears in <em>{{ .booktitle }}</em> {{ end }}
|
||||||
{{ if .pages }} ({{ .pages }}) {{ end }}
|
{{ if .pages }} ({{ .pages }}) {{ end }}
|
||||||
{{ if .doi }} <br /><a href="https://doi.org/{{ . }}" target="_blank" rel="noopener">DOI: {{ .doi }}</a> {{ end }}
|
{{ if .journal }} | Appears in <em>{{ .journal }}</em> {{ end }}
|
||||||
|
{{ if .volume }} | Volume {{ .volume }} {{ end }}
|
||||||
|
{{ if .publisher }} | Published by <em>{{ .publisher }}</em> {{ end }}
|
||||||
|
{{ if .doi }} <br /><a href="https://doi.org/{{ . }}" target="_blank" rel="noopener">{{ .doi }}</a>
|
||||||
|
{{ else if .url }} <br /><a href="{{ . }}" target="_blank" rel="noopener">{{ .url }}</a> {{ end }}
|
||||||
</li>
|
</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user