function format(tpl) { var index = 1, items = arguments; return (tpl || '').replace(/{(\w*)}/g, function(match, p1) { return items[index++] || p1 || match; }); } function loadCSS(url, callback) { return $('') .attr({ href: url }) .on('load', callback) .appendTo(document.head); } function lazyGist(element) { var $btn = $(element); var $self = $(element).parent(); var $link = $self.find('a'); $btn.prop('disabled', 'disabled').text('Loading...'); $.getJSON(format('{}.json?callback=?', $link.prop('href').replace($link.prop('hash'), ''))) .done(function(data) { loadCSS(data.stylesheet, function() { $self.replaceWith(data.div); $('.gist .gist-file .gist-meta a').filter(function() { return this.href === $link.prop('href'); }).parents('.gist-file').siblings().remove(); }); }) .fail(function() { $self.replaceWith($('').attr('href', url).text(url)); }); }
爱意满满的作品展示区。
lingxy

基于 VitePress 的个人前端导航页面模板

  •  1
     
  •   lingxy · Sep 1, 2023 · 2302 views
    This topic created in 1019 days ago, the information mentioned may be changed or developed.

    vitepress-nav-template

    基于 VitePress 的个人前端导航页面模板

    功能

    • 新增 layout-class 方便更好的自定义样式
    • 默认中文
    • 自带前端导航模块
    • 支持日夜颜色模式自适应切换
    • 支持 Github Pages 直接部署上线

    预览地址

    开源地址

    Github:https://github.com/maomao1996/vitepress-nav-template

    4 replies    2023-09-01 17:53:27 +08:00
    wbwm
        1
    wbwm  
       Sep 1, 2023
    mmpalyer 挺好用的,居然停了
    lingxy
        2
    lingxy  
    OP
       Sep 1, 2023
    @wbwm 😔
    MJZ1995
        3
    MJZ1995  
       Sep 1, 2023
    马住!作为产品我急需 CV !样式也很简洁! 8 错~
    magicdawn
        4
    magicdawn  
       Sep 1, 2023
    shape of FE / 前端物语
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4165 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 60ms · UTC 05:20 · PVG 13:20 · LAX 22:20 · JFK 01:20
    ♥ Do have faith in what you're doing.