A theme for hugo made using tailwind CSS library and mono font family
tailwind.css
file will be used in the theme but if you want to play around with tailwind then follow the steps mentioned belowassets/csss/tailwind
directorynpm run dev
-> This generates all the possible CSS classes from tailwind. Some may still be left outnpm run prod
-> This generates only the CSS classes from tailwind that you are using in the themehugo new site <SITE_NAME>
cd <SITE_NAME>
git submodule add [email protected]:techbarrack/terminal-hugo-theme.git themes/terminal
<SITE_NAME>/hugo.yaml
with <SITE_NAME>/themes/terminal/hugo.yaml
mkdir -p layouts/partials/third_party_js
. This directory is to store any sort of third party javascript like google analytics, disqus, etchugo server --buildDrafts --disableFastRender --gc --ignoreCache --noHTTPCache --forceSyncStatic --verbose -w
<SITE_NAME>/hugo.yaml
<SITE_NAME>/content
by replicating what is present in <SITE_NAME>/themes/terminal/content
head.html
<SITE_NAME>/layouts/partials/third_party_js/<FILE>.html
third_party_js
folder will get included before </body>
tag{{< svg logo="blah" >}}
-> Use the following code to add svg in markdown fileslayouts/content/svg
{{< rawhtml >}}
<div>This is raw HTML content</div>
{{< /rawhtml >}}
Some reference links for additional info on how to do things in Hugo: