Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
Theme
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
osuny
Theme
Commits
a6be66fd
Commit
a6be66fd
authored
2 years ago
by
alexisben
Browse files
Options
Downloads
Patches
Plain Diff
wip
parent
680bff67
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
assets/sass/_theme/sections/papers.sass
+73
-49
73 additions, 49 deletions
assets/sass/_theme/sections/papers.sass
layouts/papers/single.html
+13
-8
13 additions, 8 deletions
layouts/papers/single.html
layouts/partials/papers/sidebar.html
+82
-0
82 additions, 0 deletions
layouts/partials/papers/sidebar.html
with
168 additions
and
57 deletions
assets/sass/_theme/sections/papers.sass
+
73
−
49
View file @
a6be66fd
...
@@ -47,57 +47,81 @@
...
@@ -47,57 +47,81 @@
.papers__page
.papers__page
@include
media-breakpoint-down
(
desktop
)
.document-content
display
:
flex
flex-direction
:
column
aside
order
:
2
padding
:
0
half
(
$grid-gutter-sm
)
@include
media-breakpoint-up
(
desktop
)
.paper-sidebar
@include
container-margin-left
margin-top
:
0
top
:
0
left
:
0
height
:
100%
position
:
absolute
width
:
col-outside-container
(
4
)
>
div
@include
sticky
(
$spacing1
)
.toc-container
border-top
:
1px
solid
$color-border
padding-top
:
$spacing1
position
:
static
margin-left
:
0
.document-content
.document-content
.container
// .container
// @include media-breakpoint-up(desktop)
// @include grid
.content
@include
media-breakpoint-up
(
desktop
)
@include
media-breakpoint-up
(
desktop
)
@include
grid
grid-column
:
5
/
12
.content
section
+
section
margin-top
:
$spacing2
@include
media-breakpoint-up
(
desktop
)
@include
media-breakpoint-up
(
desktop
)
grid-column
:
5
/
12
margin-top
:
$spacing4
section
+
section
.squared-button
margin-bottom
:
0
margin-top
:
$spacing0
width
:
auto
.paper-essentials
h2
@include
meta
margin-top
:
$spacing2
margin-top
:
$spacing2
@include
media-breakpoint-up
(
desktop
)
&
:first-of-type
margin-top
:
$spacing4
margin-top
:
0
.squared-button
.paper-body
margin-bottom
:
0
h2
margin-top
:
$spacing0
margin-bottom
:
$spacing2
width
:
auto
.paper-authors
.paper-essentials
h2
h2
@include
h3
@include
meta
.authors
@include
grid
(
2
,
desktop
)
article
margin-top
:
$spacing2
margin-top
:
$spacing2
&
:first-of-type
.name
margin-top
:
0
a
.paper-body
@include
h4
h2
@include
stretched-link
(
before
)
margin-bottom
:
$spacing2
text-decoration
:
none
.paper-authors
.document-nav
h2
@include
media-breakpoint-up
(
desktop
)
@include
h3
grid-column
:
1
/
5
.authors
img
@include
grid
(
2
,
desktop
)
width
:
col
(
2
,
4
)
article
dl
margin-top
:
$spacing2
margin
:
0
.name
dt
a
@include
meta
@include
h4
margin-bottom
:
$spacing0
@include
stretched-link
(
before
)
&
:not
(
:first-of-type
)
text-decoration
:
none
margin-top
:
$spacing2
.document-nav
dd
:first-of-type
@include
media-breakpoint-up
(
desktop
)
a
grid-column
:
1
/
5
display
:
flex
img
flex-direction
:
column
width
:
col
(
2
,
4
)
span
dl
order
:
3
margin
:
0
dt
@include
meta
margin-bottom
:
$spacing0
&
:not
(
:first-of-type
)
margin-top
:
$spacing2
dd
:first-of-type
a
display
:
flex
flex-direction
:
column
span
order
:
3
This diff is collapsed.
Click to expand it.
layouts/papers/single.html
+
13
−
8
View file @
a6be66fd
...
@@ -9,21 +9,26 @@
...
@@ -9,21 +9,26 @@
) -}}
) -}}
<div
class=
"document-content"
itemscope
itemtype=
"https://schema.org/ScholarlyArticle"
>
<div
class=
"document-content"
itemscope
itemtype=
"https://schema.org/ScholarlyArticle"
>
<meta
itemprop=
"name"
content=
"{{ partial "
PrepareHTML
"
.
Title
}}"
>
<meta
itemprop=
"name"
content=
"{{ partial "
PrepareHTML
"
.
Title
}}"
>
{{ partial "papers/sidebar.html" . }}
<div
class=
"container"
>
<div
class=
"container"
>
{{ partial "papers/document-nav.html" . }}
<div
class=
"content"
>
<div
class=
"blocks"
>
{{ partial "papers/abstract.html" . }}
<div
class=
"block"
>
{{ partial "papers/authors.html" . }}
<div
class=
"container"
>
{{ partial "papers/body.html" . }}
<div
class=
"block-content"
>
{{ partial "papers/references.html" . }}
{{ partial "papers/abstract.html" . }}
{{ partial "papers/authors.html" . }}
{{ partial "papers/body.html" . }}
{{ partial "papers/references.html" . }}
</div>
</div>
</div>
</div>
</div>
{{ partial "blocks/list.html" . }}
</div>
</div>
</div>
</div>
{{ partial "blocks/list.html" . }}
{{ end }}
{{ end }}
This diff is collapsed.
Click to expand it.
layouts/partials/papers/sidebar.html
0 → 100644
+
82
−
0
View file @
a6be66fd
<div
class=
"paper-sidebar"
>
<div>
<aside>
<dl>
{{ range .GetTerms "volumes" }}
<dt>
{{ i18n "volumes.singular_name" }}
</dt>
<dd
itemprop=
"isPartOf"
itemscope
itemtype=
"https://schema.org/PublicationVolume"
>
<a
href=
"{{ .Permalink }}"
itemprop=
"url"
>
<span
itemprop=
"name"
>
{{ .Title }}
</span>
<div
class=
"media"
>
{{- if .Params.image -}}
{{- partial "commons/image.html"
(dict
"image" .Params.image
"alt" .Title
"mobile" "327x388"
"tablet" "208x247"
"desktop" "408x485"
) -}}
{{- else if site.Params.default_image.url -}}
{{- partial "commons/image-default.html" (dict "class" "img-fluid") -}}
{{- end -}}
</div>
</a>
</dd>
{{ end }}
{{ if isset .Params "type" }}
<dt>
{{ i18n "volumes.nature" }}
</dt>
<dd>
{{ partial "PrepareHTML" .Params.Type }}
</dd>
{{ end }}
{{ if isset .Params "keywords" }}
{{ if gt ( len .Params.keywords ) 0 }}
<dt>
{{ i18n "volumes.keywords" }}
</dt>
<dd
itemprop=
"keywords"
>
{{ delimit .Params.Keywords " " }}
</dd>
{{ end }}
{{ end }}
{{ if isset .Params "lang" }}
<dt>
{{ i18n "commons.language" }}
</dt>
<dd
itemprop=
"inLanguage"
content=
"{{ .Params.Lang_iso }}"
>
{{ .Params.Lang }}
</dd>
{{ end }}
{{ if .Date }}
<dt>
{{ i18n "commons.date" }}
</dt>
<dd>
<time
itemprop=
"datePublished"
datetime=
"{{ .Date | time.Format "
2006
-01-02T15:04
"
}}"
>
{{ .Date | time.Format ":date_long" }}
</time>
</dd>
{{ end }}
{{ with .Params.dates.published }}
<dt>
{{ i18n "papers.dates.published" }}
</dt>
<dd>
<time
itemprop=
"datePublished"
datetime=
"{{ . | time.Format "
2006
-01-02T15:04
"
}}"
>
{{ . | time.Format ":date_long" }}
</time>
</dd>
{{ end }}
{{ with .Params.dates.accepted }}
<dt>
{{ i18n "papers.dates.accepted" }}
</dt>
<dd>
<time
itemprop=
"datePublished"
datetime=
"{{ . | time.Format "
2006
-01-02T15:04
"
}}"
>
{{ . | time.Format ":date_long" }}
</time>
</dd>
{{ end }}
{{ with .Params.dates.received }}
<dt>
{{ i18n "papers.dates.received" }}
</dt>
<dd>
<time
itemprop=
"datePublished"
datetime=
"{{ . | time.Format "
2006
-01-02T15:04
"
}}"
>
{{ . | time.Format ":date_long" }}
</time>
</dd>
{{ end }}
</dl>
</aside>
{{ partial "toc/container.html"
(dict
"toc" "toc/default.html"
"context" .
)
}}
</div>
</div>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment