update moremeta.js to show {{ image }} from MD YAML files and use in partial pagelist-docs

This commit is contained in:
readme 2020-03-23 13:19:41 +01:00
parent e8385b274b
commit 30ac160237
8 changed files with 9 additions and 3 deletions

View file

@ -49,6 +49,7 @@ module.exports = function() {
file.navmain.push({ file.navmain.push({
title: page.title || 'Home', title: page.title || 'Home',
description: page.description || '', description: page.description || '',
image: file.root + page.image || '',
path: file.root + page.path + (page.path ? '/' : ''), path: file.root + page.path + (page.path ? '/' : ''),
dateFormat: page.dateFormat, dateFormat: page.dateFormat,
active: page.path == file.path || page.collection.indexOf(file.mainCollection) >= 0 active: page.path == file.path || page.collection.indexOf(file.mainCollection) >= 0
@ -75,6 +76,7 @@ module.exports = function() {
file.navsub.push({ file.navsub.push({
title: page.title || 'Home', title: page.title || 'Home',
description: page.description || '', description: page.description || '',
image: file.root + page.image || '',
path: file.root + page.path + (page.path ? '/' : ''), path: file.root + page.path + (page.path ? '/' : ''),
dateFormat: page.dateFormat, dateFormat: page.dateFormat,
active: page.path == file.path active: page.path == file.path

View file

Before

Width:  |  Height:  |  Size: 126 KiB

After

Width:  |  Height:  |  Size: 126 KiB

Before After
Before After

Binary file not shown.

After

Width:  |  Height:  |  Size: 135 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 135 KiB

After

Width:  |  Height:  |  Size: 76 KiB

Before After
Before After

View file

@ -1,6 +1,7 @@
--- ---
title: blockman title: blockman
description: WIP from the cloud on wheels description: WIP from the cloud on wheels
image: images/docs/blockman-docs-pinkish.png
priority: 0.7 priority: 0.7
--- ---

View file

@ -1,6 +1,7 @@
--- ---
title: dashbox title: dashbox
description: Simple development framework for Dash Platform description: Simple development framework for Dash Platform
image: images/docs/dashbox-docs-orange.png
priority: 0.8 priority: 0.8
--- ---

View file

@ -1,6 +1,7 @@
<meta charset="utf-8"> <meta charset="utf-8">
<title>{{#if title}}{{ title }} - {{/if}}{{ name }}</title> <title>{{#if title}}{{ title }} - {{/if}}{{ name }}</title>
{{#if description}}<meta name="description" content="{{ description }}" />{{/if}} {{#if description}}
<meta name="description" content="{{ description }}" />{{/if}}
<meta name="HandheldFriendly" content="true"> <meta name="HandheldFriendly" content="true">
<meta name="MobileOptimized" content="320"> <meta name="MobileOptimized" content="320">

View file

@ -4,7 +4,8 @@
{{#each navsub}} {{#each navsub}}
<li> <li>
<a href="{{ path }}"> <a href="{{ path }}">
<!-- <img src="{{ root }}{{ image }}" width="80" /> -->
<img src="{{ image }}" width="80" />
<h2>{{ title }}</h2> <h2>{{ title }}</h2>
{{#if description}} {{#if description}}