New style initial
This commit is contained in:
@@ -13,18 +13,9 @@
|
||||
{% if tags and tags.includes('galleryImage') %}
|
||||
<link rel="stylesheet" type="text/css" href="/css/gallery-images.css" />
|
||||
{% endif %}
|
||||
{% if tags and tags.includes('metadata') %}
|
||||
<link rel="stylesheet" type="text/css" href="/css/metadata.css" />
|
||||
{% endif %}
|
||||
{% if tags and tags.includes('navigator') %}
|
||||
<link rel="stylesheet" type="text/css" href="/css/navigator.css" />
|
||||
{% endif %}
|
||||
{% if tags and tags.includes('profilePic') %}
|
||||
<link rel="stylesheet" type="text/css" href="/css/profile-pic.css" />
|
||||
{% endif %}
|
||||
{% if tags and tags.includes('postList') %}
|
||||
<link rel="stylesheet" type="text/css" href="/css/post-list.css" />
|
||||
{% endif %}
|
||||
{% if tags and tags.includes('tagList') %}
|
||||
<link rel="stylesheet" type="text/css" href="/css/tags.css" />
|
||||
{% endif %}
|
||||
@@ -86,8 +77,8 @@
|
||||
</section>
|
||||
{% endif %}
|
||||
</main>
|
||||
{% include "birb.njk" %}
|
||||
{% include "footer.njk" %}
|
||||
{% include "birb.njk" %}
|
||||
{% include "weather.njk" %}
|
||||
{% include "wooMode.njk" %}
|
||||
{% include "settings/settingsConfig.njk" %}
|
||||
|
||||
@@ -8,7 +8,7 @@ layout: layouts/linksPage.njk
|
||||
<div class="socialLinks">
|
||||
{% for link in metadata.socialLinks %}
|
||||
<a class="link-button u-url" {% if link.customAttribute %} {{ link.customAttribute | safe }} {% endif %} href="{{ link.linkURL }}">
|
||||
<button type="button"><img src="{{ link.iconURL }}" />{{ link.linkDisplay }}</button>
|
||||
<button type="button">{{ link.iconSVG | safe }}{{ link.linkDisplay }}</button>
|
||||
</a>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
@@ -2,44 +2,39 @@
|
||||
layout: layouts/base.njk
|
||||
---
|
||||
<article class="post" data-pagefind-body>
|
||||
<h1>{{ title | markdownify | safe}}</h1>
|
||||
{% include "mastodonComments.njk" %}
|
||||
{% if not hideMetadata %}
|
||||
<div class="post-metadata">
|
||||
{% if author %}
|
||||
{% if author.profilePic %}
|
||||
<img class="profilePic" src="{{ author.profilePic }}">
|
||||
{% endif %}
|
||||
<div class="post-metadata-copy">
|
||||
<p>{% if author.url %}<a href="{{ author.url }}">{% endif %}
|
||||
{% if author.name %}By {{ author.name }}{% endif %}{% if author.url %}</a> • {% endif %}<time datetime="{{ page.date | htmlDateString }}">{{ page.date | niceDate }}</time> • {{ content | emojiReadTime }}</p>
|
||||
|
||||
{% else %}
|
||||
{% if metadata.author.profilePic %}
|
||||
<img class="profilePic" src="{{ metadata.author.profilePic }}">
|
||||
{% endif %}
|
||||
<div class="post-metadata-copy">
|
||||
<p>{% if metadata.author.url %}<a href="{{ metadata.author.url }}">{% endif %}
|
||||
{% if metadata.author.name %}By {{ metadata.author.name }}{% endif %}{% if metadata.author.url %}</a> • {% endif %}<time datetime="{{ page.date | htmlDateString }}">{{ page.date | niceDate }}</time>{% if tags and not tags.includes('quiz') %} • {{ content | emojiReadTime }}{% endif %}</p>
|
||||
|
||||
{% endif %}
|
||||
|
||||
|
||||
<ul>
|
||||
{%- for tag in tags | filterTagList %}
|
||||
{%- set tagUrl %}/tags/{{ tag | slugify }}/{% endset %}
|
||||
<li>
|
||||
<a
|
||||
href="{{ tagUrl }}"
|
||||
class="post-tag">
|
||||
{{ tag }}
|
||||
</a>
|
||||
</li>
|
||||
{%- endfor %}
|
||||
</ul>
|
||||
<div class="hero-container">
|
||||
<div class="hero">
|
||||
<p class="post-taglist">
|
||||
{%- for tag in tags | filterTagList %}
|
||||
{%- set tagUrl %}/tags/{{ tag | slugify }}/{% endset %}
|
||||
<a href="{{ tagUrl }}">#{{ tag }} </a>
|
||||
{%- endfor %}
|
||||
</p>
|
||||
<h1>{{ title | markdownify | safe}}</h1>
|
||||
{% if synopsis %}
|
||||
<p class="post-synopsis">
|
||||
{{ synopsis | markdownify | safe}}
|
||||
</p>
|
||||
{% endif %}
|
||||
{% if tags and tags.includes('quiz') %}
|
||||
<p class="post-synopsis">
|
||||
{{ content | markdownify | safe}}
|
||||
</p>
|
||||
{% endif %}
|
||||
{% if not tags.includes('quiz') %}
|
||||
{% if imageURL %}
|
||||
<a href="{{ imageURL }}"><img class="post-image" src="{{ imageURL }}" alt="{{ imageAlt }}"></a>
|
||||
{% endif %}
|
||||
<p class="post-time-author">
|
||||
<time datetime="{{ page.date | htmlDateString }}">{{ page.date | niceDate }}</time><br>
|
||||
By <a href="{% if author %}{{ author.url }}{% else %}{{ metadata.author.url }}{% endif %}">{% if author %}{{ author.name }}{% else %}{{ metadata.author.name }}{% endif %}</a></p>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{{ content | safe }}
|
||||
{% if tags and not tags.includes('quiz') %}{{ content | safe }}{% endif %}
|
||||
</article>
|
||||
{% if tags and not tags.includes('quiz') %}
|
||||
{% include "articleAuthor.njk" %}
|
||||
{% include "mastodonComments.njk" %}
|
||||
{% endif %}
|
||||
{% include "issoCommenting.njk" %}
|
||||
|
||||
@@ -3,6 +3,12 @@ layout: layouts/post.njk
|
||||
structuredData: none
|
||||
---
|
||||
{{ content | safe }}
|
||||
{% if imageURL %}
|
||||
<a href="{{ imageURL }}"><img class="post-image" src="{{ imageURL }}" alt="{{ imageAlt }}"></a>
|
||||
{% endif %}
|
||||
<p class="post-time-author">
|
||||
<time datetime="{{ page.date | htmlDateString }}">{{ page.date | niceDate }}</time><br>
|
||||
By <a href="{% if author %}{{ author.url }}{% else %}{{ metadata.author.url }}{% endif %}">{% if author %}{{ author.name }}{% else %}{{ metadata.author.name }}{% endif %}</a></p>
|
||||
<section class="quiz">
|
||||
<form onsubmit="handleQuizSubmit(); return false">
|
||||
{% for question in questions %}
|
||||
|
||||
Reference in New Issue
Block a user