Today, I’ve accidentally deleted local .git index folder of my blog repository, because of this I was not able to submit new content. Tried to restore files by File Scavenger, but it was too late because I was in the middle of active file operations and .git folder was erased without any chance of returning it back to drive.
I’ve tried to recreate index by means of:
git init But Git-Bash-console threw me an error:
I bet that many of you would like to open site links not in the same window, but in a background tab. Such behavior is restricted by default settings of most Hugo themes. Mainroad is restricting it also. Here is a solution on how to overcome weird limitation.
Create file render-link.html in _default folder of the theme. Name_of_your_site\themes\mainroad\layouts\_default\_markup\render-link.html Contents of render-link.html should be like this:
<a href="{{ .Destination | safeURL }}"{{ with .