From 305187837172b8bbc387de74a09728c7265ab6cd Mon Sep 17 00:00:00 2001 From: Romeo Disca Date: Wed, 1 May 2019 17:55:20 +0200 Subject: add single page --- content/news/news2.md | 5 +++++ themes/rusticus/data/config/head.yml | 2 +- themes/rusticus/layouts/_default/single.html | 13 +++++++++++++ themes/rusticus/layouts/partials/header/header.html | 3 +-- themes/rusticus/layouts/partials/main.html | 2 +- .../static/assets/css/styles.229bcd85b8eb97fb319f.css | 2 -- .../static/assets/css/styles.5cb4e5305b4c420e901d.css | 2 ++ 7 files changed, 23 insertions(+), 6 deletions(-) create mode 100644 themes/rusticus/layouts/_default/single.html delete mode 100644 themes/rusticus/static/assets/css/styles.229bcd85b8eb97fb319f.css create mode 100644 themes/rusticus/static/assets/css/styles.5cb4e5305b4c420e901d.css diff --git a/content/news/news2.md b/content/news/news2.md index b358c58..75b0d58 100644 --- a/content/news/news2.md +++ b/content/news/news2.md @@ -9,3 +9,8 @@ tags: summary: This is a summary --- +# bla fasel + +content + +lorem diff --git a/themes/rusticus/data/config/head.yml b/themes/rusticus/data/config/head.yml index b46c3b5..182e2a9 100644 --- a/themes/rusticus/data/config/head.yml +++ b/themes/rusticus/data/config/head.yml @@ -1,5 +1,5 @@ -css: styles.229bcd85b8eb97fb319f.css +css: styles.5cb4e5305b4c420e901d.css javascript: main.5d45697faa28ef608a86.js diff --git a/themes/rusticus/layouts/_default/single.html b/themes/rusticus/layouts/_default/single.html new file mode 100644 index 0000000..3385c55 --- /dev/null +++ b/themes/rusticus/layouts/_default/single.html @@ -0,0 +1,13 @@ + +{{ partial "header/header.html" . }} + +
+

{{ .Title }}

+

{{ .Summary }}

+
+ {{ .Content }} +
+
+{{ partial "aside.html" . }} + +{{ partial "footer/footer.html" . }} diff --git a/themes/rusticus/layouts/partials/header/header.html b/themes/rusticus/layouts/partials/header/header.html index 3130e01..98a7158 100644 --- a/themes/rusticus/layouts/partials/header/header.html +++ b/themes/rusticus/layouts/partials/header/header.html @@ -1,6 +1,7 @@ + {{ .Title | lower }} : {{ .Site.Title }} @@ -36,8 +37,6 @@ -{{ .Content }} -
\ No newline at end of file diff --git a/themes/rusticus/layouts/partials/main.html b/themes/rusticus/layouts/partials/main.html index b3d7e65..faf8be7 100644 --- a/themes/rusticus/layouts/partials/main.html +++ b/themes/rusticus/layouts/partials/main.html @@ -1,5 +1,5 @@ -
+


{{ .Site.Params.title }}

