1
0
mirror of https://github.com/alanorth/hugo-theme-bootstrap4-blog.git synced 2024-07-01 10:33:45 +02:00

Add Vim Modeline Comments to Files (#18)

* Add Vim modeline comments to all relevent template files.

* Add Vim modeline comments to a few other files.

* Move modeline comments inside the template definitions in list and single.

For some odd reason, putting them outside breaks the page generation.

* Use template comments for modeline comments in templates.

* Fix form 2 modelines.
This commit is contained in:
DeedleFake 2016-11-24 07:33:56 -05:00 committed by Alan Orth
parent b83b1683a7
commit 663f3db2a0
12 changed files with 24 additions and 0 deletions

View File

@ -97,3 +97,5 @@ paginate = 5
# Languages to render # Languages to render
#[languages.en] #[languages.en]
#[languages.bg] #[languages.bg]
# vim: ts=2 sw=2 et

View File

@ -84,3 +84,5 @@
</body> </body>
</html> </html>
{{- /* vim: set ts=2 sw=2 et: */}}

View File

@ -21,4 +21,7 @@
{{ end }} {{ end }}
</nav> </nav>
{{ end }} {{ end }}
{{ end }} {{ end }}
{{- /* vim: set ts=2 sw=2 et: */}}

View File

@ -29,3 +29,5 @@
{{ end }} {{ end }}
{{ end }} {{ end }}
{{- /* vim: set ts=2 sw=2 et: */}}

View File

@ -8,3 +8,5 @@
{{ .Summary }} {{ .Summary }}
<a href='{{ .Permalink }}'>{{ i18n "readMore" }}</a> <a href='{{ .Permalink }}'>{{ i18n "readMore" }}</a>
</article> <!-- /.blog-post --> </article> <!-- /.blog-post -->
{{- /* vim: set ts=2 sw=2 et: */}}

View File

@ -22,3 +22,5 @@ window.cookieconsent.initialise({
"position": "bottom-right" "position": "bottom-right"
})}); })});
</script> </script>
{{- /* vim: set ts=2 sw=2 et: */}}

View File

@ -15,3 +15,5 @@
</script> </script>
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript> <noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
<a href="http://disqus.com/" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a> <a href="http://disqus.com/" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
{{- /* vim: set ts=2 sw=2 et: */}}

View File

@ -20,3 +20,5 @@
{{ end }} {{ end }}
{{ .Hugo.Generator }} {{ .Hugo.Generator }}
{{- /* vim: set ts=2 sw=2 et: */}}

View File

@ -4,3 +4,5 @@
{{ if .Params.tags }} {{ if .Params.tags }}
<i class="fa fa-tag" aria-hidden="true"></i>&nbsp;{{ range $index, $tag := .Params.tags }}{{ if gt $index 0 }}, {{ end }}<a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}" rel="tag">{{ . }}</a>{{ end }} <i class="fa fa-tag" aria-hidden="true"></i>&nbsp;{{ range $index, $tag := .Params.tags }}{{ if gt $index 0 }}, {{ end }}<a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}" rel="tag">{{ . }}</a>{{ end }}
{{ end }} {{ end }}
{{- /* vim: set ts=2 sw=2 et: */}}

View File

@ -11,3 +11,4 @@
</nav> </nav>
</footer> </footer>
{{- /* vim: set ts=2 sw=2 et: */}}

View File

@ -28,3 +28,5 @@
</section> </section>
{{ end }} {{ end }}
</aside><!-- /.blog-sidebar --> </aside><!-- /.blog-sidebar -->
{{- /* vim: set ts=2 sw=2 et: */}}

View File

@ -14,3 +14,5 @@ min_version = 0.17
[original] [original]
author = "mdo" author = "mdo"
homepage = "https://v4-alpha.getbootstrap.com/examples/blog/" homepage = "https://v4-alpha.getbootstrap.com/examples/blog/"
# vim: ts=2 sw=2 et