diff --git a/config.toml b/config.toml index c2c0816..c6f34e0 100644 --- a/config.toml +++ b/config.toml @@ -8,3 +8,4 @@ theme = "api-theme" [outputs] section = ["api"] + page = ["api"] diff --git a/content/items/home/index.md b/content/items/home/index.md index ca9e5de..721dac3 100644 --- a/content/items/home/index.md +++ b/content/items/home/index.md @@ -4,6 +4,11 @@ date: 2020-10-18 type: image slug: home featuredImage: "image.jpg" +featuredVideo: "video" +n: "escuela" +s: "ujue" +e: "huerta" +o: "hoguera" --- diff --git a/resources/_gen/assets/scss/scss/main.scss_48b060fe05b0a273d182ef83c0605941.content b/resources/_gen/assets/scss/scss/main.scss_48b060fe05b0a273d182ef83c0605941.content index a36b8df..0f5846c 100644 --- a/resources/_gen/assets/scss/scss/main.scss_48b060fe05b0a273d182ef83c0605941.content +++ b/resources/_gen/assets/scss/scss/main.scss_48b060fe05b0a273d182ef83c0605941.content @@ -1 +1 @@ -body{background:#4fa3cb;color:#fff;font-family:roboto,arial,sans-serif}a{text-decoration:none;font-weight:700;color:#fff}h1,h2{text-align:center}h1{font-size:5em;font-size:10vw}h2{font-family:serif}ul{list-style:none;width:80%;margin:auto}ul li{float:left;min-width:200px;padding:5px;background:#fff;color:#4fa3cb;text-align:center;border-radius:10px}ul li a{color:#4fa3cb} \ No newline at end of file +body{background:#4fa3cb;color:#fff;font-family:roboto,arial,sans-serif}a{text-decoration:none;font-weight:700;color:#fff}h1,h2{text-align:center}h1{font-size:5em;font-size:10vw}h2{font-family:serif}ul{list-style:none;width:80%;margin:auto}ul li{float:left;min-width:200px;padding:5px;background:#fff;color:#4fa3cb;text-align:center;border-radius:10px;margin:0 20px}ul li a{color:#4fa3cb} \ No newline at end of file diff --git a/resources/_gen/assets/scss/scss/main.scss_48b060fe05b0a273d182ef83c0605941.json b/resources/_gen/assets/scss/scss/main.scss_48b060fe05b0a273d182ef83c0605941.json index 06e0a19..225358c 100644 --- a/resources/_gen/assets/scss/scss/main.scss_48b060fe05b0a273d182ef83c0605941.json +++ b/resources/_gen/assets/scss/scss/main.scss_48b060fe05b0a273d182ef83c0605941.json @@ -1 +1 @@ -{"Target":"scss/main.min.b67e46bdef4830eb2e3f962611e06061ad2ad3f280cd18b0a311bdb26eb4f36d.css","MediaType":"text/css","Data":{"Integrity":"sha256-tn5Gve9IMOsuP5YmEeBgYa0q0/KAzRiwoxG9sm60820="}} \ No newline at end of file +{"Target":"scss/main.min.f18d11e814b0988f8eee852238763dc9a02a0d41e808d56520632fc83d161543.css","MediaType":"text/css","Data":{"Integrity":"sha256-8Y0R6BSwmI+O7oUiOHY9yaAqDUHoCNVlIGMvyD0WFUM="}} \ No newline at end of file diff --git a/themes/api-theme/assets/scss/.main.scss.swp b/themes/api-theme/assets/scss/.main.scss.swp index eb81ed9..da5c81b 100644 Binary files a/themes/api-theme/assets/scss/.main.scss.swp and b/themes/api-theme/assets/scss/.main.scss.swp differ diff --git a/themes/api-theme/assets/scss/main.scss b/themes/api-theme/assets/scss/main.scss index f1a8bb5..1742863 100644 --- a/themes/api-theme/assets/scss/main.scss +++ b/themes/api-theme/assets/scss/main.scss @@ -21,7 +21,7 @@ ul { width:80%; margin:auto; li { - float:left; min-width:200px; padding:5px; background:$primary; color:$background; text-align:center; border-radius:10px; + float:left; min-width:200px; padding:5px; background:$primary; color:$background; text-align:center; border-radius:10px; margin:0 20px; a { color:$background;} } } diff --git a/themes/api-theme/layouts/_default/item.api.json b/themes/api-theme/layouts/_default/item.api.json index 3038358..fd727cf 100644 --- a/themes/api-theme/layouts/_default/item.api.json +++ b/themes/api-theme/layouts/_default/item.api.json @@ -1,3 +1,12 @@ { - "name": "{{ .Title }}", "featuredImage": "{{ .Params.featuredImage }}", "content": {{ .Content | jsonify }} + "name": "{{ .Slug }}", + "title": "{{ .Title }}", + "title": "{{ .Permalink }}", + "featuredImage": "{{ .Params.featuredImage }}", + "featuredVideo": "{{ .Params.featuredVideo }}", + "n":"{{ .Params.n }}", + "s":"{{ .Params.s }}", + "e":"{{ .Params.e }}", + "o":"{{ .Params.o }}", + "content": {{ .Content | jsonify }} } diff --git a/themes/api-theme/layouts/_default/list.api.json b/themes/api-theme/layouts/_default/list.api.json index 41b8d97..0b503fe 100644 --- a/themes/api-theme/layouts/_default/list.api.json +++ b/themes/api-theme/layouts/_default/list.api.json @@ -1,7 +1,9 @@ {{ define "response" }} -[ - {{ range $index, $e := .Data.Pages }} - {{ if $index }}, {{ end }}{{ .Render "item" }} - {{ end }} -] +{ +{{ with .Section }}"section" : "{{ . }}",{{ end }} +"count" : "{{ len .Data.Pages }}", +"items" : [{{ range $i, $e := .Data.Pages }} +{{ if $i }}, {{ end }}{{ .Render "item_reduced" }} +{{ end }}] +} {{ end }} diff --git a/themes/api-theme/layouts/index.html b/themes/api-theme/layouts/index.html index b80c571..981ba9d 100644 --- a/themes/api-theme/layouts/index.html +++ b/themes/api-theme/layouts/index.html @@ -2,6 +2,7 @@

Hugo API Service

Developed for render content on Angular

{{ end }}