shawnsandy / adv-meta Goto Github PK
View Code? Open in Web Editor NEWA simple plugin to extend pico page meta values
A simple plugin to extend pico page meta values
I'm a little confused on how to install the Advanced Meta Plugin. Here is what I have come up with. Please correct if I'm wrong.
1.Create my sidebar1 content like so with the new meta value (Layout) --
/*
Title:
Author:
Date:
Layout: sidebar1
*/
Markdown content goes here.
2.Copy adv_meta.php to my Plugins folder.
Copy the following to my Pico config.php --
$config['adv_meta_values'] = array(
//use custom page template(s)
'layout' => 'Layout'
)
So now I have the sidebar1 content written and told Pico about the new "layout" meta, so to get the sidebar1 content into my theme's sidebar1 div do I just put {{ meta.layout}} into my theme's sidebar1 div?? This can't be right. Where does "sidebar1" come into this? I'm going to have multiple sidebars so how do I differentiate between them? I've obviously missed a step!
First, thanks for this plugin. Fills an identified void.
One question:
{{ meta.type }} works for individuals pages. Fantastic.
BUT
{{ meta.type }} (or any variation with page. etc.) does not work within a 'for page in pages' loop.
Any thoughts why these meta values aren't able to be accessed in other locations?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.