Files
bridget/layouts/_default/single.html
Spedon 49e9f904e2 fix: fix article regresssion (#250)
* refactor: output article element when needed

* refactor: refactor container styles and media queries

- Add the `$tablet` variable to `_container.scss`
- Add a media query to `_container.scss`
- Import `_container.scss` in `critical.scss`
- Remove the import of `_container.scss` in `style.scss`
2024-01-22 20:35:15 +08:00

17 lines
575 B
HTML

{{- define "main" -}}
<script>
document.getElementById("main").setAttribute("nextText", "{{- i18n "next" -}}")
document.getElementById("main").setAttribute("prevText", "{{- i18n "prev" -}}")
document.getElementById("main").setAttribute("closeText", "{{- i18n "close" -}}")
document.getElementById("main").setAttribute("loadingText", "{{- i18n "loading" -}}")
</script>
<div class="container">
{{- partial "nav.html" . -}}
{{- with .Content -}}
<article class="info">
{{- . -}}
</article>
{{- end -}}
</div>
{{- end -}}