Skip to content

Commit bb5ef8f

Browse files
Minor changes and fixes (alshedivat#726)
1 parent 6d66ae8 commit bb5ef8f

File tree

8 files changed

+58
-30
lines changed

8 files changed

+58
-30
lines changed

README.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
[![deploy](https://github.com/alshedivat/al-folio/actions/workflows/deploy.yml/badge.svg)](https://github.com/alshedivat/al-folio/actions/workflows/deploy.yml)
44
[![demo](https://img.shields.io/badge/theme-demo-brightgreen.svg)](https://alshedivat.github.io/al-folio/)
55
[![GitHub contributors](https://img.shields.io/github/contributors/alshedivat/al-folio.svg)](https://github.com/alshedivat/al-folio/graphs/contributors/)
6-
![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/alshedivat/al-folio)
7-
![GitHub](https://img.shields.io/github/license/alshedivat/al-folio?color=blue)
6+
[![GitHub release](https://img.shields.io/github/v/release/alshedivat/al-folio)](https://github.com/alshedivat/al-folio/releases/latest)
7+
[![GitHub license](https://img.shields.io/github/license/alshedivat/al-folio?color=blue)](https://github.com/alshedivat/al-folio/blob/master/LICENSE)
88
[![GitHub stars](https://img.shields.io/github/stars/alshedivat/al-folio)](https://github.com/alshedivat/al-folio)
99
[![GitHub forks](https://img.shields.io/github/forks/alshedivat/al-folio)](https://github.com/alshedivat/al-folio/fork)
1010
[![support](https://img.shields.io/badge/support-Ko--fi-yellow.svg)](https://ko-fi.com/alshedivat)
@@ -26,13 +26,13 @@ Feel free to add your own page(s) by sending a PR.
2626
<tr>
2727
<td>Academics</td>
2828
<td>
29-
<a href="http://maruan.alshedivat.com" target="_blank">★</a>
29+
<a href="https://maruan.alshedivat.com" target="_blank">★</a>
3030
<a href="https://www.cs.columbia.edu/~chen1ru/" target="_blank">★</a>
3131
<a href="https://maithraraghu.com" target="_blank">★</a>
32-
<a href="http://platanois.org" target="_blank">★</a>
32+
<a href="https://platanios.org" target="_blank">★</a>
3333
<a href="https://otiliastr.github.io" target="_blank">★</a>
3434
<a href="https://www.maths.dur.ac.uk/~sxwc62/" target="_blank">★</a>
35-
<a href="http://jessachandler.com/" target="_blank">★</a>
35+
<a href="https://jessachandler.com/" target="_blank">★</a>
3636
<a href="https://mayankm96.github.io/" target="_blank">★</a>
3737
<a href="https://markdean.info/" target="_blank">★</a>
3838
<a href="https://kakodkar.github.io/" target="_blank">★</a>
@@ -218,7 +218,7 @@ If you installed **al-folio** as described above, you can upgrade to the latest
218218
# Assuming the current directory is <your-repo-name>
219219
$ git remote add upstream https://github.com/alshedivat/al-folio.git
220220
$ git fetch upstream
221-
$ git rebase upstream/v0.3.5
221+
$ git rebase v0.3.5
222222
```
223223

224224
If you have extensively customized a previous version, it might be trickier to upgrade.
@@ -351,7 +351,7 @@ For more details on how to create distill-styled posts using `<d-*>` tags, pleas
351351

352352
#### Full support for math & code
353353

354-
**al-folio** supports fast math typesetting through [KaTeX](https://katex.org/) and code syntax highlighting using [GitHub style](https://github.com/jwarby/jekyll-pygments-themes):
354+
**al-folio** supports fast math typesetting through [MathJax](https://www.mathjax.org/) and code syntax highlighting using [GitHub style](https://github.com/jwarby/jekyll-pygments-themes):
355355

356356
<p align="center">
357357
<a href="https://alshedivat.github.io/al-folio/blog/2015/math/" target="_blank"><img src="https://raw.githubusercontent.com/alshedivat/al-folio/master/assets/img/math-screenshot.png" width=400></a>
@@ -403,7 +403,7 @@ For more complex issues/bugs or feature requests, please open an issue using the
403403

404404
## License
405405

406-
The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
406+
The theme is available as open source under the terms of the [MIT License](https://github.com/alshedivat/al-folio/blob/master/LICENSE).
407407

408-
Originally, **al-folio** was based on the [\*folio theme](https://github.com/bogoli/-folio) (published by [Lia Bogoev](http://liabogoev.com) and under the MIT license).
408+
Originally, **al-folio** was based on the [\*folio theme](https://github.com/bogoli/-folio) (published by [Lia Bogoev](https://liabogoev.com) and under the MIT license).
409409
Since then, it got a full re-write of the styles and many additional cool features.

_config.yml

+9-2
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,15 @@ stackoverflow_id: #your stackoverflow id
7575
contact_note: >
7676
You can even add a little note about which of these is the best way to reach you.
7777
78+
# -----------------------------------------------------------------------------
79+
# Analytics and search engine verification
80+
# -----------------------------------------------------------------------------
81+
7882
google_analytics: # your google-analytics ID (format: UA-XXXXXXXXX)
83+
panelbear_analytics: # panelbear analytics site ID (format: XXXXXXXXX)
84+
7985
google_site_verification: # your google-site-verification ID (Google Search Console)
8086
bing_site_verification: # out your bing-site-verification ID (Bing Webmaster)
81-
panelbear_analytics: # panelbear analytics site ID (format: XXXXXXXXX)
8287

8388
# -----------------------------------------------------------------------------
8489
# Blog
@@ -232,8 +237,10 @@ filtered_bibtex_keywords: [abbr, abstract, arxiv, bibtex_show, html, pdf, select
232237
# Responsive WebP Images
233238
# -----------------------------------------------------------------------------
234239

240+
enable_responsive_images: true # enables responsive images for your site (recomended, see https://github.com/alshedivat/al-folio/issues/537)
241+
235242
imagemagick:
236-
enabled: true
243+
enabled: true # make it 'false' if not using responsive images
237244
widths:
238245
- 480
239246
- 800

_includes/figure.html

+14-1
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,25 @@
33
<figure>
44

55
<picture>
6+
{% if site.enable_responsive_images %}
67
{% for i in site.imagemagick.widths -%}
78
<source media="(max-width: {{ i }}px)" srcset="{{ path | relative_url }}-{{ i }}.webp" />
89
{% endfor -%}
10+
{% endif %}
911

1012
<!-- Fallback to the original file -->
11-
<img {% if include.class %}class="{{ include.class }}"{% endif %} src="{{ include.path | relative_url }}" {% if include.alt %}alt="{{ include.alt }}"{% endif %} {% if include.title %}title="{{ include.title }}"{% endif %} {% if include.zoomable %}data-zoomable{% endif %} />
13+
<img
14+
{% if include.class %}class="{{ include.class }}"{% endif %}
15+
src="{{ include.path | relative_url }}"
16+
{% if include.width %}width="{{ include.width }}"{% else %}width="auto"{% endif %}
17+
{% if include.height %}height="{{ include.height }}"{% else %}height="auto"{% endif %}
18+
{% if include.min-width %}min-width="{{ include.min-width }}"{% endif %}
19+
{% if include.min-height %}min-height="{{ include.min-height }}"{% endif %}
20+
{% if include.max-width %}max-width="{{ include.max-width }}"{% endif %}
21+
{% if include.max-height %}height="{{ include.max-height }}"{% endif %}
22+
{% if include.alt %}alt="{{ include.alt }}"{% endif %}
23+
{% if include.title %}title="{{ include.title }}"{% endif %}
24+
{% if include.zoomable %}data-zoomable{% endif %} />
1225

1326
</picture>
1427

_includes/header.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,12 @@
8585
{%- if site.enable_darkmode %}
8686

8787
<!-- Toogle theme mode -->
88-
<div class = "toggle-container">
89-
<a id = "light-toggle">
88+
<li class="toggle-container">
89+
<button id="light-toggle" title="Change theme">
9090
<i class="fas fa-moon"></i>
9191
<i class="fas fa-sun"></i>
92-
</a>
93-
</div>
92+
</button>
93+
</li>
9494
{%- endif %}
9595
</ul>
9696
</div>

_includes/scripts/bootstrap.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<!-- Bootsrap & MDB scripts -->
2-
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@{{ site.popper.version }}/dist/umd/popper.min.js" integrity="{{ site.popper.integrity }}" crossorigin="anonymous"></script>
3-
<script src="https://cdn.jsdelivr.net/npm/bootstrap@{{ site.bootstrap.version }}/dist/js/bootstrap.min.js" integrity="{{ site.bootstrap.integrity.js }}" crossorigin="anonymous"></script>
4-
<script src="https://cdn.jsdelivr.net/npm/mdbootstrap@{{ site.mdb.version }}/js/mdb.min.js" integrity="{{ site.mdb.integrity.js }}" crossorigin="anonymous"></script>
2+
<script async src="https://cdn.jsdelivr.net/npm/@popperjs/core@{{ site.popper.version }}/dist/umd/popper.min.js" integrity="{{ site.popper.integrity }}" crossorigin="anonymous"></script>
3+
<script async src="https://cdn.jsdelivr.net/npm/bootstrap@{{ site.bootstrap.version }}/dist/js/bootstrap.min.js" integrity="{{ site.bootstrap.integrity.js }}" crossorigin="anonymous"></script>
4+
<script async src="https://cdn.jsdelivr.net/npm/mdbootstrap@{{ site.mdb.version }}/js/mdb.min.js" integrity="{{ site.mdb.integrity.js }}" crossorigin="anonymous"></script>

_includes/scripts/misc.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
{%- endif %}
77
{%- if site.enable_medium_zoom %}
88
<!-- Medium Zoom JS -->
9-
<script src="https://cdn.jsdelivr.net/npm/medium-zoom@{{ site.medium_zoom.version }}/dist/medium-zoom.min.js" integrity="{{ site.medium_zoom.integrity }}" crossorigin="anonymous"></script>
10-
<script src="{{ '/assets/js/zoom.js' | relative_url }}"></script>
9+
<script defer src="https://cdn.jsdelivr.net/npm/medium-zoom@{{ site.medium_zoom.version }}/dist/medium-zoom.min.js" integrity="{{ site.medium_zoom.integrity }}" crossorigin="anonymous"></script>
10+
<script defer src="{{ '/assets/js/zoom.js' | relative_url }}"></script>
1111
{%- endif -%}
1212

1313
<!-- Load Common JS -->
14-
<script src="{{ '/assets/js/common.js' | relative_url }}"></script>
14+
<script defer src="{{ '/assets/js/common.js' | relative_url }}"></script>

_layouts/distill.html

+6-8
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@
44
<head>
55
{%- include head.html %}
66

7+
{% include scripts/jquery.html %}
78
{% include scripts/mathjax.html %}
89
<!-- Distill js -->
910
<script src="{{ '/assets/js/distillpub/template.v2.js' | relative_url }}"></script>
1011
<script src="{{ '/assets/js/distillpub/transforms.v2.js' | relative_url }}"></script>
12+
<script src="{{ '/assets/js/distillpub/overrides.js' | relative_url }}"></script>
1113
{% if page._styles %}
1214
<!-- Page/Post style -->
1315
<style type="text/css">
@@ -99,13 +101,9 @@ <h3>Contents</h3>
99101
<!-- Footer -->
100102
{%- include footer.html %}
101103

104+
<d-bibliography src="{{ page.bibliography | prepend: '/assets/bibliography/' | relative_url }}"></d-bibliography>
105+
106+
{% include scripts/bootstrap.html %}
107+
{% include scripts/analytics.html %}
102108
</body>
103-
104-
<d-bibliography src="{{ page.bibliography | prepend: '/assets/bibliography/' | relative_url }}">
105-
</d-bibliography>
106-
107-
{% include scripts/jquery.html %}
108-
{% include scripts/bootstrap.html %}
109-
<script src="{{ '/assets/js/distillpub/overrides.js' | relative_url }}"></script>
110-
111109
</html>

_sass/_base.scss

+10
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,16 @@ blockquote {
233233
}
234234
}
235235

236+
#light-toggle {
237+
padding: 0;
238+
border: 0;
239+
background-color: inherit;
240+
color: var(--global-text-color);
241+
&:hover {
242+
color: var(--global-hover-color);
243+
}
244+
}
245+
236246
// Social (bottom)
237247

238248
.social {

0 commit comments

Comments
 (0)