├── hugo_src
├── themes
│ └── hugo_theme_robust
│ │ ├── static
│ │ ├── css
│ │ │ ├── custom.css
│ │ │ └── styles.css
│ │ └── images
│ │ │ └── default.jpg
│ │ ├── images
│ │ ├── tn.png
│ │ └── screenshot.png
│ │ ├── theme.toml
│ │ ├── layouts
│ │ ├── partials
│ │ │ ├── pagination.html
│ │ │ ├── default_foot.html
│ │ │ ├── sidebar.html
│ │ │ └── default_head.html
│ │ ├── _default
│ │ │ ├── li.html
│ │ │ ├── terms.html
│ │ │ ├── list.html
│ │ │ └── single.html
│ │ ├── index.html
│ │ └── rss.xml
│ │ ├── LICENSE.md
│ │ └── README.md
└── config.toml
├── Webhook.png
├── .gitignore
├── tsconfig.json
├── package.json
├── LICENSE.md
├── docker-compose.yaml
├── modules_src
├── hugo.ts
└── contentful.ts
├── foopipes.yml
└── Readme.md
/hugo_src/themes/hugo_theme_robust/static/css/custom.css:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Webhook.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AreteraAB/Contentful2Hugo/HEAD/Webhook.png
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | modules/
2 | node_modules/
3 | output/
4 | contentfulkvs/
5 | hugo_src/content/
6 | hugo_src/static/
7 | start.ps1
8 | .vs/
9 |
--------------------------------------------------------------------------------
/hugo_src/themes/hugo_theme_robust/images/tn.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AreteraAB/Contentful2Hugo/HEAD/hugo_src/themes/hugo_theme_robust/images/tn.png
--------------------------------------------------------------------------------
/hugo_src/themes/hugo_theme_robust/images/screenshot.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AreteraAB/Contentful2Hugo/HEAD/hugo_src/themes/hugo_theme_robust/images/screenshot.png
--------------------------------------------------------------------------------
/hugo_src/themes/hugo_theme_robust/static/images/default.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AreteraAB/Contentful2Hugo/HEAD/hugo_src/themes/hugo_theme_robust/static/images/default.jpg
--------------------------------------------------------------------------------
/hugo_src/config.toml:
--------------------------------------------------------------------------------
1 | contentdir = "content"
2 | layoutdir = "layouts"
3 | publishdir = "public"
4 | builddrafts = false
5 | baseurl = "http://yoursite.example.com/"
6 | canonifyurls = true
7 |
8 | [taxonomies]
9 | category = "categories"
10 | tag = "tags"
11 |
12 | [params]
13 | description = "Tesla's Awesome Hugo Site"
14 | author = "Nikola Tesla"
15 |
--------------------------------------------------------------------------------
/hugo_src/themes/hugo_theme_robust/theme.toml:
--------------------------------------------------------------------------------
1 | name = "Robust"
2 | license = "MIT"
3 | licenselink = "https://github.com/dim0627/hugo_theme_robust/blob/master/LICENSE.md"
4 | description = "Robust is blog theme for hugo."
5 | tags = ["blog"]
6 | features = ["blog"]
7 | min_version = 0.15
8 |
9 | [author]
10 | name = "Daisuke Tsuji"
11 | homepage = "http://yet.unresolved.xyz/"
12 |
13 |
--------------------------------------------------------------------------------
/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compileOnSave": true,
3 | "compilerOptions": {
4 | "target": "es6",
5 | "module": "commonjs",
6 | "moduleResolution": "node",
7 | "noImplicitAny": false,
8 | "removeComments": true,
9 | "preserveConstEnums": true,
10 | "sourceMap": true,
11 | "rootDir": "modules_src",
12 | "outDir": "modules"
13 | },
14 | "exclude": [
15 | "node_modules"
16 | ]
17 | }
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "Contentful2Hugo",
3 | "version": "1.0.0",
4 | "description": "Contentful2Hugo using Foopipes",
5 | "scripts": {
6 | "test": "echo \"Error: no test specified\" && exit 1"
7 | },
8 | "author": "",
9 | "license": "ISC",
10 | "dependencies": {
11 | "foopipes": "^0.6.2",
12 | "contentful": "^3.7.0"
13 | },
14 | "devDependencies": {
15 | "@types/node": "^6.0.45",
16 | "typescript": "next"
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/hugo_src/themes/hugo_theme_robust/layouts/partials/pagination.html:
--------------------------------------------------------------------------------
1 | {{ if or (.Paginator.HasPrev) (.Paginator.HasNext) }}
2 |
11 | {{ end }}
12 |
--------------------------------------------------------------------------------
/LICENSE.md:
--------------------------------------------------------------------------------
1 | Copyright 2017 Aretera AB
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
4 |
5 | http://www.apache.org/licenses/LICENSE-2.0
6 |
7 | Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
--------------------------------------------------------------------------------
/hugo_src/themes/hugo_theme_robust/layouts/_default/li.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
{{ .Title }}
7 |
{{ .Summary }}
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/hugo_src/themes/hugo_theme_robust/layouts/_default/terms.html:
--------------------------------------------------------------------------------
1 |
2 | {{ partial "default_head.html" . }}
3 |
4 |
5 |
6 |
7 |
8 | {{ range $key, $value := .Data.Terms }}
9 |
{{ $key }}
10 | {{ end }}
11 |
12 |
13 |
14 |
15 | {{ partial "sidebar.html" . }}
16 |
17 |
18 |
19 | {{ partial "default_foot.html" . }}
20 |
21 |
--------------------------------------------------------------------------------
/hugo_src/themes/hugo_theme_robust/layouts/index.html:
--------------------------------------------------------------------------------
1 |
2 | {{ partial "default_head.html" . }}
3 |
4 |
5 |
6 |
7 |
8 | {{ range $key, $value := .Paginator.Pages }}
9 |
10 | {{ .Render "li" }}
11 |
12 | {{ end }}
13 |
14 |
15 |
16 | {{ partial "pagination.html" . }}
17 |
18 |
19 |
20 |
21 | {{ partial "sidebar.html" . }}
22 |
23 |
24 |
25 | {{ partial "default_foot.html" . }}
26 |
27 |
--------------------------------------------------------------------------------
/hugo_src/themes/hugo_theme_robust/layouts/_default/list.html:
--------------------------------------------------------------------------------
1 |
2 | {{ partial "default_head.html" . }}
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 | {{ range (.Paginate .Data.Pages).Pages }}
11 |
12 | {{ .Render "li" }}
13 |
14 | {{ end }}
15 |
16 |
17 |
18 | {{ partial "pagination.html" . }}
19 |
20 |
21 |
22 |
23 | {{ partial "sidebar.html" . }}
24 |
25 |
26 |
27 | {{ partial "default_foot.html" . }}
28 |
29 |
--------------------------------------------------------------------------------
/hugo_src/themes/hugo_theme_robust/layouts/rss.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | {{ .Site.Title }}
4 | {{ .Permalink }}
5 | en-us
6 | {{ .Site.Params.Author }}
7 | (C) {{ .Site.LastChange.Year }}
8 | {{ .Date }}
9 |
10 | {{ range .Data.Pages }}
11 | {{ if eq .Type "post"}}
12 | -
13 | {{ .Title }}
14 | {{ .Permalink }}
15 | {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 MST" }}
16 | {{ .Site.Params.Author }}
17 | {{ .Permalink }}
18 | {{ .Content | html }}
19 |
20 | {{ end }}
21 | {{ end }}
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/docker-compose.yaml:
--------------------------------------------------------------------------------
1 | version: '2'
2 | services:
3 | hugo:
4 | image: jojomi/hugo
5 | volumes:
6 | - ./hugo_src:/src
7 | - ./output/:/output
8 | environment:
9 | - HUGO_WATCH=True
10 | - HUGO_THEME=hugo_theme_robust
11 | - HUGO_BASEURL=localhost
12 | command: ["/run.sh", "--appendPort=false"]
13 |
14 | foopipes:
15 | image: aretera/foopipes:latest-sdk
16 | volumes:
17 | - .:/project
18 | - ./hugo_src/content:/var/output
19 | - ./hugo_src/static/images/:/var/images
20 | ports:
21 | - 5000:80
22 | environment:
23 | - spaceId=${spaceId}
24 | - accessToken=${accessToken}
25 |
26 | web:
27 | image: jojomi/nginx-static
28 | volumes:
29 | - ./output:/var/www
30 | environment:
31 | - VIRTUAL_HOST=localhost
32 | ports:
33 | - 80:80
34 | restart: always
35 | ngrok:
36 | image: wernight/ngrok
37 | links:
38 | - foopipes
39 | ports:
40 | - 4040:4040
41 | command: ["ngrok", "http", "foopipes:5000"]
42 |
--------------------------------------------------------------------------------
/hugo_src/themes/hugo_theme_robust/LICENSE.md:
--------------------------------------------------------------------------------
1 | # The MIT License (MIT)
2 |
3 | Copyright (c) 2015 Daisuke Tsuji.
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
13 | all 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
21 | THE SOFTWARE.
22 |
--------------------------------------------------------------------------------
/hugo_src/themes/hugo_theme_robust/README.md:
--------------------------------------------------------------------------------
1 | 
2 |
3 | # Features
4 |
5 | * Google Analytics
6 | * Disqus
7 | * Share Buttons(fb, twitter, google+, pocket)
8 | * Eye-catching Image
9 | * MicroData
10 | * Readable text(Customized Vertical Rhythm).
11 |
12 | # Installation
13 |
14 | [hugoThemes#Installing Themes](https://github.com/spf13/hugoThemes#installing-themes).
15 |
16 | # Configuration
17 |
18 | **config.yaml**
19 |
20 | ``` toml
21 | baseurl = "http://hugo.spf13.com/"
22 | title = "Hugo Themes"
23 | author = "Steve Francia"
24 | copyright = "Copyright (c) 2008 - 2014, Steve Francia; all rights reserved."
25 | canonifyurls = true
26 | paginate = 3
27 |
28 | [params]
29 | disqusShortname = "your disqus id." # optional
30 | ```
31 |
32 | **example post**
33 |
34 | ``` toml
35 | +++
36 | title = "Getting Started with Hugo"
37 | description = ""
38 | tags = [
39 | "go",
40 | "golang",
41 | "hugo",
42 | "development",
43 | ]
44 | date = "2014-04-02"
45 | categories = [
46 | "Development",
47 | "golang",
48 | ]
49 |
50 | image = "image.jpg" # optional
51 | toc = false # optional, When set to FALSE this parameter, table of contents not appears in only this article.
52 | +++
53 |
54 | Contents here
55 | ```
56 |
57 | # Contact us
58 |
59 | Please mail to `dim0627@gmail.com` or SNS.
60 |
61 | [https://www.facebook.com/daisuke.tsuji.735](https://www.facebook.com/daisuke.tsuji.735)
62 |
63 |
--------------------------------------------------------------------------------
/hugo_src/themes/hugo_theme_robust/layouts/partials/default_foot.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
8 |
9 |
10 |
11 |
12 |
13 | {{ with .Site.Params.GoogleAnalyticsUserID }}
14 |
22 | {{ end }}
23 |
24 |