+ 2

How can I add a part to my website that will be placed on all pages and after a while update it on all pages?

I want to add a section to my site that will be placed on all pages and updated every day

18th Jun 2018, 4:19 PM
Sir.Pooya1D
Sir.Pooya1D - avatar
4 Réponses
+ 3
You can do that with a templating language like "Jinja2" for Django projects. You can have one html file for the header and "include" it in every other files(extends x.html)
18th Jun 2018, 4:51 PM
Nomeh Uchenna Gabriel
Nomeh Uchenna Gabriel - avatar
+ 1
I want to put a section above my web site to place an ad or post inside it on all pages. And I can change it every day without having to change on all pages
18th Jun 2018, 4:37 PM
Sir.Pooya1D
Sir.Pooya1D - avatar
0
like a counter or like a clock? can you explain a little more about what you want to do? with vue.js or react.js is ease just like a component. if just HTML CSS and js. you can create a div and copy all the logic for the js and styles to every page that you want that component to be placed at
18th Jun 2018, 4:28 PM
Ismael Garcia
Ismael Garcia - avatar
0
or pug are some templating but you have to have a back end to be able to do that
18th Jun 2018, 4:52 PM
Ismael Garcia
Ismael Garcia - avatar