将 Google 分析添加到 jekyll 博客
add Google analytics to jekyll blog
据我了解,3.2.1 中的 jekyll new
不会创建 _layout
、_include
以及类似的所有内容,因此它只会声明 theme: minima
并且所有包含和布局都封装在主题中,如另一个答案 .
中所述
我想向我的新站点添加 Google 分析,我现在该怎么做?过去我只是将它添加到 _includes/footer.html
或其他任何内容。
或者,我如何像以前一样创建所有这些目录和文件的博客(无需从某处复制)。
正如所解释的那样here, you just need to manually create your own versions of the theme's templates under _layouts
and _includes
. If you look in the minima theme repository您可以看到可以覆盖的模板。
据我了解,3.2.1 中的 jekyll new
不会创建 _layout
、_include
以及类似的所有内容,因此它只会声明 theme: minima
并且所有包含和布局都封装在主题中,如另一个答案
我想向我的新站点添加 Google 分析,我现在该怎么做?过去我只是将它添加到 _includes/footer.html
或其他任何内容。
或者,我如何像以前一样创建所有这些目录和文件的博客(无需从某处复制)。
正如所解释的那样here, you just need to manually create your own versions of the theme's templates under _layouts
and _includes
. If you look in the minima theme repository您可以看到可以覆盖的模板。