Skip to content

Commit

Permalink
feat: console-log partial
Browse files Browse the repository at this point in the history
  • Loading branch information
peaceiris committed Oct 14, 2020
1 parent 3993b65 commit 939406d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions layouts/partials/console-log.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<script>
console.log('Hugo Debug: ', {{ print . }})
</script>
2 changes: 2 additions & 0 deletions layouts/partials/lang-button.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
<div class="dropdown-menu" id="dropdown-menu" role="menu">
<div class="dropdown-content">
{{ $langPage := cond (gt (len .Translations) 0) . .Site.Home }}
{{ partial "console-log" $langPage }}
{{ partial "console-log" (len .Translations) }}
{{ range $langPage.Translations }}
<a href="{{ .RelPermalink }}" class="dropdown-item normal-link">{{ .Language.LanguageName }}</a>
{{ end }}
Expand Down

1 comment on commit 939406d

@peaceiris
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Close #94

Please sign in to comment.