diff --git a/_config.yml b/_config.yml index d3d887dd5..a5052b61e 100644 --- a/_config.yml +++ b/_config.yml @@ -86,4 +86,24 @@ theme-colors: dark: '#343a40' google-maps-key: AIzaSyBEJy4UvF-JfcNciWlvlznyDlUckcspiD4 -google-maps-url: https://maps.googleapis.com/maps/api/js?key=AIzaSyCOJwXN0eoyeFZ3cYtGzPLFw8zGhQ750Xk \ No newline at end of file +google-maps-url: https://maps.googleapis.com/maps/api/js?key=AIzaSyCOJwXN0eoyeFZ3cYtGzPLFw8zGhQ750Xk + +theme-plugins: + charts-c3: + name: c3.js Charts + files: [css, js] + maps-google: + name: Google Maps + files: [css, js] +# iconfonts: +# name: Iconfonts +# files: [css] +# prismjs: +# name: Code Highlight +# files: [css, js] +# fullcalendar: +# name: FullCalendar +# files: [css, js] +# weather: +# name: Weather +# files: [css] \ No newline at end of file diff --git a/_layouts/base.html b/_layouts/base.html index 38596eb10..976e546f4 100644 --- a/_layouts/base.html +++ b/_layouts/base.html @@ -17,31 +17,11 @@ - - - - - - {% comment %} - - - - - - - - - - - - - - - - - - - {% endcomment %} + {% for plugin in site.theme-plugins %} + + {% if plugin[1].files contains 'css' %}{% endif %} + {% if plugin[1].files contains 'js' %}{% endif %} + {% endfor %}