Skip to content

Commit

Permalink
chore(git): merge pull request #738 from jmooring:simplify-lang-attri…
Browse files Browse the repository at this point in the history
…bute

refactor: simplify lang attribute in html element

As of Hugo v0.122.4, these are equivalent:

```
{{ site.LanguageCode | default site.Language.Lang  }}
{{ site.Language.LanguageCode }}
```
See <https://gohugo.io/methods/site/language/#methods>
  • Loading branch information
davidsneighbour authored Oct 18, 2024
2 parents ad80eb2 + 0b0fe2f commit 773f06c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/_default/baseof.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="{{ site.LanguageCode | default site.Language.Lang }}" {{- with partialCached "func/GetLanguageDirection" "GetLanguageDirection" }} dir="{{ . }}" {{- end }}>
<html lang="{{ site.Language.LanguageCode }}" {{- with partialCached "func/GetLanguageDirection" "GetLanguageDirection" }} dir="{{ . }}" {{- end }}>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
Expand Down

0 comments on commit 773f06c

Please sign in to comment.