Closed roipoussiere closed 5 years ago
@roipoussiere I expect users to override and create their own templates. I am afraid this PR is going to add a whole lot of config variables that most people won't use...
Yes but all of these config variables are optional, so that changes nothing for these most people who won't use them.
Currently, all third-party libraries are provided via CDNs, defined directly in html code.
However there are some use-cases where a developer would want to specify a library location himself:
For all of these use-cases, it is easier to use configuration variables instead of monkey-patching flask-blogging.
That's why this pull-request put all third-party libraries locations in configuration variables. This includes:
VENDOR_BOOTSTRAP_CSS
;VENDOR_BOOTSTRAP_JS
;VENDOR_BOOTSTRAP_MARKDOWN_CSS
;VENDOR_BOOTSTRAP_MARKDOWN_JS
;VENDOR_MARKED_JS
;VENDOR_JQUERY_JS
;VENDOR_MATHJAX_JS
;For instance, a developer will be able to define in main.py:
Not that by default, the CDNs are used, so it doesn't change the current behavior.
Other minor modifications: