|
{{template "base/head" .}}
|
|
<div role="main" aria-label="{{.Title}}" class="page-content repository commits">
|
|
{{template "repo/header" .}}
|
|
<div class="ui container flex-container">
|
|
<div class="flex-container-nav">
|
|
{{template "repo/navbar" .}}
|
|
</div>
|
|
<div class="flex-container-main">
|
|
{{if .PageIsPulse}}{{template "repo/pulse" .}}{{end}}
|
|
{{if .PageIsContributors}}{{template "repo/contributors" .}}{{end}}
|
|
{{if .PageIsCodeFrequency}}{{template "repo/code_frequency" .}}{{end}}
|
|
{{if .PageIsRecentCommits}}{{template "repo/recent_commits" .}}{{end}}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{template "base/footer" .}}
|
|
|
marked.setOptions({
highlight: function (code, lang) {
// Use highlight.js to highlight the code
const language = hljs.getLanguage(lang) ? lang : 'plaintext'; // Fallback to 'plaintext' if no language is found
return hljs.highlight(language, code).value; // Return the highlighted code
}
});