diff --git a/scipost_django/scipost/static/scipost/assets/css/_homepage.scss b/scipost_django/scipost/static/scipost/assets/css/_homepage.scss index 1cb9d69fec1e52771b9604dff58a4ae3b7be658c..b19b21b6969bcc43168ab87f808e6e71fbbcac57 100644 --- a/scipost_django/scipost/static/scipost/assets/css/_homepage.scss +++ b/scipost_django/scipost/static/scipost/assets/css/_homepage.scss @@ -238,7 +238,7 @@ } } - .link-cloud { + .news .link-cloud { list-style: none; padding: 0; text-align: center; @@ -260,6 +260,11 @@ } } + .news { + position: sticky; + top: 0; + } + .news h3 > a { color: initial; } .news ul { list-style: none; diff --git a/scipost_django/scipost/templates/scipost/index3.html b/scipost_django/scipost/templates/scipost/index3.html index cdb9331079f65ae65a93d650d26c32f8e9daab42..602776d06d4917dcfb04395ef8fb0a45dd9c3225 100644 --- a/scipost_django/scipost/templates/scipost/index3.html +++ b/scipost_django/scipost/templates/scipost/index3.html @@ -14,10 +14,6 @@ {% block meta_description %}{{ block.super }} homepage{% endblock meta_description %} {% block pagetitle %}Homepage{% endblock pagetitle %} -{% block navbar %} - {% include 'scipost/navbar2.html' %} -{% endblock %} - {% block content %} <div class="row"> <div class="col-12"> @@ -71,10 +67,7 @@ </li> {% endfor %} </ul> - </div><!-- End news --> - - <div> <ul class="link-cloud"> <li>About</li> <li>Contact Us</li> @@ -88,7 +81,9 @@ <li>Sponsors</li> <li>Finances</li> </ul> - </div> + </div><!-- End news --> + + </div> </div> diff --git a/scipost_django/scipost/views.py b/scipost_django/scipost/views.py index 29ad453cfee659f5b6bcb707811e744543f89d3a..a106d76831d479ca676022fa31eebe5121e587cd 100644 --- a/scipost_django/scipost/views.py +++ b/scipost_django/scipost/views.py @@ -415,7 +415,7 @@ def index3(request): 'news_items': NewsItem.objects.homepage().order_by('-date')[:4], 'publications': Publication.objects.published().order_by('-publication_date', '-paper_nr')[:10], - 'submissions': Submission.objects.public().order_by('-submission_date')[:10], + # 'submissions': Submission.objects.public().order_by('-submission_date')[:10], 'current_sponsors': Organization.objects.current_sponsors().order_by('?')[:2] } return render(request, 'scipost/index3.html', context)