theme fixes - and use url filter to allow non root folder deploying
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>{% if title %}{{ title }} — {% 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 }}
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user