Probably this concern has been addressed several times here but I will give a try to get other people's perspective from my situation. I am feeling sort of hopeless these times.
I am in my last year of my PhD in mathematics and doing my dissertation soon, my research was mainly devoted to algebraic topology and I made some progress in my advisor's particular area. However, I faced some problems during my studies (personal issues) and I never built a strong relationship with my advisor; so I could not finish all the initial research proposal intended for my PhD thesis.
I recently had a sincere talk with my advisor about my future, and he said that my progress is worth for a PhD thesis but it is not anything very surprising that is worth publishing, so I will be graduating with zero publications. He said that my chances of getting a PostDoc positions are really low and that I can not expect a strong recommendation letter from him. My advisor has a few collaborators (from overseas mainly) and none in the local department. He also never supervised another Master or PhD student while I was under his supervision, then I never got a chance to network or engage properly with other classmates. My advisor kindly suggested to explore other options in the job-market besides academia.
I like to explore new things, and in my free time during my studies I attended several teaching workshops, seminars and courses (I got a small degree in "university teaching"), and I am also familiar with Python, R, Matlab and Sage; however, I learn those things for fun and I have never really worked in a big project using any of that.
I do not know what to focus on and what kind of job should I look for after I finish my PhD
I would like to keep doing research in Math, but my area is not very popular lately and I feel that I have no chances of succeed getting a PostDoc; I also feel that I do not have (demonstrable) skills to perform a job with "real-life" applications so probably my chances getting there are also low. And I do not really know the Teaching job-market, I think that those positions are temporary and it would be hard to find a place that is willing to sponsor a work visa (I am not a US-citizen, and the job market in the third-world country that I am from is nonexistent for PhD's in this area)