Skip to content

update theme for the newest hugo version #48

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading