[Guide] Replace Lightgallery for GLightbox plugin

- Replaced: Lightgallery for GLightbox plugin.
pull/897/head
TRaSH 2 years ago
parent ba4b5171bf
commit 0589d5823d

@ -1,4 +1,4 @@
lightgallery==0.5 mkdocs-glightbox==0.3.0
mkdocs-awesome-pages-plugin==2.8.0 mkdocs-awesome-pages-plugin==2.8.0
mkdocs-git-revision-date-localized-plugin==1.1.0 mkdocs-git-revision-date-localized-plugin==1.1.0
mkdocs-macros-plugin==0.7.0 mkdocs-macros-plugin==0.7.0

@ -33,7 +33,6 @@ markdown_extensions:
- pymdownx.tabbed - pymdownx.tabbed
- pymdownx.highlight - pymdownx.highlight
- pymdownx.tilde - pymdownx.tilde
- lightgallery
- codehilite: - codehilite:
guess_lang: true guess_lang: true
- toc: - toc:
@ -55,6 +54,7 @@ plugins:
locale: en locale: en
# fallback_to_build_date: false # fallback_to_build_date: false
- awesome-pages - awesome-pages
- glightbox
- macros: - macros:
j2_block_start_string: "[[%" j2_block_start_string: "[[%"
j2_block_end_string: "%]]" j2_block_end_string: "%]]"

File diff suppressed because one or more lines are too long

Binary file not shown.

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 8.3 KiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 KiB

File diff suppressed because one or more lines are too long

@ -10,22 +10,3 @@
</footer> </footer>
{% endblock %} {% endblock %}
{% block styles %}
{{ super() }}
<link rel="stylesheet" href="{{ base_url }}/css/lightgallery.min.css">
{% endblock styles %}
{% block libs %}
{{ super() }}
<script src="{{ base_url }}/js/lightgallery.min.js"></script>
{% endblock libs %}
{% block scripts %}
{{ super() }}
<script>
var elements = document.getElementsByClassName("lightgallery");
for(var i=0; i<elements.length; i++) {
lightGallery(elements[i]);
}
</script>
{% endblock scripts %}

Loading…
Cancel
Save