summaryrefslogtreecommitdiff
path: root/layouts
AgeCommit message (Collapse)Author
2025-05-23feat: list external links rankingEltrac
also move python scripts to one folder
2025-05-23feat: add graph link to postnavEltrac
2025-05-23chore: remove unused postHeaderContent hookEltrac
2025-05-23feat: post endnotesEltrac
2025-05-21fix: showing unwanted image in RSS feedEltrac
The original method of adding an "external" icon is to append an `<img>` tag to `<a>` tags, but if the reader is viewing the content from a reader where the CSS style does not work, the image is displayed in an unwanted way. The workaround is to remove the `<img>` tag and implement this feature with only CSS pseudo-element.
2025-05-21feat: replace heatmap with wordcount bar chartEltrac
2025-05-21chore(umami): reset umami websiteEltrac
2025-05-20feat: change Related Posts to Now Read ThisEltrac
1. Fewer items (only one), less distraction 2. Show summary 3. Encourage readers to read more with a imperative sentence
2025-05-20remove: post bottom navigationEltrac
According to the website's analytics, the navigation has been used merely 6 times in the past week. And the total pageview is 2.33k. So it is safe to say that the majority of the website's visitors does not need this ugly navigation.
2025-05-17feat: link title image to indexEltrac
2025-05-17fix: invalid rss linkEltrac
2025-05-17refactor: put global search elements in one containerEltrac
to keep DOM clean and tidy
2025-05-17chore: remove data-src entirelyEltrac
2025-05-17perf: remove unused flexbox stylesEltrac
2025-05-17perf: remove lazyloading script and fully rely on the native solutionEltrac
2025-05-17feat: add an icon indicating external linkEltrac
2025-05-17perf: remove unnecessary fancybox helper scriptEltrac
2025-05-16feat: better index pageEltrac
1. add section link in post list item 2. remove icons indicating section 3. styles
2025-05-16feat: remove unnecessary elements in featured pageEltrac
1. remove unwanted bottom margin of featured page description 2. remove unnecessary category link in featured page
2025-05-16perf: distribute header image and other png with CDNEltrac
2025-05-16feat: more info on featured post sectionEltrac
1. add description about this page 2. show tags after date 3. show year
2025-05-16fix: featured post nav link never activeEltrac
2025-05-16feat: add featured post sectionEltrac
2025-05-16refactor: rewrite TOC css with scssEltrac
2025-05-16perf: replace tocbot with statically generated tocEltrac
Generate TOC with Hugo's built-in {{ .TableOfContents }} and add minimal script to implement collapsible list and active styles. Encapsulate TOC as a component where all JavaSript and CSS is in one place with HTML. Configure markup.
2025-05-14fix: date format in post section pageEltrac
2025-05-12fix: showing title when a section is emptyEltrac
2025-05-12feat: automatically add target="_blank" to external linksEltrac
2025-05-11Merge branch 'master' of https://github.com/BigCoke233/geek-death-projectEltrac
2025-05-11perf: load only web font needed for certain languageEltrac
2025-05-10fix: 404 image filter overridingEltrac
2025-05-09fix: 404 image in dark schemeEltrac
2025-05-09feat: 404 pageEltrac
2025-05-09feat: show related books in term pageEltrac
2025-05-09chore: remove goodbook style in recommendation sectionEltrac
2025-05-09perf: remove placeholder image to reduce RPSEltrac
2025-05-09feat: new library pageEltrac
- separate each year's book list - recommended books section
2025-05-09fix: gallery shortcode not rendering inner markdown imageEltrac
2025-05-09feat: render markdown image with necessary contextEltrac
By context I mean necessary attributes, parents and brothers. Now I can use bare ![]() instead of img shortcode to insert images with fancybox, lazyloading and caption. Recommended format: ```markdown ![alt text](image_source "caption text") ```
2025-05-09refactor: language switch link with dictEltrac
also add umami event data
2025-05-09refactor: move article series display to taxonomy pageEltrac
2025-05-09feat: add author informationEltrac
2025-05-09chore: clean head tagEltrac
According to getoutofmyhead.dev, I removed unnecessary meta tags and link tags, and also made other improvements. - remove twitter cards - remove x-ua-compatible tag - remove favicon and apple-touch-icon touch (only related image files presented in root directory will work just fine) - use one single link tag to import Google fonts - move umami code to a partial - simplify link preview tags by using variables instead of multiple if checks
2025-05-06fix: external link icon visibility in dark schemeEltrac
2025-05-06remove: site word count in footerEltrac
2025-05-06feat: add internal link list to footerEltrac
2025-05-06docs: move rss instructions to a single pageEltrac
Cards are for short knowledge-oriented content. RSS instructions is exclusive to the site and may change over time, hence not a good fit to put in a card.
2025-05-06fix: avoid showing thumbnail in sourceEltrac
The old lazy-loading solution requires an extra data-src attribute where the real image url is set. The script will replace src with data-src value when img tag is observed. But this caused a problem: Third-party applications like RSS readers do not load script, hence the image source is always the placeholder (a blurry version of the real image). Considering the fact that a placeholder image does not improve user experience that well, I removed it.
2025-04-30feat: responsive tableEltrac
- allow horizontal scroll when not having enough space on X axis - maximun width for each cell
2025-04-30chore: deal with image lazyloadingEltrac
- lazyload post banner image - lazyload book cover - tidy up lazyload attributes in image shortcode