1
0

Compare commits

..

2 Commits

Author SHA1 Message Date
Siroco
fad0010671 Merge branch 'master' of https://git.audio-lab.org/lrullo/beire-hugo into master
Update Tempalte
2020-10-23 02:00:17 +02:00
Siroco
5f6fc3a3d3 Update Api template 2020-10-23 01:59:38 +02:00
9 changed files with 28 additions and 10 deletions

View File

@ -8,3 +8,4 @@ theme = "api-theme"
[outputs] [outputs]
section = ["api"] section = ["api"]
page = ["api"]

View File

@ -4,6 +4,11 @@ date: 2020-10-18
type: image type: image
slug: home slug: home
featuredImage: "image.jpg" featuredImage: "image.jpg"
featuredVideo: "video"
n: "escuela"
s: "ujue"
e: "huerta"
o: "hoguera"
--- ---

View File

@ -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} 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}

View File

@ -1 +1 @@
{"Target":"scss/main.min.b67e46bdef4830eb2e3f962611e06061ad2ad3f280cd18b0a311bdb26eb4f36d.css","MediaType":"text/css","Data":{"Integrity":"sha256-tn5Gve9IMOsuP5YmEeBgYa0q0/KAzRiwoxG9sm60820="}} {"Target":"scss/main.min.f18d11e814b0988f8eee852238763dc9a02a0d41e808d56520632fc83d161543.css","MediaType":"text/css","Data":{"Integrity":"sha256-8Y0R6BSwmI+O7oUiOHY9yaAqDUHoCNVlIGMvyD0WFUM="}}

View File

@ -21,7 +21,7 @@ ul {
width:80%; width:80%;
margin:auto; margin:auto;
li { 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;} a { color:$background;}
} }
} }

View File

@ -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 }}
} }

View File

@ -1,7 +1,9 @@
{{ define "response" }} {{ define "response" }}
[ {
{{ range $index, $e := .Data.Pages }} {{ with .Section }}"section" : "{{ . }}",{{ end }}
{{ if $index }}, {{ end }}{{ .Render "item" }} "count" : "{{ len .Data.Pages }}",
{{ end }} "items" : [{{ range $i, $e := .Data.Pages }}
] {{ if $i }}, {{ end }}{{ .Render "item_reduced" }}
{{ end }}]
}
{{ end }} {{ end }}

View File

@ -2,6 +2,7 @@
<h1>API Service</h1> <h1>API Service</h1>
<h2>Descarga del contenido para mostrar la web del proyecto Landarte Beire 2020</h2> <h2>Descarga del contenido para mostrar la web del proyecto Landarte Beire 2020</h2>
<ul> <ul>
<li><a href="/items/index.json">Items</a></li> <li><a href="{{.Site.BaseURL}}items/index.json">Items</a></li>
<li><a href="{{.Site.BaseURL}}pages/index.json">Pages</a></li>
</ul> </ul>
{{ end }} {{ end }}