Skip to content

idev-sig/idevnav

Repository files navigation

爱开发导航

基于 Hugo & NavSide 主题


先决条件

  • Hugo
    curl -L https://fx4.cn/hugo | bash -s -- -w

开发

  1. 初始化或更新子模块

    # 初次使用时
    git submodule update --init --recursive
    
    # 需要更新 submodule (主题)时
    git submodule update --recursive --remote
  2. 测试

    hugo serve
  3. 构建

    # 构建
    hugo build --minify
    
    # 拉取 icon
    bash ./.deploy.sh
    
    # 部署
    bash ./.deploy.sh -d

获取 ICON 图标

需要先修改 logo: 部分的文件名,以提供下述方式 favicon: 保存。

  1. 从 Google

    # favicon: <URL>
    
    https://www.google.com/s2/favicons?sz=48&domain_url=https%3A%2F%2Fgitcode.com
    
    # 或直接
    https://t1.gstatic.com/faviconV2?client=SOCIAL&type=FAVICON&fallback_opts=TYPE,SIZE,URL&url=https://gitcode.com&size=48
    https://t3.gstatic.cn/faviconV2?client=SOCIAL&type=FAVICON&fallback_opts=TYPE,SIZE,URL&url=https://gitcode.com&size=48
    
  2. 从自建方式获取

    # favicon: <URL>
  3. 使用教程

仓库镜像

About

爱开发网址导航

Resources

Stars

Watchers

Forks