Skip to content

Commit

Permalink
Merge pull request #48 from myushen/pseudobulk-blog
Browse files Browse the repository at this point in the history
update theme for the newest hugo version
  • Loading branch information
william-hutchison authored May 20, 2024
2 parents 69a2075 + 66c674c commit d8b7c12
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
9 changes: 5 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,12 @@ In brief, the process to add a post is:

1. Create a fork of the `tidyomicsBlog` repository.
2. Create a new directory for your post in the format of YYYY-MM-DD-post-name, within the `tidyomicsBlog/blog/content/post` directory.
3. Write your blog post as an Rmd file and add it to the directory you created. All files needed for your Rmd file to run should also be placed within the directory you created.
3. Write your blog post as an Rmd file and add it to the directory you created. All files needed for your Rmd file to run should also be placed within the directory you created. Note that R markdown chunks which contain images or graphs need to have proper names to render correctly.
4. Change your working directory to `tidyomicsBlog/blog`.
4. Call the function `blogdown::build_site(build_rmd = "newfile")` to create a html file from your Rmd file.
5. Call the function `blogdown::serve_site()` to locally render the website and inspect your work.
6. And you're done! If it all looks good, commit your changes and create a pull request to integrate your new post into the blog.
5. Install Hugo `blogdown::install_hugo()`.
6. Call the function `blogdown::build_site(build_rmd = "newfile")` to create a html file from your Rmd file.
7. Call the function `blogdown::serve_site()` to locally render the website and inspect your work.
8. And you're done! If it all looks good, commit your changes and create a pull request to integrate your new post into the blog.

# How is the training material maintained?

Expand Down
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ License: CC BY-SA 4.0 + file LICENSE
Encoding: UTF-8
LazyData: true
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.1.1
RoxygenNote: 7.3.1
Depends:
R (>= 4.0.0)
Imports:
Expand Down
2 changes: 1 addition & 1 deletion blog/themes/hugo-theme-even/layouts/partials/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{{ if .Site.LanguagePrefix -}}
<a href="{{ .Site.LanguagePrefix | absURL }}/index.xml" type="application/rss+xml" class="iconfont icon-rss" title="rss"></a>
{{- else -}}
<a href="{{ .Site.RSSLink }}" type="application/rss+xml" class="iconfont icon-rss" title="rss"></a>
<a href="{{ .Permalink }}" type="application/rss+xml" class="iconfont icon-rss" title="rss"></a>
{{- end }}
</div>

Expand Down
2 changes: 1 addition & 1 deletion blog/themes/hugo-theme-even/layouts/partials/scripts.html
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@

<!-- Analytics -->
{{- if (in (slice (getenv "HUGO_ENV") hugo.Environment) "production") | and .Site.GoogleAnalytics -}}
{{ template "_internal/google_analytics_async.html" . }}
{{ template "_internal/google_analytics.html" . }}
{{- end -}}

{{- with .Site.Params.baiduAnalytics -}}
Expand Down

0 comments on commit d8b7c12

Please sign in to comment.