bnomei / kirby3-htmlhead Goto Github PK
View Code? Open in Web Editor NEWKirby Plugin for a best-practice HTML Head Element extendable with snippets
License: MIT License
Kirby Plugin for a best-practice HTML Head Element extendable with snippets
License: MIT License
make it a separate plugin
Can you please add an option to skip the addition of < base > completely?
I want to add anchor links and don't need the < base > element.
I tried it with null but it doesn't skip generating the line and still makes anchor links impossible.
'htmlhead/base' => function ($kirby, $site, $page) {
return ['href' => 'null'];
},
Hey there,
I'd like to incorporate an external CSS file in 'bnomei.htmlhead.css'
, and while kirby3-fingerprint
is installed, there's currently no option to include its integrity
value.
add demo data for snippets
http://devkit.bnomei.com/htmlhead
Question:
Lazysizes does not calculate size correctly. Images are all lowrez/pixelated.
Answer:
if using loadjs from this plugin you probably have to use the css
and js
to load the main css file and lazysizes javascript file. That way you force the browser to wait for the css to be loaded and applied before starting lazysizes.
return [
'bnomei.htmlhead.css' => [
'/assets/css/styles.min.css', // <-- sharp
],
'bnomei.htmlhead.js' => [
'/assets/js/lazysizes.min.js', // <-- sharp
],
'bnomei.htmlhead.loadjs' => [
'*' => [
'template' => [],
'dependencies' => [
// '/assets/css/styles.min.css', // <-- low-rez
// '/assets/js/lazysizes.min.js', // <-- low-rez
'/assets/js/main.min.js'
]
],
],
];
since opengraph might be done by pedros metatags plugin etc.
Is there a way to output scripts with the async
attribute?
If not can you add it?
https://github.com/bnomei/kirby3-htmlhead/blob/master/snippets/htmlhead/link-css.php
Hey there,
great plugin, many thanks are in order - now, it would be great to have an example how you populate SEO / Opengraph meta tags (with custom page methods etc as mentioned in README.md), like you did on your devkit page?
PR regarding some minor fixes is up and running ๐
// Edit: I'm open to adding twitter card support, too. And what's your standing on og:locale
and og:description?
being included by default?
Cheers!
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.