From 813c1072b2628f8b92a80378587c1fd5706861ed Mon Sep 17 00:00:00 2001 From: Duc Bui Date: Wed, 25 Sep 2024 15:06:46 +0700 Subject: [PATCH] Add preliminary support for ToC sidebar --- README.md | 23 +++------ _config.yml | 4 +- _layouts/default.html | 5 ++ _posts/2024-07-03-the-end-of-whatsapp.md | 2 +- _posts/2024-08-06-kaios-rom.md | 2 +- _sass/custom.scss | 63 ++++++++++++++++++++++++ _sass/syntax-highlighting.scss | 18 ------- assets/css/main.scss | 34 +------------ 8 files changed, 81 insertions(+), 70 deletions(-) create mode 100644 _sass/custom.scss delete mode 100644 _sass/syntax-highlighting.scss diff --git a/README.md b/README.md index 6439027c7..b5c38e171 100644 --- a/README.md +++ b/README.md @@ -131,7 +131,7 @@ -*Source code for B2G, the Linux 4.9 kernel and some libraries licenced under GNU GPLv2, which HMD [publicly released] for the 6300 4G and 8000 4G, can be found under the [`leo-v20` branch] and [`sparkler-v20` branch] of this repository. Do note that the source files do not include proprietary code from some third-party vendors (notably Gaia apps made by KaiOS team itself), and thus [cannot be used to directly compile KaiOS].* +*Source code for B2G, the Linux 4.9 kernel and some libraries licenced under GNU GPLv2, which HMD [publicly released] for the 6300 4G and 8000 4G, can be found in the [`leo-v20` branch] and [`sparkler-v20` branch] of this repository, respectively. Note that the source files do not include proprietary code from some third-party vendors (e.g. Gaia apps by the KaiOS team), and thus [cannot be used to directly compile KaiOS].* Nokia 6300 4G in three colours stacking on top of each other @@ -150,23 +150,23 @@ - [UART debugging testpoint](#uart-debugging-testpoint) - [Sideloading and debugging third-party applications](#sideloading-and-debugging-third-party-applications) - [ROOT: Patching the boot partition (non-US only)](/root) -- [Source code](#source-code) - [External links](#external-links) - +However, if you do a quick search on eBay, Shopee and [other online shopping sites] across North America, Europe and Southeast Asia, you may see hundreds of listings of used 6300 4G in various conditions. -## Don't buy a counterfeit -Here's the funny thing: it's easier to get a genuine version of the original Nokia 6300 than its rebranded version. On eBay, Shopee and [other online shopping sites] across North America, Europe and Southeast Asia, you may see hundreds of listings of used 6300 4G in various conditions. While the listings seem to look identical, many of those are NOT genuine but are knock-offs with [terrible build quality] and user experience. Do note that: -- Brand-new KaiOS phones, even when off the shelves, don't cost less than 2/3 of their retail prices. +While the listings seem to look identical, many of those are NOT genuine but are knock-offs with [terrible build quality] and user experience. + +Brand-new KaiOS phones, even when off the shelves, don't cost less than 2/3 of their retail prices. - HMD has [never sold 2G-only version of any of its KaiOS devices] in its official capacity. All KaiOS phones from HMD are well-equipped with 4G LTE, Wi-Fi and Bluetooth. KaiOS devices are required to have 3G at minimum. - If the seller only uploaded generic photos showing the phone's exterior, ask for some additional photos of the box it came in. A genuine phone's box would show all its features on the fine print, as well as an information sticker indicating its model number (which matches the device specification table above) and targeted regional market. Note: Check the model number on the packaging box with that on another information sticker under the battery, and when dialing `*#0000#` in the operating system! - Look for signs of the phone running KaiOS and not MRE: KaiOS uses the distinct [Open Sans UI font] and vibrant, properly aligned UI elements. KaiStore and related services should be available at all time. It does NOT natively run Opera Mini 4.4 or other Java/MRE apps. *Photos provided by [thurmendes on r/KaiOS Discord server] in June 2023 and various Reddit posts ([second], [third], [fourth]).* -Photo collage of fake 6300 4G +Photo collage of fake 6300 4G - _Looking for the guide to root the 6300 4G? This section has now been moved to [ROOT: Patching the boot partition (non-US only)]._ ## External links diff --git a/_config.yml b/_config.yml index 0186f0aa9..dfad780a0 100644 --- a/_config.yml +++ b/_config.yml @@ -1,8 +1,8 @@ title: Nokia 6300 4G (nokia-leo) author: Bùi Minh Đức # baseurl: "https://bmndc.github.io/nokia-leo/" -description: > - Archive of guides, source code and firmware backups for Nokia 6300 4G. +# description: > +# In late 2020, following the successful relaunch of the Nokia-branded retros 2720 Flip and 800 Tough, HMD Global (then Nokia Mobile) quietly introduced the new Nokia 6300 4G to the world. It retains the classic candybar look of the original 6300, while packing features such as 4G LTE and Wi-Fi into a pocket-friendly design. At €49/$69.99, it was one of the most affordable KaiOS phones in the company's lineup, and also received criticisms from users regarding its performance and keypad. # Favicons for other platforms are optional, but you can generate them at https://realfavicongenerator.net/ # favicon: "assets/favicon.ico" diff --git a/_layouts/default.html b/_layouts/default.html index b1e9166a1..77a580198 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -6,6 +6,11 @@ + +
{{ content }} diff --git a/_posts/2024-07-03-the-end-of-whatsapp.md b/_posts/2024-07-03-the-end-of-whatsapp.md index 33f8b3f0e..b50e2ed95 100644 --- a/_posts/2024-07-03-the-end-of-whatsapp.md +++ b/_posts/2024-07-03-the-end-of-whatsapp.md @@ -1,8 +1,8 @@ --- layout: post category: news -title: The end of WhatsApp on KaiOS as we know it --- +# The end of WhatsApp on KaiOS as we know it **TL;DR** **Did WhatsApp disappear from KaiStore?** diff --git a/_posts/2024-08-06-kaios-rom.md b/_posts/2024-08-06-kaios-rom.md index d4fd9cf0b..65d330af0 100644 --- a/_posts/2024-08-06-kaios-rom.md +++ b/_posts/2024-08-06-kaios-rom.md @@ -1,8 +1,8 @@ --- layout: post category: news -title: Can I put KaiOS on other devices? --- +# Can I put KaiOS on other devices? Short answer: we don't have enough publicly available components to create an exact copy of KaiOS, but developing a fork is doable. KaiOS is considered a proprietary product, which means only KaiOS Technologies, its shareholders, and business partners can access, modify, and build on top of the codebase. It's their choice for the business model and that [something we cannot alter]. But as KaiOS is derived from Firefox OS, parts of it, like Boot2Gecko, are under [Mozilla Public Licence 2.0], and KaiOS Technologies has no choice but to open-source the original work by the Mozilla team, along with any modifications made to it. Much of the operating system, like the Gaia apps, is still missing, making it impossible to build or port an exact copy of KaiOS on our own. diff --git a/_sass/custom.scss b/_sass/custom.scss new file mode 100644 index 000000000..0be260e24 --- /dev/null +++ b/_sass/custom.scss @@ -0,0 +1,63 @@ +// Ruby language highlighting +.language-diff .gd { + background-color: rgba(255, 127, 80, 0.25); +} + +.language-diff .gi { + background-color: rgba(0, 128, 128, 0.3); +} + +.language-console .go { + color: darkblue; +} + +@media (prefers-color-scheme: dark) { + .language-console .go { + color: lightskyblue; + } +} + +// #post-list li { +// // End each post item with an ellipsis rather than wrapping its entire title +// width: 100%; +// text-overflow: ellipsis; +// white-space: nowrap; // Don't do new lines after ellipsis +// overflow: hidden; // Don't show anything after ellipsis +// } + +.toc { + position: fixed; + top: 6rem; + left: 1.5rem; + width: 24rem; +} +@media (max-width: 1900px) { + .toc { + display: none; + visibility: hidden; + } +} + +table { + margin: 1rem 0; +} +table ul { + margin: 0; + padding-left: 1rem; +} +th[scope="row"] { + text-align: left; + font-weight: normal; +} + +.leo { + margin: 0 0 1rem 1rem; +} + +@media (max-width: 800px) { + .leo { + // Undo float: right on header image on small screens + float: none; + margin: 0 auto; + } +} \ No newline at end of file diff --git a/_sass/syntax-highlighting.scss b/_sass/syntax-highlighting.scss deleted file mode 100644 index 072e5d033..000000000 --- a/_sass/syntax-highlighting.scss +++ /dev/null @@ -1,18 +0,0 @@ -// Ruby language highlighting -.language-diff .gd { - background-color: rgba(255, 127, 80, 0.25); -} - -.language-diff .gi { - background-color: rgba(0, 128, 128, 0.3); -} - -.language-console .go { - color: darkblue; -} - -@media (prefers-color-scheme: dark) { - .language-console .go { - color: lightskyblue; - } -} \ No newline at end of file diff --git a/assets/css/main.scss b/assets/css/main.scss index 0903ccd03..f41064b10 100644 --- a/assets/css/main.scss +++ b/assets/css/main.scss @@ -1,36 +1,4 @@ --- --- @import "no-style-please"; -@import "syntax-highlighting"; - -// #post-list li { -// // End each post item with an ellipsis rather than wrapping its entire title -// width: 100%; -// text-overflow: ellipsis; -// white-space: nowrap; // Don't do new lines after ellipsis -// overflow: hidden; // Don't show anything after ellipsis -// } - -table { - margin: 1rem 0; -} -table ul { - margin: 0; - padding-left: 1rem; -} -th[scope="row"] { - text-align: left; - font-weight: normal; -} - -.leo { - margin: 0 0 1rem 1rem; -} - -@media (max-width: 800px) { - .leo { - // Undo float: right on header image on small screens - float: none; - margin: 0 auto; - } -} \ No newline at end of file +@import "custom"; \ No newline at end of file