clean semantics and test svg on header

feature/oscar-theme
Segundo Fdez 2022-01-19 11:58:36 +01:00
parent 87bdf34e4a
commit c8a1957758
5 changed files with 53 additions and 38 deletions

View File

@ -1,13 +1,20 @@
@charset "UTF-8";
/* Basic */ /* Basic */
@import https://fonts.googleapis.com/css2?family=Overpass+Mono:wght@400;700&display=swap; /* @import 'https://fonts.googleapis.com/css2?family=Overpass+Mono:wght@400;700&display=swap';
@import url(/src/themes/oscar/assets/css/normalize.css); @import 'normalize.css';
@import url(/src/themes/oscar/assets/css/variables.css); @import 'variables.css';
@import url(/src/themes/oscar/assets/css/common.css); @import 'common.css'; */
/* Layout */ /* Layout */
/* Components */ /* Components */
/* Modules */ /* Modules */
/* Specific pages */ /* Specific pages */
/* Utilities */ /* Utilities */
/* Vendors */ /* Vendors */
/* TODO:
install postcss with:
- postcss-import
- postcss-custom-media
- postcss-nested (I think this is working by default, so probably we don´t need this plugin)
*/
/*# sourceMappingURL=style.css.map */ /*# sourceMappingURL=style.css.map */

View File

@ -1,8 +1,8 @@
/* Basic */ /* Basic */
@import 'https://fonts.googleapis.com/css2?family=Overpass+Mono:wght@400;700&display=swap'; /* @import 'https://fonts.googleapis.com/css2?family=Overpass+Mono:wght@400;700&display=swap';
@import 'normalize.css'; @import 'normalize.css';
@import 'variables.css'; @import 'variables.css';
@import 'common.css'; @import 'common.css'; */
/* Layout */ /* Layout */
@ -15,3 +15,10 @@
/* Utilities */ /* Utilities */
/* Vendors */ /* Vendors */
/* TODO:
install postcss with:
- postcss-import
- postcss-custom-media
- postcss-nested (I think this is working by default, so probably we don´t need this plugin)
*/

View File

@ -1,11 +1,9 @@
<a href="{{ .Permalink }}" class="catalogue-item"> <article>
<div> <a href="{{ .Permalink }}" class="catalogue-item">
<time datetime="{{ .PublishDate }}" class="catalogue-time">{{ i18n "publishdate" . }}</time> <time datetime="{{ .PublishDate }}" class="catalogue-time">{{ i18n "publishdate" . }}</time>
<h2 class="catalogue-title">{{ .Title }}</h2> <h3>{{ .Title }}</h3>
<div class="catalogue-line"></div>
<p> <p>
{{ if isset .Params "summary" }}{{ .Params.Summary | markdownify }}{{ else }}{{ .Summary }}{{ end }} {{ if isset .Params "summary" }}{{ .Params.Summary | markdownify }}{{ else }}{{ .Summary }}{{ end }}
</p> </p>
</div> </a>
</a> </article>

View File

@ -2,12 +2,12 @@
<main> <main>
<h1>List: Index</h1> <section class="catalogue">
<div class="catalogue"> <h2>List: Index</h2>
{{ range (.Paginate (where .Site.RegularPages "Type" "posts")).Pages }} {{ range (.Paginate (where .Site.RegularPages "Type" "posts")).Pages }}
{{ .Render "summary" }} {{ .Render "summary" }}
{{ end }} {{ end }}
</div> </section>
<div class="pagination"> <div class="pagination">
{{ partial "pagination.html" . }} {{ partial "pagination.html" . }}

View File

@ -1,23 +1,26 @@
<nav class="nav"> <header>
<div class="nav-container"> <h1>
<a href="{{ "/" | relURL }}"> <a href="{{ "/" | relURL }}">
{{ if .IsPage }} <svg width="85" height="25" viewBox="0 0 85 25" fill="none" xmlns="http://www.w3.org/2000/svg">
<h2 class="nav-title">{{ .Site.Title }}</h2> <rect x="28" width="26" height="25" fill="black"/>
{{ else }} <path d="M60 0L85 25H60V0Z" fill="black"/>
<h1 class="nav-title">{{ .Site.Title }}</h1> <rect width="26" height="25" rx="12.5" fill="black"/>
{{ end }} </svg>
</a> <span>{{ .Site.Title }}</span>
<ul> </a>
{{ $currentPage := . }} </h1>
{{ range .Site.Menus.main }} <nav>
<li> <ul>
<a href="{{ .URL }}"> {{ $currentPage := . }}
{{ .Pre }} {{ range .Site.Menus.main }}
<span>{{ .Name }}</span> <li>
{{ .Post }} <a href="{{ .URL }}">
</a> {{ .Pre }}
</li> <span>{{ .Name }}</span>
{{ end }} {{ .Post }}
</ul> </a>
</div> </li>
{{ end }}
</ul>
</nav> </nav>
</header>