# Posts not showing in Windows but showing in Ubuntu (hugo server)

**URL:** <https://discourse.gohugo.io/t/posts-not-showing-in-windows-but-showing-in-ubuntu-hugo-server/27971>\
**Category:** support\
**Created:** [September 2, 2020, 3:28pm UTC](https://discourse.gohugo.io/t/posts-not-showing-in-windows-but-showing-in-ubuntu-hugo-server/27971 "2020-09-02T15:28:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![osmancakirio](https://avatars.discourse-cdn.com/v4/letter/o/f0a364/32.png) [@osmancakirio](https://discourse.gohugo.io/u/osmancakirio)\
**Post date:** [September 2, 2020, 3:28pm UTC](https://discourse.gohugo.io/t/posts-not-showing-in-windows-but-showing-in-ubuntu-hugo-server/27971/1 "2020-09-02T15:28:20Z")

</div>

Hi there. I have a weird problem. I was developing my blog with Ubuntu. And everything was working fine. Recently I wanted to write content from my windows machine as well. But no luck my posts are not being rendered by hugo. Here is my blog source code:

> **[osmancakir/osmancakirioblog](https://github.com/osmancakir/osmancakirioblog)**
>
> Repository for the personal website. Contribute to osmancakir/osmancakirioblog development by creating an account on GitHub.

when I run hugo server this is my output on windows:

```auto
Building sites … 
                   | EN
+------------------+----+
  Pages | 17  
  Paginator pages | 0
  Non-page files | 29
  Static files | 14  
  Processed images | 0
  Aliases | 0
  Sitemaps | 1
  Cleaned | 0

Total in 139 ms
Watching for changes in C:\Users\osman.cakir\Documents\osmancakirio\osmancakirioblog\osmancakirioblog\{content,static,themes}
Watching for config changes in C:\Users\osman.cakir\Documents\osmancakirio\osmancakirioblog\osmancakirioblog\config.toml
Serving pages from memory
Running in Fast Render Mode. For full rebuilds on change: hugo server --disableFastRender
Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)
Press Ctrl+C to stop

```

drafts is not a problem. all my posts have draft:false attribute.

Have no idea what is causing this. If you need more info please let me know.

---

<div class="post-metadata">

**Author:** ![pamubay](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/pamubay/32/17838_2.png) [@pamubay](https://discourse.gohugo.io/u/pamubay)\
**Post date:** [September 2, 2020, 4:02pm UTC](https://discourse.gohugo.io/t/posts-not-showing-in-windows-but-showing-in-ubuntu-hugo-server/27971/2 "2020-09-02T16:02:50Z")

</div>

Be careful using `.File.Dir`, because it depends on OS environment. (UNIX vs Windows)

in UNIX `File.Dir` will produce `/notebooks/`,  
in Windows `File.Dir` will produce `\notebooks\`

> <https://github.com/osmancakir/osmancakirioblog/blob/master/themes/berbera/layouts/index.html#L85>

using simple` replace` will do the job,

---

<div class="post-metadata">

**Author:** ![ju52](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/ju52/32/6749_2.png) [@ju52](https://discourse.gohugo.io/u/ju52)\
**Post date:** [September 2, 2020, 4:03pm UTC](https://discourse.gohugo.io/t/posts-not-showing-in-windows-but-showing-in-ubuntu-hugo-server/27971/3 "2020-09-02T16:03:02Z")

</div>

what’s your command on Windows?  
use the options `--watch --noHTTPCache`

---

<div class="post-metadata">

**Author:** ![osmancakirio](https://avatars.discourse-cdn.com/v4/letter/o/f0a364/32.png) [@osmancakirio](https://discourse.gohugo.io/u/osmancakirio)\
**Post date:** [September 3, 2020, 1:51pm UTC](https://discourse.gohugo.io/t/posts-not-showing-in-windows-but-showing-in-ubuntu-hugo-server/27971/4 "2020-09-03T13:51:28Z")

</div>

thank you so much. that change did the trick!

---

<div class="post-metadata">

**Author:** ![system](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/system/32/1_2.png) [@system](https://discourse.gohugo.io/u/system)\
**Post date:** [September 5, 2020, 1:51pm UTC](https://discourse.gohugo.io/t/posts-not-showing-in-windows-but-showing-in-ubuntu-hugo-server/27971/5 "2020-09-05T13:51:31Z")

</div>

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