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 charset="utf-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>{% if title %}{{ title }} — {% endif %}{{ site.title }}</title>
|
<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>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
@@ -15,7 +15,7 @@
|
|||||||
<h1>{{ title }}</h1>
|
<h1>{{ title }}</h1>
|
||||||
<ul class="images">
|
<ul class="images">
|
||||||
{% for image in images %}
|
{% for image in images %}
|
||||||
<li><img src="../../images/{{ image }}"></li>
|
<li><img src="{{ [ '../../images/', image ] | join | url }}"></li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
{{ content | safe }}
|
{{ 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>
|
<ul>
|
||||||
{%- for post in collections.articles -%}
|
{%- for post in collections.articles -%}
|
||||||
<li>
|
<li>
|
||||||
{% if post.data.featured_image %}
|
{% 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 %}
|
{% endif %}
|
||||||
<a href="{{ post.url }}">{{ post.data.title }}</a></li>
|
<a href="{{ post.url | url }}">{{ post.data.title }}</a></li>
|
||||||
{%- endfor -%}
|
{%- endfor -%}
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
Reference in New Issue
Block a user