commit 91aeba83075c99c196dfbe27bb9768827e74aecb Author: Siroco Date: Wed Oct 21 12:47:37 2020 +0200 Api Theme and Example content diff --git a/archetypes/default.md b/archetypes/default.md new file mode 100644 index 0000000..00e77bd --- /dev/null +++ b/archetypes/default.md @@ -0,0 +1,6 @@ +--- +title: "{{ replace .Name "-" " " | title }}" +date: {{ .Date }} +draft: true +--- + diff --git a/config.toml b/config.toml new file mode 100644 index 0000000..c2c0816 --- /dev/null +++ b/config.toml @@ -0,0 +1,10 @@ +baseURL = "http://api.beire.soinumapa.net" +languageCode = "es" +title = "Beire - Backend static API" +theme = "api-theme" + +[outputFormats.api] + mediatype ="application/json" + +[outputs] + section = ["api"] diff --git a/content/items/home/index.md b/content/items/home/index.md new file mode 100644 index 0000000..ca9e5de --- /dev/null +++ b/content/items/home/index.md @@ -0,0 +1,19 @@ +--- +title: "Beire : Mar de tierra" +date: 2020-10-18 +type: image +slug: home +featuredImage: "image.jpg" + +--- + +Un texto de contenido + +## Con un lindo markkdown + +"Unas comillas" y 'Otras comillas" y así hasta el inforínicos +.. + +#as0dfa0iasdf + +¿¡asd¡'¡'asdf¡'ads diff --git a/content/pages/creditos.md b/content/pages/creditos.md new file mode 100644 index 0000000..b176099 --- /dev/null +++ b/content/pages/creditos.md @@ -0,0 +1,8 @@ +--- +title: "Creditos" +date: 2020-10-21T10:29:45+02:00 +featuredImage: "image.jpg" +--- + +Aquí el texto de créditos + diff --git a/resources/_gen/assets/scss/scss/main.scss_48b060fe05b0a273d182ef83c0605941.content b/resources/_gen/assets/scss/scss/main.scss_48b060fe05b0a273d182ef83c0605941.content new file mode 100644 index 0000000..a36b8df --- /dev/null +++ b/resources/_gen/assets/scss/scss/main.scss_48b060fe05b0a273d182ef83c0605941.content @@ -0,0 +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 diff --git a/resources/_gen/assets/scss/scss/main.scss_48b060fe05b0a273d182ef83c0605941.json b/resources/_gen/assets/scss/scss/main.scss_48b060fe05b0a273d182ef83c0605941.json new file mode 100644 index 0000000..06e0a19 --- /dev/null +++ b/resources/_gen/assets/scss/scss/main.scss_48b060fe05b0a273d182ef83c0605941.json @@ -0,0 +1 @@ +{"Target":"scss/main.min.b67e46bdef4830eb2e3f962611e06061ad2ad3f280cd18b0a311bdb26eb4f36d.css","MediaType":"text/css","Data":{"Integrity":"sha256-tn5Gve9IMOsuP5YmEeBgYa0q0/KAzRiwoxG9sm60820="}} \ No newline at end of file diff --git a/resources/_gen/assets/scss/scss/main.scss_545d7c693f5b5f74d129019eb310e64e.content b/resources/_gen/assets/scss/scss/main.scss_545d7c693f5b5f74d129019eb310e64e.content new file mode 100644 index 0000000..76a97e4 --- /dev/null +++ b/resources/_gen/assets/scss/scss/main.scss_545d7c693f5b5f74d129019eb310e64e.content @@ -0,0 +1 @@ +body{background-color:#000;color:#fff} \ No newline at end of file diff --git a/resources/_gen/assets/scss/scss/main.scss_545d7c693f5b5f74d129019eb310e64e.json b/resources/_gen/assets/scss/scss/main.scss_545d7c693f5b5f74d129019eb310e64e.json new file mode 100644 index 0000000..f58a590 --- /dev/null +++ b/resources/_gen/assets/scss/scss/main.scss_545d7c693f5b5f74d129019eb310e64e.json @@ -0,0 +1 @@ +{"Target":"style.main.min.1eafb71a8980a5d4fbac77f97fe92147921ccc14d41574db0d9d441526d2498c.css","MediaType":"text/css","Data":{"Integrity":"sha256-Hq+3GomApdT7rHf5f+khR5IczBTUFXTbDZ1EFSbSSYw="}} \ No newline at end of file diff --git a/resources/_gen/assets/scss/scss/main.scss_f300667da4f5b5f84e1a9e0702b2fdde.content b/resources/_gen/assets/scss/scss/main.scss_f300667da4f5b5f84e1a9e0702b2fdde.content new file mode 100644 index 0000000..623890b --- /dev/null +++ b/resources/_gen/assets/scss/scss/main.scss_f300667da4f5b5f84e1a9e0702b2fdde.content @@ -0,0 +1,3 @@ +body { + background-color: #000; + color: #fff; } diff --git a/resources/_gen/assets/scss/scss/main.scss_f300667da4f5b5f84e1a9e0702b2fdde.json b/resources/_gen/assets/scss/scss/main.scss_f300667da4f5b5f84e1a9e0702b2fdde.json new file mode 100644 index 0000000..e2e3d4c --- /dev/null +++ b/resources/_gen/assets/scss/scss/main.scss_f300667da4f5b5f84e1a9e0702b2fdde.json @@ -0,0 +1 @@ +{"Target":"scss/main.css","MediaType":"text/css","Data":{}} \ No newline at end of file diff --git a/themes/api-theme/LICENSE b/themes/api-theme/LICENSE new file mode 100644 index 0000000..faff36e --- /dev/null +++ b/themes/api-theme/LICENSE @@ -0,0 +1,20 @@ +The MIT License (MIT) + +Copyright (c) 2020 YOUR_NAME_HERE + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/themes/api-theme/archetypes/default.md b/themes/api-theme/archetypes/default.md new file mode 100644 index 0000000..ac36e06 --- /dev/null +++ b/themes/api-theme/archetypes/default.md @@ -0,0 +1,2 @@ ++++ ++++ diff --git a/themes/api-theme/assets/scss/.main.scss.swp b/themes/api-theme/assets/scss/.main.scss.swp new file mode 100644 index 0000000..eb81ed9 Binary files /dev/null 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 new file mode 100644 index 0000000..f1a8bb5 --- /dev/null +++ b/themes/api-theme/assets/scss/main.scss @@ -0,0 +1,27 @@ +$background: #4fa3cb; +$primary: #fff; + +body { + background:$background; + color:$primary; + font-family:"Roboto", arial, sans-serif; +} + +a { text-decoration:none; font-weight:bold; color:$primary;} + +h1, +h2 {text-align:center;} + +h1 { font-size:5em; font-size:10vw; } + +h2 { font-family:serif; } + +ul { + list-style:none; + width:80%; + margin:auto; + li { + float:left; min-width:200px; padding:5px; background:$primary; color:$background; text-align:center; border-radius:10px; + a { color:$background;} + } +} diff --git a/themes/api-theme/layouts/404.html b/themes/api-theme/layouts/404.html new file mode 100644 index 0000000..2a0f3b0 --- /dev/null +++ b/themes/api-theme/layouts/404.html @@ -0,0 +1 @@ +

