theme fixes - and use url filter to allow non root folder deploying

This commit is contained in:
Nick Stokoe
2023-05-09 15:42:26 +01:00
parent 5ebd808a20
commit 0f5d81e59f
2 changed files with 8 additions and 6 deletions

View File

@@ -4,7 +4,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{% if title %}{{ title }} &mdash; {% endif %}{{ site.title }}</title>
<link href="{{ '/assets/css/style.css' }}" rel="stylesheet">
<link href="{{ '/assets/css/style.css' | url }}" rel="stylesheet">
</head>
<body>
<div class="container">
@@ -15,7 +15,7 @@
<h1>{{ title }}</h1>
<ul class="images">
{% for image in images %}
<li><img src="../../images/{{ image }}"></li>
<li><img src="{{ [ '../../images/', image ] | join | url }}"></li>
{% endfor %}
</ul>
{{ content | safe }}

View File

@@ -1,14 +1,16 @@
---
title: Hi
title: When-we 2
---
Hello!!
This is a minimal rebuild of the When-we site, which is old and decrepit...
Very rough. It will be incrementally improved.
<ul>
{%- for post in collections.articles -%}
<li>
{% if post.data.featured_image %}
<img width=100 height=100 src="/images/{{ post.data.featured_image }}">
<img width=100 height=100 src="{{ '/images/' | append: post.data.featured_image | join: "/" | url }}">
{% endif %}
<a href="{{ post.url }}">{{ post.data.title }}</a></li>
<a href="{{ post.url | url }}">{{ post.data.title }}</a></li>
{%- endfor -%}
</ul>