Changed announcements

This commit is contained in:
Wen Kokke 2020-07-15 13:41:20 +01:00
parent 95033b061a
commit 32978b5651
4 changed files with 11 additions and 14 deletions

View file

@ -1,8 +1,14 @@
<!-- Import jQuery --> <!-- Import jQuery -->
<script type="text/javascript" src="{{ "/assets/jquery.js" | prepend: site.baseurl }}"></script> <script type="text/javascript" src="{{ "/assets/jquery.js" | prepend: site.baseurl }}"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/anchor-js/4.2.2/anchor.min.js" integrity="sha256-E4RlfxwyJVmkkk0szw7LYJxuPlp6evtPSBDlWHsYYL8=" crossorigin="anonymous"></script>
<script type="text/javascript">
// Add anchors on DOMContentLoaded
document.addEventListener('DOMContentLoaded', function(event) {
anchors.add();
});
</script>
<script type="text/javascript"> <script type="text/javascript">
// Script which allows for foldable code blocks // Script which allows for foldable code blocks
$('div.foldable pre').each(function(){ $('div.foldable pre').each(function(){
var autoHeight = $(this).height(); var autoHeight = $(this).height();

View file

@ -7,19 +7,18 @@ layout: default
{{ content }} {{ content }}
{%- if site.posts.size > 0 -%} {%- if site.posts.size > 0 -%}
<h2 class="post-list-heading">{{ page.list_title | default: "Posts" }}</h2> <h1 class="post-list-heading">Announcements</h1>
<ul class="post-list"> <ul class="post-list">
{%- for post in site.posts -%} {%- for post in site.posts -%}
<li> <li>
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%} {%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
<span class="post-meta">{{ post.date | date: date_format }}</span> <span class="post-meta">{{ post.date | date: date_format }}</span>
<h3>{{ post.title | escape }}</h3> <h2>{{ post.title | escape }}</h2>
{%- if post.short -%} {%- if post.short -%}
{{ post.excerpt }} {{ post.excerpt }}
{%- else -%} {%- else -%}
{{ post.excerpt }} {{ post.excerpt }}
<br /> <a href="{{ post.url | relative_url }}">(more)</a>
<a class="post-link" href="{{ post.url | relative_url }}">(more)</a>
{%- endif -%} {%- endif -%}
</li> </li>
{%- endfor -%} {%- endfor -%}

View file

@ -17,11 +17,3 @@ layout: default
{% include next.html %} {% include next.html %}
</article> </article>
<script src="https://cdnjs.cloudflare.com/ajax/libs/anchor-js/4.2.2/anchor.min.js" integrity="sha256-E4RlfxwyJVmkkk0szw7LYJxuPlp6evtPSBDlWHsYYL8=" crossorigin="anonymous"></script>
<script type="text/javascript">
// Add anchors on DOMContentLoaded
document.addEventListener('DOMContentLoaded', function(event) {
anchors.add();
});
</script>

View file

@ -1,6 +1,6 @@
--- ---
layout : post layout : post
title : "Praise for PLFA!" title : "Praise for PLFA"
short : true short : true
--- ---