提到网址导航,大家第一印象想到的可能是Hao123,以及各类WinXP时代的流氓网站,如何将自己喜爱或肯定的网址收集起来,做成网址导航程序,这个选择可就多了。今天要介绍的是BYR-Navi,他基于Jekyll和Fomantic UI网络框架,最主要的特色在于它可以在GitHub上搭建(参考https://jekyllrb.com/docs/github-pages/),本文主要介绍在VPS搭建的方法。
BYR-Navi:可在GitHub上搭建的开源导航程序
BYR-Navi开源网址:https://github.com/BYR-Navi/BYR-Navi
演示站:https://byr-navi.com/
安装方法:
1. 安装Jekyll环境(参考https://jekyllrb.com/docs/installation/)
以Ubuntu为例
sudo apt-get install ruby-full build-essential zlib1g-dev echo '# Install Ruby Gems to ~/gems' >> ~/.bashrc echo 'export GEM_HOME="$HOME/gems"' >> ~/.bashrc echo 'export PATH="$HOME/gems/bin:$PATH"' >> ~/.bashrc source ~/.bashrc gem install jekyll bundler
2. 安装BYR-Navi
#从GitHub下载源码 git clone https://github.com/BYR-Navi/BYR-Navi #安装依赖 cd BYR-Navi bundle install
3.修改配置文件(_config.yml),包括标题之类的,下面是默认的,对应修改即可
repository: BYR-Navi/BYR-Navi repository_url: https://github.com/BYR-Navi/BYR-Navi timezone: Asia/Shanghai lang: zh_CN title: 北邮人导航 · BYR-Navi alias_en: BYR-Navi alias_cn: 北邮人导航 description: A Navigation Website for BYR keywords: 北邮人导航, BYR-Navi, BYR, BUPT, Navi, Navigation url: https://byr-navi.com established_at: "2016-10-01T00:00+08:00" author: iROCKBUNNY author_url: https://irockbunny.com organization: TEELAB organization_url: https://teelab.net contact: contact[at]irockbunny[dot]com image: /images/logo.png logo: /images/logo.png logo_dark: /images/logo-dark.svg logo_white: /images/logo-white.svg
4.运行程序
#此处运行端口为8080,可自行定义 bundle exec jekyll serve -H 0.0.0.0 -P 8080 --detach