<style amp-custom>
{% include "style.css" %}
</style>
I am trying to create a simple AMP-site and got some problem. What is {% %}? It doesn't work for me?
You can try it, it's working for me...
<style amp-custom>
@import url('css/custom.css');
</style>
You can’t reference external stylesheets amp pages, styles must be inlined under style tag with amp-custom attribute
<style amp-custom>
</style>
reference: amp styling doc
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With