diff --git a/themes/rusticus/static/assets/css/styles.229bcd85b8eb97fb319f.css b/themes/rusticus/static/assets/css/styles.229bcd85b8eb97fb319f.css deleted file mode 100644 index 891d53a..0000000 --- a/themes/rusticus/static/assets/css/styles.229bcd85b8eb97fb319f.css +++ /dev/null @@ -1,2 +0,0 @@ -abbr[title]{-webkit-text-decoration:underline dotted}html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}[hidden],template{display:none}*{box-sizing:border-box;position:relative}body{color:#333;font-family:Roboto,sans-serif}a{text-decoration:none;color:#4b45a1}a:active{color:#f74d00}.container{max-width:80rem;margin:0 auto}body>header{margin-bottom:4rem;text-align:right}body>header ul{margin:4rem 3rem 0}body>header ul li{display:inline;margin-left:2rem}body>header ul li a{text-decoration:none;display:inline-block;padding:.3rem .6rem;border-bottom:.2rem solid #4b45a1}body>header ul li a:hover{background:#4b45a1;color:#fff}main>header{text-align:right;width:100%;border-radius:3em;height:400px;background-color:#4b45a1;background-image:url(rust-community-animated-logo.302544f5b17fd3b9e23e.gif);background-repeat:no-repeat;background-position:0 100%;background-size:cover}main>header>div{height:100%;width:100%}main>header>div>h1{color:#fff;text-shadow:.2rem .2rem .3rem #333;width:20rem;vertical-align:bottom;right:2rem;bottom:1.5rem;position:absolute;letter-spacing:.5rem;font-size:2.6rem;font-family:Raleway,sans-serif}main>header>div>h1 .rust-cog{width:150px;height:150px;display:inline-block;background-image:url(rust-cog.97024771a5c53b73c62f.png);background-repeat:no-repeat;background-position:50%;background-size:cover;right:-15px}main>section>h1{border-bottom:1px solid #333;margin-top:5rem}footer{margin:5rem 1.25em;border-top:1px solid #333;padding:2rem 0 0;text-align:center;width:100%}footer ul li{display:inline;margin:0 1rem}footer ul li a{text-decoration:none;display:inline-block;padding:.3rem .6rem;border-bottom:.2rem solid #4b45a1}footer ul li a:hover{background:#4b45a1;color:#fff}.container{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-wrap:wrap;flex-wrap:wrap}@media only screen and (max-width:40rem){.container{margin-left:1.25em;margin-right:1.25em}}@media only screen and (min-width:40rem){.container{margin-left:1.25em;margin-right:1.25em}}.container>main{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-wrap:wrap;flex-wrap:wrap}@media only screen and (max-width:40rem){.container>main{width:100%;margin:0}}@media only screen and (min-width:60rem){.container>main{width:70%;margin:0 1.25em}}.container>main>header,.container>main>section.knowledge-base{width:100%}@media only screen and (max-width:40rem){.container>main>section.blog,.container>main>section.news{width:100%}}@media only screen and (min-width:60rem){.container>main>section.blog,.container>main>section.news{width:45%}}.container>aside{display:-webkit-box;display:-ms-flexbox;display:flex}@media only screen and (max-width:40rem){.container>aside{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;width:100%;margin:0}}@media only screen and (min-width:40rem){.container>aside{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;margin:5rem 0 0}}@media only screen and (min-width:60rem){.container>aside{width:20%;margin:0 1.25em;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}}@media only screen and (max-width:40rem){.container>aside>*{width:100%;margin:2.5rem 0 0}}@media only screen and (min-width:40rem){.container>aside>*{width:30%;margin:0}}@media only screen and (min-width:60rem){.container>aside>*{width:100%}}.front-page-summary{padding:0}.front-page-summary li{margin:0 0 .6rem;display:block;border:1px solid #cccae8;border-radius:.3rem}.front-page-summary li:hover{background-color:#eeeef8}.front-page-summary li a{display:block;padding:0 1rem;text-decoration:none}.front-page-summary li a:active{color:#f74d00} -/*# sourceMappingURL=styles.229bcd85b8eb97fb319f.css.map */ \ No newline at end of file diff --git a/themes/rusticus/static/assets/css/styles.5cb4e5305b4c420e901d.css b/themes/rusticus/static/assets/css/styles.5cb4e5305b4c420e901d.css new file mode 100644 index 0000000..45448db --- /dev/null +++ b/themes/rusticus/static/assets/css/styles.5cb4e5305b4c420e901d.css @@ -0,0 +1,2 @@ +abbr[title]{-webkit-text-decoration:underline dotted}html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}[hidden],template{display:none}*{box-sizing:border-box;position:relative}body{color:#333;font-family:Roboto,sans-serif}a{text-decoration:none;color:#4b45a1}a:active{color:#f74d00}.container{max-width:80rem;margin:0 auto}body>header{margin-bottom:4rem;text-align:right}body>header ul{margin:4rem 3rem 0}body>header ul li{display:inline;margin-left:2rem}body>header ul li a{text-decoration:none;display:inline-block;padding:.3rem .6rem;border-bottom:.2rem solid #4b45a1}body>header ul li a:hover{background:#4b45a1;color:#fff}main>header{text-align:right;width:100%;border-radius:3em;height:400px;background-color:#4b45a1;background-image:url(rust-community-animated-logo.302544f5b17fd3b9e23e.gif);background-repeat:no-repeat;background-position:0 100%;background-size:cover}main>header>div{height:100%;width:100%}main>header>div>h1{color:#fff;text-shadow:.2rem .2rem .3rem #333;width:20rem;vertical-align:bottom;right:2rem;bottom:1.5rem;position:absolute;letter-spacing:.5rem;font-size:2.6rem;font-family:Raleway,sans-serif}main>header>div>h1 .rust-cog{width:150px;height:150px;display:inline-block;background-image:url(rust-cog.97024771a5c53b73c62f.png);background-repeat:no-repeat;background-position:50%;background-size:cover;right:-15px}main>section>h1{border-bottom:1px solid #333;margin-top:5rem}footer{margin:5rem 1.25em;border-top:1px solid #333;padding:2rem 0 0;text-align:center;width:100%}footer ul li{display:inline;margin:0 1rem}footer ul li a{text-decoration:none;display:inline-block;padding:.3rem .6rem;border-bottom:.2rem solid #4b45a1}footer ul li a:hover{background:#4b45a1;color:#fff}.container{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-wrap:wrap;flex-wrap:wrap}@media only screen and (max-width:40rem){.container{margin-left:2.5em;margin-right:2.5em}}@media only screen and (min-width:40rem){.container{margin-left:2.5em;margin-right:2.5em}}@media only screen and (min-width:60rem){.container{margin:0 auto}}.container>main{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-wrap:wrap;flex-wrap:wrap}@media only screen and (max-width:40rem){.container>main{width:100%;margin:0}}@media only screen and (min-width:60rem){.container>main{width:70%;margin:0 1.25em}}.container>main.home-page>header,.container>main.home-page>section.knowledge-base{width:100%}@media only screen and (max-width:40rem){.container>main.home-page>section.blog,.container>main.home-page>section.news{width:100%}}@media only screen and (min-width:60rem){.container>main.home-page>section.blog,.container>main.home-page>section.news{width:45%}}.container>main.single{display:block;width:100%}@media only screen and (min-width:60rem){.container>main.single{width:70%}}.container>main.single>h1{color:#fff;background-color:#4b45a1;padding:1rem 2rem;border-radius:4px}.container>aside{display:-webkit-box;display:-ms-flexbox;display:flex}@media only screen and (max-width:40rem){.container>aside{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;width:100%;margin:0}}@media only screen and (min-width:40rem){.container>aside{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;margin:5rem 0 0}}@media only screen and (min-width:60rem){.container>aside{width:20%;margin:0 1.25em;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}}@media only screen and (max-width:40rem){.container>aside>*{width:100%;margin:2.5rem 0 0}}@media only screen and (min-width:40rem){.container>aside>*{width:30%;margin:0}}@media only screen and (min-width:60rem){.container>aside>*{width:100%}}.front-page-summary{padding:0}.front-page-summary li{margin:0 0 .6rem;display:block;border:1px solid #cccae8;border-radius:.3rem}.front-page-summary li:hover{background-color:#eeeef8}.front-page-summary li a{display:block;padding:0 1rem;text-decoration:none}.front-page-summary li a:active{color:#f74d00} +/*# sourceMappingURL=styles.5cb4e5305b4c420e901d.css.map */ \ No newline at end of file -- cgit v1.2.3