Customised theme doesn't apply. uses default one instead

hi there.

few days ago i started to work with hugo. wanted to create my small blog.

so, i finished site, i bought domain, i deployed it to github pages. but, after building and visiting it it looks diferent from my local machine.

i use theme terminal and i customized it a bit. when running locally it works perfectly. but on the web it just uses the default theme. without my footer, header/logo. without everything

i tried those ways with changing baseURL to mine.

i also thought that it could be that i should name it by my github repo but i wasnt sure and it didnt work

github repo:

my file structure:

├── archetypes │ └── default.md ├── assets ├── content │ ├── aboutme │ │ └── aboutme.md │ ├── articles │ │ ├── ai-for-programming.md │ │ ├── dota2glimmerbkb.md │ │ ├── japaneselearning.md │ │ └── love2die.md │ ├── _index.md │ └── reports │ └── report-day-1.md ├── data ├── hugo.toml ├── hugo.yaml ├── i18n ├── layouts │ └── tags.html ├── public │ ├── 404.html │ ├── aboutme │ │ ├── aboutme │ │ │ └── index.html │ │ ├── index.html │ │ ├── index.xml │ │ └── page │ │ └── 1 │ │ └── index.html │ ├── apple-touch-icon.png │ ├── articles │ │ ├── ai-for-programming │ │ │ └── index.html │ │ ├── dota2glimmerbkb │ │ │ └── index.html │ │ ├── index.html │ │ ├── index.xml │ │ ├── japaneselearning │ │ │ └── index.html │ │ ├── love2die │ │ │ └── index.html │ │ └── page │ │ └── 1 │ │ └── index.html │ ├── assets │ │ └── css │ │ └── stylesheet.min.5846e11b4a0d89843969a7dc0506c715a5ad67764859698a2227c702973fb858.css │ ├── categories │ │ ├── index.html │ │ └── index.xml │ ├── css │ │ ├── buttons.min.2bc533403a27dfe0e93105a92502b42ce4587e2e4a87d9f7d349e51e16e09478.css │ │ ├── code.min.00125962708925857e7b66dbc58391d55be1191a3d0ce2034de8c9cd2c481c36.css │ │ ├── fonts.min.4881f0c525f3ce2a1864fb6e96676396cebe1e6fcef1933e8e1dde7041004fb5.css │ │ ├── footer.min.00981c614780ca3a539471743c9df059a7bcbdaf9c3bca6319f0ca000803a6b2.css │ │ ├── footer.min.8726db08b19adc17f3a454e945536d86af72f8fb355f755499410b3b277e97d8.css │ │ ├── footer.min.99363e18d5999cb8d5762fba2b3540b3b86aebd1c7c15ebb60b2f28cc568d73f.css │ │ ├── footer.min.fc6733141ebbd95090c64a0a6fcd894d6e9f39ff9f7bed6146bd4423519d153a.css │ │ ├── gist.min.a751e8b0abe1ba8bc53ced52a38b19d8950fe78ca29454ea8c2595cf26aad5c0.css │ │ ├── header.min.b6fb4423cf82a9f9d7abc9cd010223fa3d70a6526a3f28f8e17d814c06e18f9e.css │ │ ├── main.min.a9651d9fe180b3b37df94225ba5e76060bec0aac7ba365a8cf35e6bd7ec63505.css │ │ ├── menu.min.83637a90d903026bc280d3f82f96ceb06c5fc72b7c1a8d686afb5bbf818a29f7.css │ │ ├── pagination.min.82f6400eae7c7c6dc3c866733c2ec0579e4089608fea69400ff85b3880aa0d3c.css │ │ ├── post.min.fc74ca360273c1d828da3c02b8174eba435607b369d98418ccc6f2243cd4e75d.css │ │ ├── prism.min.9023bbc24533d09e97a51a0a42a5a7bfe4c591ae167c5551fb1d2191d11977c0.css │ │ ├── style.min.4cfc6189b4508c9879d9a50e62a12005368efb35b2108f7914591eb45cba12a2.css │ │ ├── style.min.ad1a9e10168ec2c45989e90221a0f90c0468c4f370c72b6f88fbc87254fd4c88.css │ │ ├── style.min.c687542218badb7091982d7b91ff8b600e6e4ec52d2ef7a08f69589fc05630c7.css │ │ ├── style.min.cc349a25ee6f6bf6f9b46cb520214efe540984c61a4419599a7a40ae3784a82a.css │ │ ├── style.min.d1bb915e1bd8e5d89b1c0f7d5f3c7585b0238cae345816d022459513b5b690ca.css │ │ ├── style.min.d3c897fc565d825b16fe3ed568921b0f75403c11a6c69acc3eb3b95cc71d9f1d.css │ │ ├── style.min.dbe4cfbfe09548fd138e828792c0b93981db0f77ffcc8f0d0c24fdaaea29dbd0.css │ │ ├── style.min.fceb5457207602131239a64438e4f9ba34f523fa3fea35af11207b0d2f329086.css │ │ ├── style.min.fedb74b114f945417575b8eea91dc5af98506e89abae10d33c46d8f4f3ba570c.css │ │ ├── syntax.min.cc789ed9377260d7949ea4c18781fc58959a89287210fe4edbff44ebfc1511b6.css │ │ ├── terminal.min.4b367d85d0d0061435650561285afed36c46a7cf8dc6d7ed5642d98e589fa622.css │ │ └── terms.min.b81791663c3790e738e571cdbf802312390d30e4b1d8dc9d814a5b5454d0ac11.css │ ├── favicon.png │ ├── fonts │ │ ├── basis33.ttf │ │ ├── basis33.woff │ │ ├── basis33.woff2 │ │ ├── FiraCode-Bold.woff │ │ └── FiraCode-Regular.woff │ ├── images │ │ ├── 1137520.jpg │ │ ├── 649533.png │ │ ├── 789101.jpg │ │ ├── 849764.jpg │ │ ├── itchio-textless-black.png │ │ └── itchio-textless-black.webp │ ├── index.html │ ├── index.xml │ ├── og-image.png │ ├── page │ │ └── 1 │ │ └── index.html │ ├── reports │ │ ├── index.html │ │ ├── index.xml │ │ ├── page │ │ │ └── 1 │ │ │ └── index.html │ │ └── report-day-1 │ │ └── index.html │ ├── sitemap.xml │ └── tags │ ├── index.html │ └── index.xml ├── README.md ├── resources │ └── _gen │ ├── assets │ └── images ├── static │ └── images │ ├── 1137520.jpg │ ├── 649533.png │ ├── 789101.jpg │ ├── 849764.jpg │ ├── itchio-textless-black.png │ └── itchio-textless-black.webp └── themes └── terminal ├── archetypes │ └── posts.md ├── assets │ ├── css │ │ ├── buttons.css │ │ ├── code.css │ │ ├── fonts.css │ │ ├── footer.css │ │ ├── gist.css │ │ ├── header.css │ │ ├── main.css │ │ ├── menu.css │ │ ├── pagination.css │ │ ├── post.css │ │ ├── prism.css │ │ ├── style.css │ │ ├── syntax.css │ │ ├── terminal.css │ │ └── terms.css │ └── js │ ├── menu.js │ └── prism.js ├── babel.config.js ├── CNAME ├── COMMUNITY-FEATURES.md ├── config.toml ├── go.mod ├── images │ ├── screenshot.png │ ├── terminal-css.png │ ├── terminal-theme-old.png │ ├── terminal-theme.png │ └── tn.png ├── layouts │ ├── 404.html │ ├── _default │ │ ├── baseof.html │ │ ├── blog.html │ │ ├── index.html │ │ ├── list.html │ │ ├── rss.xml │ │ ├── single.html │ │ ├── term.html │ │ └── terms.html │ ├── partials │ │ ├── comments.html │ │ ├── cover.html │ │ ├── extended_footer.html │ │ ├── extended_head.html │ │ ├── footer.html │ │ ├── header.html │ │ ├── head.html │ │ ├── language-menu.html │ │ ├── logo.html │ │ ├── menu.html │ │ ├── mobile-menu.html │ │ ├── pagination.html │ │ ├── post-date.html │ │ ├── post-lastmod.html │ │ └── posts_pagination.html │ └── shortcodes │ ├── code.html │ ├── figure.html │ ├── image.html │ └── prismjs.html ├── LICENSE.md ├── package.hugo.json ├── package.json ├── package-lock.json ├── README.md ├── static │ ├── apple-touch-icon.png │ ├── favicon.png │ ├── fonts │ │ ├── basis33.ttf │ │ ├── basis33.woff │ │ ├── basis33.woff2 │ │ ├── FiraCode-Bold.woff │ │ └── FiraCode-Regular.woff │ └── og-image.png ├── theme.toml ├── USERS.md └── yarn.lock

also cannot get displaying 649533.png

Never modify a theme. Override its files as needed. For example, if you need to override:

themes/foo/layouts/_default/baseof.html

Then you need to do this:

mkdir -p layouts/_default
cp themes/foo/layouts/_default/baseof.html layouts/_default/

Then modify layouts/_default/baseof.html as needed.

Thanks, it really helped!

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.