# Migrating Bootstrap docs to Hugo

**URL:** https://discourse.gohugo.io/t/migrating-bootstrap-docs-to-hugo/8898
**Category:** support
**Created:** [October 23, 2017, 12:20pm UTC](https://discourse.gohugo.io/t/migrating-bootstrap-docs-to-hugo/8898 "2017-10-23T12:20:16Z")
**Posts on this page:** 1
**Showing post:** 12

<div class="post-metadata">

### Author: ![xhmikosr](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/xhmikosr/32/3306_2.png) [@xhmikosr](https://discourse.gohugo.io/u/xhmikosr)
#### Post date: [October 23, 2017, 3:41pm UTC](https://discourse.gohugo.io/t/migrating-bootstrap-docs-to-hugo/8898/12 "2017-10-23T15:41:42Z")

</div>

This is what I get so far with my branch I linked above ([https://github.com/twbs/bootstrap/tree/v4-dev-xmr-hugo](https://github.com/twbs/bootstrap/tree/v4-dev-xmr-hugo)):

```auto
C:\Users\xmr\Desktop\bootstrap>npm run docs-compile

> bootstrap@4.0.0-beta.2 docs-compile C:\Users\xmr\Desktop\bootstrap
> cd docs/ && hugo --config config.yml

ERROR 2017/10/23 18:37:36 Failed to add template "index.html" in path "C:\\Users\\xmr\\Desktop\\bootstrap\\docs\\layouts\\index.html": template: index.html:31: unexpected "<" in command
ERROR 2017/10/23 18:37:36 Failed to add template "partials/docs-navbar.html" in path "C:\\Users\\xmr\\Desktop\\bootstrap\\docs\\layouts\\partials\\docs-navbar.html": template: partials/docs-navbar.html:3: unexpected "<" in command
ERROR 2017/10/23 18:37:36 Failed to add template "partials/docs-sidebar.html" in path "C:\\Users\\xmr\\Desktop\\bootstrap\\docs\\layouts\\partials\\docs-sidebar.html": template: partials/docs-sidebar.html:4: unexpected "<" in command
ERROR 2017/10/23 18:37:36 index.html : template: index.html:31: unexpected "<" in command
ERROR 2017/10/23 18:37:36 partials/docs-navbar.html : template: partials/docs-navbar.html:3: unexpected "<" in command
ERROR 2017/10/23 18:37:36 partials/docs-sidebar.html : template: partials/docs-sidebar.html:4: unexpected "<" in command
Started building sites ...
ERROR 2017/10/23 18:37:37 Error while rendering "page": template: _default/docs.html:13:7: executing "_default/docs.html" at <partial "docs-navbar...>: error calling partial: template: "partials/docs-navbar.html" is an incomplete or empty template
npm ERR! code ELIFECYCLE
npm ERR! errno 4294967295
npm ERR! bootstrap@4.0.0-beta.2 docs-compile: `cd docs/ && hugo --config config.yml`
npm ERR! Exit status 4294967295
npm ERR!
npm ERR! Failed at the bootstrap@4.0.0-beta.2 docs-compile script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\xmr\AppData\Roaming\npm-cache\_logs\2017-10-23T15_37_37_269Z-debug.log

```

`docs-sidebar.html` isn’t converted yet, but the above errors come from using a shortcode in html. For example:

```auto
{{< svg src="import.svg" width="32" height="32" class="text-primary mb-2" >}}

```

Note that I might be doing something obviously wrong, so I’d try to have a look later after I take a break.

As for the extra static files include, I will make a new GitHub issue, thanks.

---

_[View the full topic](https://discourse.gohugo.io/t/migrating-bootstrap-docs-to-hugo/8898)._
