跳转至

2024

2024网站更新记录

2024-05-15

  • 优化网站流畅度(玄学)
  • 全站引入自动在新标签页打开,仓库地址:mkdocs-open-in-new-tab
Show source code

Look at this source open_in_new_tab.js:

// Description: Open external links in a new tab and PDF links in a new tab
// Source: https://jekyllcodex.org/without-plugin/new-window-fix/

//open external links in a new window
function external_new_window() {
    for(let c = document.getElementsByTagName("a"), a = 0;a < c.length;a++) {
        let b = c[a];
        if(b.getAttribute("href") && b.hostname !== location.hostname) {
            b.target = "_blank";
            b.rel = "noopener";
        }
    }
}
//open PDF links in a new window
function pdf_new_window ()
{
    if (!document.getElementsByTagName) {
      return false;
    }
    let links = document.getElementsByTagName("a");
    for (let eleLink=0; eleLink < links.length; eleLink ++) {
    if ((links[eleLink].href.indexOf('.pdf') !== -1)||(links[eleLink].href.indexOf('.doc') !== -1)||(links[eleLink].href.indexOf('.docx') !== -1)) {
        links[eleLink].onclick =
        function() {
            window.open(this.href);
            return false;
        }
    }
    }
}

function apply_rules() {
    external_new_window();
    pdf_new_window();
}

if (typeof document$ !== "undefined") {
    // compatibility with mkdocs-material's instant loading feature
    // based on code from https://github.com/timvink/mkdocs-charts-plugin
    // Copyright (c) 2021 Tim Vink - MIT License
    // fixes [Issue #2](https://github.com/JakubAndrysek/mkdocs-open-in-new-tab/issues/2)
    document$.subscribe(function() {
        apply_rules();
        console.log("Applying rules");
    })
}

2024-05-05

2024-04-22

  • 优化网站流畅度(玄学)
  • 看了更多的猫咪
  • 优化布局
  • 新增圆角化设计教程

2024-04-22

  • 优化网站流畅度(玄学)
  • 网站全面贴合圆角设计,非常好看

2024-04-12

  • 优化网站流畅度(玄学)
  • 重写主页index.md,更加美观,贴合圆角设计

2024-04-12

  • 优化网站流畅度(玄学)
  • 感谢W1ndys提出的使用软编码配置友链界面,使得友链添加更加规范化
  • 引入网页翻译实验性功能(详见右上角翻译按钮)

2024-04-06

  • 优化网站流畅度(玄学)
  • 主页引入天气组件,搜索框/按钮圆角化
  • 删除冗余JS/CSS文件
  • 感谢Anshul Raj VermaDiscussions#7上提出的网站优化建议

2024-04-02

  • 优化网站流畅度(玄学)
  • 在mkdocs.yml的plugins模块中引入!ENV [CI, false]语句,极大缩短mkdocs serve静态预览时间(3-5s)
  • 本Mkdocs-Wcowin主题得到以下两位的使用:

2024-03-14

  • 优化网站流畅度(玄学)
  • 3月14日(March 14th)是公历一年中的第73天(闰年第74天),离全年的结束还有292天。是国际圆周率日。其中历史上发生的大事件有阿尔伯特·爱因斯坦的出生。 [10]卡尔·马克思、斯蒂芬·威廉·霍金的逝世。

2024-02-20

  • 优化页脚“本站访问量和萌ICP备20230640号”显示方式
  • 优化网站流畅度(玄学)

2024-02-02

  • 网站图片全部迁移至smms(更加稳定流畅)
  • 着手改写MKdocs教程,使得条理更加清晰
  • 优化网站流畅度(玄学)
  • 删除大量繁琐无用代码

2024-02-01

  • 改进网页代码显示效果
  • 优化网站流畅度(玄学)

2024-01-30

  • 友链数量达到16位
  • 修复了一些bugs
  • 本网站已经被百度/谷歌收录(确信,使用百度/谷歌搜索Wcowin字样即可)
  • 优化网站流畅度(玄学)

2024-01-05

  • 优化网站流畅度(玄学)
  • 引入git-revision-date-localized-plugin插件,以便记录文档创建和最后一次修改时间
  • 和小王一起看了更多的猫咪