Skip to content

Commit

Permalink
add lang element to pkgdown template
Browse files Browse the repository at this point in the history
This is a first step towards addressing #205, but there is still a lot
more work that needs to go into it. Because I'm pretty sure the tests
will not pass, I'm going to skip the continuous integration for now.

[skip ci]
  • Loading branch information
zkamvar committed Dec 14, 2022
1 parent 391dbae commit e13b3e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions R/utils-yaml.R
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ create_pkgdown_yaml <- function(path) {
yaml <- whisker::whisker.render(yaml,
data = list(
# Basic information
lang = if (is.null(usr$lang)) NULL else siQuote(usr$lang),
version = siQuote(utils::packageVersion("sandpaper")),
config = siQuote(path_config(path)),
title = siQuote(usr$title),
Expand Down
1 change: 1 addition & 0 deletions inst/templates/pkgdown-yaml-template.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# If you want to make changes, please edit {{ config }}
# ------------------------------------------------------------------ information
title: {{ title }} # needed to set the site title
lang: {{ lang }}{{^ lang }}'en'{{ /lang }}
home:
title: Home
strip_header: true
Expand Down

0 comments on commit e13b3e9

Please sign in to comment.