Skip to content
Open
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
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ WORKDIR /src
RUN yarn install

# Do an initial hugo build
RUN yarn hugo --verbose
RUN yarn hugo

# Run the hugo server at launch
CMD [ "yarn", "hugo", "server", "--themesDir", "../..", "--disableFastRender", "--renderToMemory", "--bind", "0.0.0.0" ]
20 changes: 20 additions & 0 deletions layouts/_default/content.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<div class="td-content">
<h1>{{ .Title }}</h1>
{{ with .Params.description }}<div class="lead">{{ . | markdownify }}</div>{{ end }}
<header class="article-meta">
{{ partial "taxonomy_terms_article_wrapper.html" . }}
{{ if (and (not .Params.hide_readingtime) (.Site.Params.ui.readingtime.enable)) }}
{{ partial "reading-time.html" . }}
{{ end }}
</header>
{{ .Content }}
{{ if (and (not .Params.hide_feedback) (.Site.Params.ui.feedback.enable) (.Site.Config.Services.GoogleAnalytics.ID)) }}
{{ partial "feedback.html" .Site.Params.ui.feedback }}
<br />
{{ end }}
{{ if (.Site.Config.Services.Disqus.Shortname) }}
<br />
{{ partial "disqus.html" . }}
{{ end }}
{{ partial "page-meta-lastmod.html" . }}
</div>
23 changes: 23 additions & 0 deletions layouts/docs/list.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{{ define "main" }}
<div class="td-content">
<h1>{{ .Title }}</h1>
{{ with .Params.description }}<div class="lead">{{ . | markdownify }}</div>{{ end }}
<header class="article-meta">
{{ partial "taxonomy_terms_article_wrapper.html" . }}
{{ if (and (not .Params.hide_readingtime) (.Site.Params.ui.readingtime.enable)) }}
{{ partial "reading-time.html" . }}
{{ end }}
</header>
{{ .Content }}
{{ partial "section-index.html" . }}
{{ if (and (not .Params.hide_feedback) (.Site.Params.ui.feedback.enable) (.Site.Config.Services.GoogleAnalytics.ID)) }}
{{ partial "feedback.html" .Site.Params.ui.feedback }}
<br />
{{ end }}
{{ if (.Site.Config.Services.Disqus.Shortname) }}
<br />
{{ partial "disqus.html" . }}
{{ end }}
{{ partial "page-meta-lastmod.html" . }}
</div>
{{ end }}
8 changes: 2 additions & 6 deletions layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,5 @@
{{ end -}} {{ if .Site.Params.prism_syntax_highlighting -}} <link
rel="stylesheet" href="{{ "css/prism.css" | relURL }}"/> {{ end -}} {{/* To
comply with GDPR, cookie consent scripts places in head-end must execute before
Google Analytics is enabled */ -}} {{ if hugo.IsProduction -}} {{
$enableGtagForUniversalAnalytics := not
.Site.Params.disableGtagForUniversalAnalytics -}} {{ if (or
$enableGtagForUniversalAnalytics (hasPrefix .Site.GoogleAnalytics "G-")) -}} {{
template "_internal/google_analytics_gtag.html" . -}} {{ else -}} {{ template
"_internal/google_analytics_async.html" . -}} {{ end -}} {{ end -}}
Google Analytics is enabled */ -}} {{ if hugo.IsProduction -}} {{ partial
"google_analytics.html" . -}} {{ end -}}
23 changes: 23 additions & 0 deletions layouts/swagger/list.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{{ define "main" }}
<div class="td-content">
<h1>{{ .Title }}</h1>
{{ with .Params.description }}<div class="lead">{{ . | markdownify }}</div>{{ end }}
<header class="article-meta">
{{ partial "taxonomy_terms_article_wrapper.html" . }}
{{ if (and (not .Params.hide_readingtime) (.Site.Params.ui.readingtime.enable)) }}
{{ partial "reading-time.html" . }}
{{ end }}
</header>
{{ .Content }}
{{ partial "section-index.html" . }}
{{ if (and (not .Params.hide_feedback) (.Site.Params.ui.feedback.enable) (.Site.Config.Services.GoogleAnalytics.ID)) }}
{{ partial "feedback.html" .Site.Params.ui.feedback }}
<br />
{{ end }}
{{ if (.Site.Config.Services.Disqus.Shortname) }}
<br />
{{ partial "disqus.html" . }}
{{ end }}
{{ partial "page-meta-lastmod.html" . }}
</div>
{{ end }}
3 changes: 1 addition & 2 deletions package.hugo.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@
"autoprefixer": "^10.4.19",
"dprint": "^0.46.0",
"html-hint": "^0.2.4",
"hugo-cli": "^0.13.0",
"hugo-extended": "^0.123.8",
"hugo-extended": "0.153.1",
"lunr": "^2.3.9",
"postcss": "^8.4.38",
"postcss-cli": "^11.0.0"
Expand Down
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"autoprefixer": "project",
"dprint": "project",
"html-hint": "project",
"hugo-cli": "project",
"hugo-extended": "project",
"lunr": "project",
"postcss": "project",
Expand All @@ -25,8 +24,7 @@
"gray-matter": "^4.0.3",
"hcl2-parser": "^1.0.3",
"html-hint": "^0.2.4",
"hugo-cli": "^0.15.0",
"hugo-extended": "^0.123.8",
"hugo-extended": "0.153.1",
"lunr": "^2.3.9",
"postcss": "^8.5.26",
"postcss-cli": "^11.0.1",
Expand Down
Loading