No disponible

diff --git a/themes/api-theme/layouts/_default/baseof.api.json b/themes/api-theme/layouts/_default/baseof.api.json new file mode 100644 index 0000000..da2e93f --- /dev/null +++ b/themes/api-theme/layouts/_default/baseof.api.json @@ -0,0 +1,3 @@ +{ + "data" : {{ block "response" .}}{{ end }} +} diff --git a/themes/api-theme/layouts/_default/baseof.html b/themes/api-theme/layouts/_default/baseof.html new file mode 100644 index 0000000..5f8e2ec --- /dev/null +++ b/themes/api-theme/layouts/_default/baseof.html @@ -0,0 +1,11 @@ + + + {{- partial "head.html" . -}} + + {{- partial "header.html" . -}} +
+ {{- block "main" . }}{{- end }} +
+ {{- partial "footer.html" . -}} + + diff --git a/themes/api-theme/layouts/_default/item.api.json b/themes/api-theme/layouts/_default/item.api.json new file mode 100644 index 0000000..3038358 --- /dev/null +++ b/themes/api-theme/layouts/_default/item.api.json @@ -0,0 +1,3 @@ +{ + "name": "{{ .Title }}", "featuredImage": "{{ .Params.featuredImage }}", "content": {{ .Content | jsonify }} +} diff --git a/themes/api-theme/layouts/_default/list.api.json b/themes/api-theme/layouts/_default/list.api.json new file mode 100644 index 0000000..41b8d97 --- /dev/null +++ b/themes/api-theme/layouts/_default/list.api.json @@ -0,0 +1,7 @@ +{{ define "response" }} +[ + {{ range $index, $e := .Data.Pages }} + {{ if $index }}, {{ end }}{{ .Render "item" }} + {{ end }} +] +{{ end }} diff --git a/themes/api-theme/layouts/_default/list.html b/themes/api-theme/layouts/_default/list.html new file mode 100644 index 0000000..9b02a3b --- /dev/null +++ b/themes/api-theme/layouts/_default/list.html @@ -0,0 +1,9 @@ +{{ define "main" }} +

Items

+ + +{{ end }} diff --git a/themes/api-theme/layouts/_default/single.html b/themes/api-theme/layouts/_default/single.html new file mode 100644 index 0000000..e69de29 diff --git a/themes/api-theme/layouts/index.html b/themes/api-theme/layouts/index.html new file mode 100644 index 0000000..b80c571 --- /dev/null +++ b/themes/api-theme/layouts/index.html @@ -0,0 +1,7 @@ +{{ define "main" }} +

Hugo API Service

+

Developed for render content on Angular

+ +{{ end }} diff --git a/themes/api-theme/layouts/partials/footer.html b/themes/api-theme/layouts/partials/footer.html new file mode 100644 index 0000000..e69de29 diff --git a/themes/api-theme/layouts/partials/head.html b/themes/api-theme/layouts/partials/head.html new file mode 100644 index 0000000..ebcb1e3 --- /dev/null +++ b/themes/api-theme/layouts/partials/head.html @@ -0,0 +1,2 @@ +{{ $style := resources.Get "scss/main.scss" | toCSS | minify | fingerprint }} + diff --git a/themes/api-theme/layouts/partials/header.html b/themes/api-theme/layouts/partials/header.html new file mode 100644 index 0000000..e69de29 diff --git a/themes/api-theme/theme.toml b/themes/api-theme/theme.toml new file mode 100644 index 0000000..a589f5b --- /dev/null +++ b/themes/api-theme/theme.toml @@ -0,0 +1,21 @@ +# theme.toml template for a Hugo theme +# See https://github.com/gohugoio/hugoThemes#themetoml for an example + +name = "Api Theme" +license = "MIT" +licenselink = "https://github.com/yourname/yourtheme/blob/master/LICENSE" +description = "" +homepage = "http://example.com/" +tags = [] +features = [] +min_version = "0.41.0" + +[author] + name = "" + homepage = "" + +# If porting an existing theme +[original] + name = "" + homepage = "" + repo = ""