Skip to content
Snippets Groups Projects
Commit 95683e14 authored by alexisben's avatar alexisben
Browse files

Merge branch 'feature/summary-position' of...

Merge branch 'feature/summary-position' of github.com:noesya/osuny-hugo-theme-aaa into feature/summary-position
parents ed77f349 135cbfc9
No related branches found
No related tags found
No related merge requests found
...@@ -52,12 +52,12 @@ ...@@ -52,12 +52,12 @@
aside aside
order: 2 order: 2
padding: 0 half($grid-gutter-sm) padding: 0 half($grid-gutter-sm)
margin-bottom: $spacing3
@include media-breakpoint-up(desktop) @include media-breakpoint-up(desktop)
.hero .hero
.content .content
> h1, > hgroup > h1, > hgroup
width: auto width: auto
.paper-sidebar .paper-sidebar
@include container-margin-left @include container-margin-left
margin-top: 0 margin-top: 0
......
...@@ -14,7 +14,7 @@ params: ...@@ -14,7 +14,7 @@ params:
breadcrumb: breadcrumb:
position: hero-start # hero-start | hero-end | after-hero | none position: hero-start # hero-start | hero-end | after-hero | none
summary: summary:
position: hero # content | hero position: content # content | hero
home: home:
toc: toc:
disabled: true disabled: true
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
<div class="container"> <div class="container">
<div class="content"> <div class="content">
{{ partial "papers/summary.html" . }}
{{ partial "papers/abstract.html" . }} {{ partial "papers/abstract.html" . }}
{{ partial "papers/authors.html" . }} {{ partial "papers/authors.html" . }}
{{ partial "papers/body.html" . }} {{ partial "papers/body.html" . }}
......
{{ $summary := (partial "PrepareText" .Params.summary) }}
{{- if and (eq site.Params.summary.position "content") $summary -}}
<section>
<h2 class="lead">{{ $summary }}</h2>
</section>
{{ end }}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment