【问题标题】:How do I serve a Hugo theme exampleSite?如何提供 Hugo 主题示例站点?
【发布时间】:2022-09-24 15:46:08
【问题描述】:

我来自使用 Jekyll 作为Static Site Generator。内容和主题通常保存在同一个目录/git repo 中。

我正在尝试建立一个 Hugo 网站,使用基本主题 Huog Xmin。它包含标准目录exampleSite

如何使用 Hugo(本地)为 exampleSite 提供主题服务?在我之后:

git clone git@github.com:yihui/hugo-xmin.git
cd hugo-xmin

    标签: hugo hugo-theme


    【解决方案1】:

    进入exampleSite 并将父目录作为参数传递:

    cd exampleSite
    hugo server --themesDir ../..
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-09-03
      • 2020-11-09
      • 1970-01-01
      • 2017-03-19
      相关资源
      最近更新 更多