Commit graph

326 commits

Author SHA1 Message Date
Cotes Chung
2acf14ecf0 Replace Disqus lazy loading plugin with native JS 2021-09-14 20:45:17 +08:00
Cotes Chung
5e9a7b319e Add clipboard JS 2021-09-11 00:30:21 +08:00
Cotes Chung
2537283beb Add clipboard button to code block 2021-09-11 00:30:21 +08:00
Cotes Chung
7dc7a7efc8 Add code block header 2021-09-11 00:30:21 +08:00
Cotes Chung
1a94b1889f Upgrade simple-jekyll-search from 1.7.3 to 1.10.0 2021-09-04 21:23:09 +08:00
Cotes Chung
6e0afcf9e8 Improve recognition of CJK 2021-08-26 01:26:16 +08:00
Maulana Kurniawan
b80d95dcdd Add Indonesian translation for search: no results. (#394)
Signed-off-by: maulanakurniawann <maulanakurniawan@outlook.co.id>
2021-08-09 12:46:23 +08:00
Cotes Chung
72ba1f7849 Fix tabs & improve topbar items 2021-08-03 22:55:35 +08:00
Cotes Chung
0213331a16 Improve the way to set the default value of locales 2021-08-01 22:04:11 +08:00
Cotes Chung
780af9ac5f Remove unused variable on HTML & JS 2021-08-01 21:49:44 +08:00
Cotes Chung
57e8c6e594 Drop site config options content_lang & outdated 2021-07-30 15:55:59 +08:00
Cotes Chung
a83e4c1b30 Optimize JS loading priority 2021-07-21 23:50:16 +08:00
Cotes Chung
0b29c0321f Add layout localization 2021-07-21 23:50:16 +08:00
Cotes Chung
f56852a700 Fix breadcrumb for pagination 2021-07-20 02:08:28 +08:00
Cotes Chung
d52fa88337 Prevent the post date from shifting when loading 2021-07-11 17:04:13 +08:00
Cotes Chung
5f1e6e9350 Create the code language badge by Liquid
It prevents the language badges from flashing
2021-07-04 22:02:52 +08:00
Cotes Chung
fd97067ec3 Optimize the JS loading priorities 2021-07-03 05:11:11 +08:00
Cotes Chung
9359d6ef11 Ignore image links in html-proofer test 2021-07-02 17:14:40 +08:00
Cotes Chung
6d1d440c00 Preventing image reflow (fix #351) 2021-07-02 17:14:40 +08:00
Cotes Chung
eb247b8886 Improve the paginator design for the mobile screens (#331) 2021-05-19 11:09:52 +08:00
Cotes Chung
6d254af55f Simplify the favicons 2021-04-29 19:58:37 +08:00
Cotes Chung
84bb4d0c4b Add image popup effect 2021-04-24 16:32:56 +08:00
Cotes Chung
6a45d7ccd1 Remove SRI of bootstrap and font-awesome css
Sometimes it causes the fetch event to fail after the PWA cache key is updated:

```
The FetchEvent for "<url_from_CDN>" resulted in a network error response: an "opaque" response was used for a request whose type is not no-cors
```
2021-04-20 04:22:28 +08:00
Cotes Chung
3f2d400f16 Improve the selector for lazy loading images (fix #313)
When `page.dynamic_title` is set to false, the image will not be loaded
2021-04-13 23:29:24 +08:00
Cotes Chung
826b7dca1a Turn off autocompletion of input form 2021-04-11 14:13:30 +08:00
Cotes Chung
11bcd7027d Fix dns links in head 2021-04-06 23:16:02 +08:00
Cotes Chung
4a0242e496 Simplify the PV config options
- Remove options `site.google_analytics.pv.enabled` and `site.google_analytics.pv.proxy_url`
- Rename options `site.google_analytics.pv.cache` to `site.google_analytics.pv.cache_path`
2021-04-06 23:15:36 +08:00
Cotes Chung
48e4c7e6d3 Fix the PV fetching failed when local cache is disabled
also improve the PV report logic
2021-04-06 02:32:53 +08:00
Cotes Chung
bff97df3b5 Fix the MathJax config was lost in jekyll-compress-html 2021-04-02 21:14:43 +08:00
Cotes Chung
88aa81dfe5 Revert "Restore the year of first publication in footer"
This reverts commit 338eddb454.
2021-03-20 22:41:35 +08:00
Cotes Chung
d162167580 Support TeX and LaTeX math delimiters (#243) 2021-03-09 15:52:56 +08:00
Cotes Chung
d2bb423220 Change the order of post meta & improve timeago 2021-03-03 18:32:06 +08:00
Cotes Chung
338eddb454 Restore the year of first publication in footer 2021-02-28 05:42:24 +08:00
Cotes Chung
3573ccb7a3 Update the prompt of comments 2021-02-26 00:50:42 +08:00
Cotes Chung
5669f792a7 Fix search results slow scrolling (#273)
also:
- improve its responsive design
- fix the js path in gulp
2021-02-05 01:24:15 +08:00
Cotes Chung
f864b5c324 Hide empty categries/tags in search (#273) 2021-02-05 00:51:50 +08:00
Cotes Chung
94b99350fc Restore the prompt in the page nav button in the latest/oldest articles 2021-02-02 21:56:17 +08:00
Cotes Chung
6dc9cdfa25 Reduce the font size of the Disqus prompt 2021-02-02 21:56:17 +08:00
Cotes Chung
413a86277b Generate the breadcrumb by Liquid
also subtracted '/tabs/' from the tabs path
2021-01-31 22:06:10 +08:00
Cotes Chung
0b4e40bcdf Fix footer links 2021-01-27 02:51:50 +08:00
Cotes Chung
893db51ff0 Improve the copyrights of the assets 2021-01-26 20:24:47 +08:00
Cotes Chung
cbb3bd4be5 Set default values for site variables
good for gem-based first run
2021-01-26 20:24:47 +08:00
Cotes Chung
da9f7b8218 Process JS files with gulp 2021-01-25 06:43:02 +08:00
Cotes Chung
b7266aceac Contact theme styles 2021-01-25 02:44:35 +08:00
Cotes Chung
75e9feb687 Optimize url filters 2021-01-19 00:01:01 +08:00
Cotes Chung
6490b0fcbd Fix avatar url when site.baseurl exists (#253) 2021-01-17 21:47:11 +08:00
Cotes Chung
6e6633c2fc Add image CDN support & improve image lazy loading 2021-01-09 23:05:55 +08:00
Cotes Chung
c381353f86 Use liquid to determine whether to render ToC 2020-12-28 02:30:32 +08:00
Cotes Chung
505da84a26 Fix the position of the table scroll bar 2020-12-26 00:41:06 +08:00
Cotes Chung
ef0c9ce770 Simplify sidebar style
Avoid element shifting when rendering
2020-12-26 00:41:06 +08:00
Cotes Chung
b9ffe15ffb Feature: Add reading time to posts 2020-12-17 15:30:49 +08:00
Cotes Chung
aba3d25d7a Always load browser default checkbox 2020-12-15 00:39:50 +08:00
Cotes Chung
b8ee5a7b0c Fix underscores in the links of tags/categories (#199) 2020-12-11 23:05:36 +08:00
Cotes Chung
289ce1263d Fix detection of mermaid objects 2020-12-11 02:20:18 +08:00
Cotes Chung
63f57fbc12 Delay GA loading 2020-12-10 23:57:48 +08:00
Cotes Chung
cdaa79cf80 Improve JS loading sequence 2020-12-10 20:13:03 +08:00
Cotes Chung
4d2f13c0d7 Integrate with mermaid-js 2020-12-10 05:00:01 +08:00
Cotes Chung
bb13b52d44 Simplify theme-mode config 2020-12-07 01:14:40 +08:00
Cotes Chung
5d6014ecee Regular improvement for liquid code 2020-12-05 02:44:28 +08:00
Cotes Chung
13aca77275 Change mode-toggle icon 2020-12-05 01:40:01 +08:00
Cotes Chung
e27825d3eb Improve JS/CSS selector
Separate layout from tabs, and more friendly to tabs rename (#187)
2020-12-04 14:18:25 +08:00
Cotes Chung
479bd72c9d Fix the 404 title on mobile devices 2020-11-29 12:25:46 +08:00
Cotes Chung
83bfd32807 Improve the bump version tool 2020-11-27 02:57:02 +08:00
Cotes Chung
4ea320b250 Generate sitemap by plugin 2020-11-26 23:58:11 +08:00
Cotes Chung
4702244ae8 Fix the relative links on sidebar tabs. 2020-11-23 02:46:04 +08:00
Cotes Chung
270d3ba499 Use collections to improve the tabs 2020-11-22 04:24:09 +08:00
Cotes Chung
10bc44367a Add hook to generate the lastmod of posts 2020-11-19 21:11:00 +08:00
Cotes Chung
d7f351b143 Upgrade jQuery & Bootstrap (js) to latest version.
Notes: Bootstrap CSS remains at 4.0.0
2020-10-28 04:18:54 +08:00
Cotes Chung
7d128769f6 Avoid GA snippet blocking HTML parsing. 2020-10-27 21:20:06 +08:00
Cotes Chung
8d4c1deb15 Improve web accessibility
- Add associated label to form elements.
- Add discernible name to links.
2020-10-27 16:42:08 +08:00
Cotes Chung
57a4bfdb82 Replace heading elements of panel with span.
Fix the heading levels audit.
2020-10-27 05:41:36 +08:00
Cotes Chung
5741aa4e18 Fix the security of cross-origin destinations link. 2020-10-27 05:32:33 +08:00
Cotes Chung
4f1735aad6 Add version tag on <head>. 2020-10-26 02:24:32 +08:00
Cotes Chung
38b87cfdd7 Fix the numeric sort of trending tags size. 2020-10-24 22:20:59 +08:00
Wei Wang
bf8996fb8b Fix typo (#159) 2020-10-23 15:42:43 +08:00
Marnick Vandecauter
46a8efb38a Improve email javascript in sidebar (#155)
This will appear in Firefox and Safari.

Remediates the issue describe here: https://stackoverflow.com/questions/21461589/javascript-mailto-using-window-open#32675594
2020-10-19 00:10:27 +08:00
Cotes Chung
3c2675c4a1 Upgrade GA tag (analytics.js) to the latest tag (gtag.js) 2020-10-12 06:19:11 +08:00
Cotes Chung
a8f8bbaa1c Fix the unsupported code snippets in rouge. (#101) 2020-08-15 21:10:54 +08:00
Cotes Chung
188d8ffc69 Resume the min-width of the tables.
It was lost by mistake while fixing #85
2020-08-15 01:01:27 +08:00
Cotes Chung
112091cbf6 Improved the posts layout. 2020-07-30 05:12:36 +08:00
Cotes Chung
aa23becd14 Split post date format code snippets.
Code improvement
2020-07-24 04:15:38 +08:00
Cotes Chung
209058b84a Code improvement.
Passing parameters to includes
2020-07-22 23:02:11 +08:00
Cotes Chung
22115f3797 Optimized update list & fixed sw cache list. 2020-07-16 21:00:19 +08:00
Cotes Chung
9f3619e54a Fixed last-mod display for non-English named posts. 2020-07-16 21:00:19 +08:00
Cotes Chung
c0ba181246 Improved the PV fetching.
Discard some of the old permalink PV records.
2020-07-14 03:24:25 +08:00
Cotes Chung
46c2cfe64e Improved the page recognition.
Useful for label localization
2020-06-30 17:39:14 +08:00
Cotes Chung
b9b8dd8cf1 Beautified the comment block. 2020-06-24 20:47:01 +08:00
Cotes Chung
e87ef0d40e Fixed the PV cache. 2020-06-24 02:57:02 +08:00
Cotes Chung
618ae9dcbc Optimized the TOC position. 2020-06-11 22:01:15 +08:00
Cotes Chung
ba47cc0509 Optimized responsive layout. 2020-06-07 21:22:24 +08:00
Cotes Chung
eff2a24f4c Enhanced the related posts.
If the number of related posts is less than 3, use the latest posts to supplement.
2020-06-05 06:14:40 +08:00
Cotes Chung
3caafbd50d Unified file naming style. 2020-06-05 06:14:40 +08:00
Cotes Chung
0bb9c47cf9 Hide broken image of avatar. 2020-06-02 16:18:40 +08:00
Cotes Chung
b28724b4d4 Hide the empty trending tags from panel. 2020-06-02 02:34:24 +08:00
Cotes Chung
75c57d1725 Simplified the post JS file. 2020-06-02 02:34:24 +08:00
Cotes Chung
02a269910f Optimized sidebar icons location.
screen width >= 1650px
2020-06-01 16:38:31 +08:00
Cotes Chung
a2deea6537 Split the CSS selection from head tag. 2020-05-30 17:48:16 +08:00
Cotes Chung
1a2767ca24 Combine local JS.
’yui-compressor’ is no longer used.
2020-05-30 17:48:16 +08:00
Cotes Chung
cfb67a1cb9 Fixed image lazy loading. 2020-05-29 06:18:53 +08:00
Cotes Chung
171faafc67 Unify local links to posts (#65). 2020-05-29 06:18:53 +08:00
Cotes Chung
582ea30459 Support the mathematical expressions (#55). 2020-05-29 06:18:53 +08:00
Cotes Chung
064cefd9ff Combine CDN resources. 2020-05-26 23:25:57 +08:00
Cotes Chung
7382eaa953 Feature: make contact options configurable (#58, #59). 2020-05-23 15:58:21 +08:00
Cotes Chung
6d38f643ae Disable PWA at local. 2020-05-22 20:25:52 +08:00
Cotes Chung
08d4ce77e2 Fixed HTML tag. 2020-05-14 22:00:04 +08:00
Cotes Chung
8a46286373 Resume the trending tags on search results.
for mobile views
2020-05-13 21:13:33 +08:00
Cotes Chung
d8e45694bd New feature: PWA 2020-05-10 04:02:52 +08:00
Cotes Chung
b64598358d Improved compress tool & Updated the Footer. 2020-05-09 01:15:33 +08:00
Cotes Chung
ac9dc4d9ac Remove line number from post snippet (#51).
Involves:
- Home page
- relate posts
- search results
- feed
2020-05-09 01:15:33 +08:00
Cotes Chung
9c3d3fdeed Improved loading performance by merging CSS files. 2020-05-09 01:15:33 +08:00
Cotes Chung
e561dfb9be Simplified the lazy loading of post images. 2020-05-01 02:18:04 +08:00
Cotes Chung
7cea137bf4 Fixed special characters in URL. 2020-04-24 14:49:45 +08:00
Cotes Chung
8c21272048 Swap the mode toggle icon. 2020-04-23 22:11:50 +08:00
Cotes Chung
99aadd61c1 Replace python with bash. 2020-04-23 22:11:50 +08:00
Cotes Chung
b393e12e30 Optimized typography. 2020-04-09 03:08:56 +08:00
Cotes Chung
caf8dec568 Update the post meta design. 2020-04-08 02:12:25 +08:00
Cotes Chung
230a4f55a4 Fetching popperjs synchronously 2020-04-04 01:03:00 +08:00
Cotes Chung
ad992db75f Improved theme mode switching logic. 2020-04-04 01:03:00 +08:00
Cotes Chung
1ce1455ce2 Improved the PV fetching experience. 2020-04-04 01:03:00 +08:00
Cotes Chung
01fe877ebb Optimize the tooltip position of sharing icons. 2020-03-01 05:03:40 +08:00
Cotes Chung
0425b1058f Optimize the typography. 2020-03-01 05:03:40 +08:00
Cotes Chung
b3c493a6de Improve the way to define and use date-format. 2020-02-22 07:23:37 +08:00
Cotes Chung
4661ec95b9 Split paginator from Home layout. 2020-02-22 07:09:09 +08:00
Cotes Chung
021311974f Replace the non-link elements.
Good for CSP.
2020-02-22 03:15:26 +08:00
Cotes Chung
8b059432d3 Improved the responsive of sidebar bottom. 2020-02-21 04:48:07 +08:00
Cotes Chung
9935f76530 Added more config for license. 2020-02-21 04:48:07 +08:00
Cotes Chung
64125e6e42 Optimized the JS import sequence. 2020-02-21 04:48:07 +08:00
Cotes Chung
a82d3647da Splited the data of navigation tabs. 2020-02-21 04:48:06 +08:00
Cotes Chung
32d838fede Prettified the mode toggle switch. 2020-02-21 04:48:06 +08:00
Cotes Chung
840eab9566 Feature: Added post sharing options.
Also added a license statement at the bottom of the posts.
2020-02-21 04:48:06 +08:00
Cotes Chung
2ad56cf249 Redesigned Footer. 2020-02-21 04:48:06 +08:00
Cotes Chung
79c7a5101f Feature: Make theme colors configurable. 2020-02-15 16:36:19 +08:00
Cotes Chung
b43c162903 Updated the footer text. 2020-02-15 16:36:19 +08:00
Cotes Chung
65040ddd90 Optimized the dark-mode toggle 2020-02-15 16:36:19 +08:00
Cotes Chung
a53afb912f Image SEO optimization. 2020-02-15 16:36:19 +08:00
Cotes Chung
f3a9b4b293 Rename CSS class. 2020-02-13 22:31:28 +08:00
Cotes Chung
a4435a45ec Imported the dark-mode toggle. 2020-02-13 22:31:28 +08:00
Cotes Chung
58af2fefce Finished the rest dark mode toggle job. 2020-02-13 22:24:31 +08:00
Cotes Chung
0953cf123c Improved tab highlighting experience. 2020-02-09 02:57:45 +08:00
Cotes Chung
a0179b2efe Fixed the link of posts' nav-button. 2020-02-04 04:55:09 +08:00
Cotes Chung
c258bbc8d9 Update label in posts. 2020-02-04 04:55:09 +08:00
Cotes Chung
b09f5127ad Optimized the resource prioritization. 2020-02-04 04:55:09 +08:00
Cotes Chung
6cef0829a8 Updated seo-tag settings.
Although `tagline` hasn't been released yet.
2020-01-14 02:57:31 +08:00
Cotes Chung
53e01c1778 Code optimization. 2020-01-14 02:57:31 +08:00
Cotes Chung
501036cafa Updated footer. 2020-01-14 02:57:31 +08:00
Cotes Chung
ff9663f376 Fixed related URL. 2020-01-14 02:57:31 +08:00
Cotes Chung
34836f7703 Beautified sidebar in x-large screens.
screen width >= 1650px
2020-01-14 02:57:31 +08:00
Cotes Chung
2386fe5bd8 Another super feature: auto dark mode! 2020-01-14 02:57:31 +08:00
Cotes Chung
2ad4dc1b4e Display title in post's page button. 2020-01-14 02:57:31 +08:00
Cotes Chung
8591e921e4 Added more project info in files. 2020-01-14 02:57:31 +08:00
Cotes Chung
fa43f92370 Beautified the hover of related post. 2020-01-14 02:57:31 +08:00
Cotes Chung
5bb810875b Moved search cache. 2020-01-02 08:45:51 +08:00
Cotes Chung
77b2b5be04 Code optimization. 2020-01-02 02:29:13 +08:00
Cotes Chung
3248343c22 A super huge improvement in search.
- Added a cleanup button within input form.
- Optimized TopBar responsive effect(for search layout).
- Redesign the search results layout.
2020-01-02 02:29:13 +08:00
Jatin Sanghvi
a819ac95eb Allow special characters in categories and tags 2019-12-28 00:59:16 -08:00
Cotes Chung
77a47c4b62 Fixed some HTML tags. 2019-12-24 00:37:26 +08:00
Cotes Chung
1f8bfdf257 Make configuration more flexible. 2019-12-19 04:08:40 +08:00
Cotes Chung
0f59cb5ddf Fix local jQuery loading. 2019-12-16 00:15:58 +08:00
Cotes Chung
924cfa7426 Move lozad. 2019-12-02 03:07:48 +08:00
Cotes Chung
ebbd818223 Split the css importing.
CRP optimization.
2019-12-02 03:07:48 +08:00
Cotes Chung
7f3ea0d79b Move file. 2019-12-02 03:05:23 +08:00
Cotes Chung
bd5e8be215 Hide ToC when scrolling to bottom. 2019-12-02 03:05:23 +08:00
Cotes Chung
bec924ed4c Optimize performance. 2019-12-02 03:05:23 +08:00
Cotes Chung
75b825cdde Add animation to ToC. 2019-11-24 23:54:27 +08:00
Cotes Chung
9e67a9dc22 Lazy load the image of posts. 2019-11-24 17:38:41 +08:00
Cotes Chung
39b4f29efb Fix related posts' date. 2019-11-21 22:43:01 +08:00
Cotes Chung
6a65ce2db2 Split the CSS to save load time. 2019-11-20 01:50:55 +08:00
Cotes Chung
2208b43bae Redesign sidebar for xlarge screens.
Screen width greater than FHD.
2019-11-20 01:50:55 +08:00
Cotes Chung
91c7fbe30a Simplified trending tags structure. 2019-11-20 01:50:55 +08:00
Cotes Chung
15a2a98e05 Improved post loading speed.
Also improved the layout for Home page.
2019-11-20 01:50:55 +08:00
Cotes Chung
94cb59fc27 Beautified the relate-posts card. 2019-11-20 01:50:55 +08:00
Cotes Chung
3b102ee4c6 Improved the Recent-Update list. 2019-11-20 01:50:55 +08:00
Cotes Chung
094b3da714 Add Related-Posts in the bottom of each posts. 2019-11-20 01:50:55 +08:00
Cotes Chung
4287b9e612 Renamed variable in Config. 2019-11-20 01:50:55 +08:00
Cotes Chung
a589831812 Improved the compatibility in Firefox. 2019-11-20 01:50:55 +08:00
Cotes Chung
b845c829f6 Import the framework. 2019-11-18 01:08:03 +08:00