Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tgrk/website

Personal Site using Hugo
https://github.com/tgrk/website

Last synced: 17 days ago
JSON representation

Personal Site using Hugo

Awesome Lists containing this project

README

        

# Hugo based website

## Publish new content

$ hugo new post/my-new-post.md
$ hugo

## Development with reload

$ hugo server

## Update hugo

$ cd ~/Projects/libs
$ git clone https://github.com/gohugoio/hugo.git
$ cd hugo
$ go install --tags extended

## Theme customizations

Fetch submodules
$ git submodule update --init --recursive

`/layouts/partials/footer.html`

```html

(function () {
window.ybug_settings = { "id": "b2cg6w01cs" };
var ybug = document.createElement('script'); ybug.type = 'text/javascript'; ybug.async = true;
ybug.src = 'https://ybug.io/api/v1/button/' + window.ybug_settings.id + '.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ybug, s);
})();

```

```diff
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index b23f55f..13da3e3 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -47,3 +47,13 @@ var _hmt = _hmt || [];
})();

{{ end }}
+
+
+ (function () {
+ window.ybug_settings = { "id": "b2cg6w01cs" };
+ var ybug = document.createElement('script'); ybug.type = 'text/javascript'; ybug.async = true;
+ ybug.src = 'https://ybug.io/api/v1/button/' + window.ybug_settings.id + '.js';
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ybug, s);
+ })();
+
+
```