├── layouts ├── 404.html ├── _default │ ├── _markup │ │ └── render-link.html │ ├── li.html │ ├── list.html │ └── single.html ├── partials │ ├── author_name.html │ ├── runnable-modal.html │ ├── author_image.html │ ├── author_profile.html │ ├── editor_profile.html │ ├── page_header.html │ ├── github_engage_widget.html │ ├── author_detail.html │ ├── header.html │ └── footer.html └── shortcodes │ └── runnable.html ├── exampleSite ├── layouts │ └── .gitkeep ├── static │ ├── .gitignore │ └── images │ │ ├── default.jpg │ │ └── logo.svg ├── .gitignore ├── README.md ├── content │ ├── about.md │ └── post │ │ ├── hugoisforlovers.md │ │ ├── migrate-from-jekyll.md │ │ └── goisforlovers.md ├── LICENSE └── config.toml ├── images ├── tn.png ├── screenshot.png └── dgraph-black.png ├── static ├── images │ └── dgraph-black.png ├── js │ ├── script.min.js │ ├── search.js │ ├── custom.js │ ├── runnable.js │ └── clipboard.min.js └── css │ ├── runnable-custom.css │ ├── github-engage.css │ ├── runnable.css │ ├── heart.scss │ └── heart.css ├── theme.toml ├── LICENSE.md └── README.md /layouts/404.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /exampleSite/layouts/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /exampleSite/static/.gitignore: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /images/tn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dgraph-io/hugo-dgraph-theme/HEAD/images/tn.png -------------------------------------------------------------------------------- /images/screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dgraph-io/hugo-dgraph-theme/HEAD/images/screenshot.png -------------------------------------------------------------------------------- /images/dgraph-black.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dgraph-io/hugo-dgraph-theme/HEAD/images/dgraph-black.png -------------------------------------------------------------------------------- /static/images/dgraph-black.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dgraph-io/hugo-dgraph-theme/HEAD/static/images/dgraph-black.png -------------------------------------------------------------------------------- /exampleSite/static/images/default.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dgraph-io/hugo-dgraph-theme/HEAD/exampleSite/static/images/default.jpg -------------------------------------------------------------------------------- /static/js/script.min.js: -------------------------------------------------------------------------------- 1 | $(document).ready(function() { 2 | var d = $(".browsehappy"); 3 | $(".browsehappy__dismiss").click(d.remove.bind(d)); 4 | }); 5 | -------------------------------------------------------------------------------- /layouts/_default/_markup/render-link.html: -------------------------------------------------------------------------------- 1 | {{ .Text }} -------------------------------------------------------------------------------- /layouts/partials/author_name.html: -------------------------------------------------------------------------------- 1 | 7 | 8 | {{if eq .user "bturner" }} Brandon Turner 9 | {{else if eq .user "molly"}} Molly Graham 10 | {{end}} 11 | -------------------------------------------------------------------------------- /exampleSite/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | *.exe 23 | *.test 24 | 25 | /public 26 | /themes 27 | .DS_Store 28 | -------------------------------------------------------------------------------- /layouts/partials/runnable-modal.html: -------------------------------------------------------------------------------- 1 |
-------------------------------------------------------------------------------- /static/css/runnable-custom.css: -------------------------------------------------------------------------------- 1 | /** 2 | * runnable-custom.css 3 | * 4 | * This file contains CSS rules that overrides the CSS rules specific to blog 5 | * that interferes with runnable styles. 6 | * All CSS rules in this file should be scoped to .runnable or #runnable-modal 7 | * in order to avoid polluting the global CSS namespace for the blog 8 | */ 9 | 10 | .article-content .runnable a { 11 | border-bottom: none; 12 | } 13 | -------------------------------------------------------------------------------- /theme.toml: -------------------------------------------------------------------------------- 1 | name = "Dgraph" 2 | license = "MIT" 3 | licenselink = "https://github.com/dgraph-io/hugo-dgraph-theme/blob/master/LICENSE.md" 4 | description = "An elegant open source theme for your open source project blog." 5 | homepage = "https://blog.dgraph.io/" 6 | tags = ["blog", "company"] 7 | features = ["blog", "github", "discourse","twitter"] 8 | min_version = 0.15 9 | 10 | [author] 11 | name = "Dgraph Labs" 12 | homepage = "https://blog.dgraph.io" 13 | 14 | -------------------------------------------------------------------------------- /layouts/partials/author_image.html: -------------------------------------------------------------------------------- 1 | 8 | 9 | {{if eq .user "bturner" }} 10 |
11 | {{else if eq .user "molly"}}
12 |
13 | {{end}}
14 |
--------------------------------------------------------------------------------
/layouts/partials/author_profile.html:
--------------------------------------------------------------------------------
1 |
12 |
--------------------------------------------------------------------------------
/layouts/partials/editor_profile.html:
--------------------------------------------------------------------------------
1 | {{if .Params.editor }}
2 |
13 | {{end}}
--------------------------------------------------------------------------------
/exampleSite/README.md:
--------------------------------------------------------------------------------
1 | hugoBasicExample
2 | ==========
3 |
4 | This is an example site for [Hugo](http://gohugo.io/).
5 |
6 | It is intended to be a demo site for the various [Hugo themes][].
7 |
8 | # Using
9 |
10 | 1. First, [install Hugo](http://gohugo.io/overview/installing/);
11 | 2. Then, clone this repository;
12 | 3. Clone the [Hugo themes][];
13 | 4. Run Hugo and select the theme of your choosing.
14 |
15 | In other words:
16 |
17 | git clone https://github.com/spf13/HugoBasicExample.git
18 | cd HugoBasicExample
19 | git clone --recursive https://github.com/spf13/hugoThemes.git themes
20 | hugo server -t themename
21 |
22 |
23 | Enjoy!
24 |
25 | [Hugo themes]: https://github.com/spf13/hugoThemes
26 |
--------------------------------------------------------------------------------
/exampleSite/content/about.md:
--------------------------------------------------------------------------------
1 | +++
2 | title = "About Hugo"
3 | date = "2014-04-09"
4 | menu = "main"
5 | +++
6 |
7 | Hugo is a static site engine written in Go.
8 |
9 |
10 | It makes use of a variety of open source projects including:
11 |
12 | * [Cobra](https://github.com/spf13/cobra)
13 | * [Viper](https://github.com/spf13/viper)
14 | * [J Walter Weatherman](https://github.com/spf13/jWalterWeatherman)
15 | * [Cast](https://github.com/spf13/cast)
16 |
17 | Learn more and contribute on [GitHub](https://github.com/spf13).
18 |
19 | ## Setup
20 |
21 | Some fun facts about [Hugo](http://gohugo.io/):
22 |
23 | * Built in [Go](http://golang.org/)
24 | * Loosely inspired by [Jekyll](http://jekyllrb.com/)
25 | * Primarily developed by [spf13](http://spf13.com/) on the train while commuting to and from Manhattan.
26 | * Coded in [Vim](http://vim.org) using [spf13-vim](http://vim.spf13.com/)
27 |
28 | Have questions or suggestions? Feel free to [open an issue on GitHub](https://github.com/spf13/hugo/issues/new) or [ask me on Twitter](https://twitter.com/spf13).
29 |
30 | Thanks for reading!
31 |
--------------------------------------------------------------------------------
/LICENSE.md:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2016 Dgraph Labs, Inc.
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy of
6 | this software and associated documentation files (the "Software"), to deal in
7 | the Software without restriction, including without limitation the rights to
8 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9 | the Software, and to permit persons to whom the Software is furnished to do so,
10 | subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 |
--------------------------------------------------------------------------------
/exampleSite/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2014 Steve Francia
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
--------------------------------------------------------------------------------
/layouts/partials/page_header.html:
--------------------------------------------------------------------------------
1 | I’m coffee drinking Boston based Backend Developer with — one project at a time.
47 | 48 | {{ else if eq .user "molly" }} 49 | 67 |I'm Molly Graham, a web developer working in NYC. Plain and simple, I love programming. I'm passionate about writing clean, unique, elegant code. Codes that work.
68 | {{end}} 69 | -------------------------------------------------------------------------------- /static/js/search.js: -------------------------------------------------------------------------------- 1 | // Algolia vars 2 | const appId = 'H10LQ4I695'; 3 | const publicKey = 'b57c0b5231fd34f2077cf00e76cc8f8e'; 4 | const index = 'dgraph_blog'; 5 | 6 | let showSearch = true; 7 | let widgetContainer = {}; 8 | 9 | // Toggles search interface's visibility 10 | const toggleVisibility = () => { 11 | widgetContainer.style.display = showSearch? "none" : ""; 12 | widgetContainer.querySelector('input').focus(); 13 | showSearch = !showSearch; 14 | } 15 | 16 | const parseSummary = (summary) => summary.trim().replace("", "").replace("
", ""); 17 | 18 | // Renders tags 19 | const renderTags = tags => ` 20 |{{ .Inner }}
42 |
43 | curl localhost:8080/query -XPOST -d '
51 | {{ .Inner }}' | python -m json.tool | less
52 | import io.dgraph.client.DgraphClient;
56 | import io.dgraph.client.GrpcDgraphClient;
57 | import io.dgraph.client.DgraphResult;
58 |
59 | public class DgraphMain {
60 | public static void main(final String[] args) {
61 | final DgraphClient dgraphClient = GrpcDgraphClient.newInstance("localhost", 8080);
62 | final DgraphResult result = dgraphClient.query("{{ .Inner }}");
63 | System.out.println(result.toJsonObject().toString());
64 | }
65 | }
66 |
99 |