I want to apply fomantic-ui to index.pug that is made of npm for node.js #792
-
Help WantedProblemDescribe your problem in great detail
this is for index.pug and semantic folder is up of index.pug. so i add '..' but it doesn't working and I googled it but I don't know what is wrong. please I need help. |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments
-
@kimnakyeong Is your web server serving the semantic files? Your path in the |
Beta Was this translation helpful? Give feedback.
-
Try this instead: link(rel="stylesheet", type="text/css", href="https://cdnjs.cloudflare.com/ajax/libs/fomantic-ui/2.7.5/semantic.min.css")
script(src="https://cdnjs.cloudflare.com/ajax/libs/fomantic-ui/2.7.5/semantic.min.js") |
Beta Was this translation helpful? Give feedback.
-
@nektro That may not work in this case since they might be installing the package from NPM so they can create a theme and you can't create themes when using the CDN. |
Beta Was this translation helpful? Give feedback.
-
Is this still an issue or can we close this? |
Beta Was this translation helpful? Give feedback.
-
@kimnakyeong
Then do not use the parent folder ".." but script(src='https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js')
link(rel='stylesheet', type='text/css', href='semantic/dist/semantic.css')
script(src='semantic/dist/semantic.js') instead. Using ".." would be correct if your folder structure looks like this
However, if you use the dist versions of Fomantic and dont want to create own themes (as @hammy2899 mentioned above) and already use a cdn for jquery you may use cdns for fomantic as well (then your folder structure does not matter) script(src='https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js')
link(rel='stylesheet', type='text/css', href='https://cdn.jsdelivr.net/npm/[email protected]/dist/semantic.min.css')
script(src='https://cdn.jsdelivr.net/npm/[email protected]/dist/semantic.minjs') |
Beta Was this translation helpful? Give feedback.
-
Closing because answers are given so far and no more response from the author since 6 weeks. |
Beta Was this translation helpful? Give feedback.
@kimnakyeong
If your folder structure looks like this:
Then do not use the parent folder ".." but
instead.
Using ".." would be correct if your folder structure looks like this
However, if you use the dist versions of Fomantic and dont want to create own themes (as @hammy2899 mentioned above) and already use a cdn for jquery yo…