mirror of
https://github.com/loikein/hugo-tufte.git
synced 2024-12-23 13:59:44 +01:00
remove brand on single pages; remove fa; others
This commit is contained in:
parent
6760f0cb6b
commit
cc8175f38b
9 changed files with 34 additions and 74 deletions
|
@ -4,45 +4,17 @@
|
||||||
/* accomodate a blog-like site. */
|
/* accomodate a blog-like site. */
|
||||||
/* ------------------------------------------------------------------------ */
|
/* ------------------------------------------------------------------------ */
|
||||||
|
|
||||||
/* When setting the primary font stack, apply it to the Pure grid units along */
|
|
||||||
/* with `html`, `button`, `input`, `select`, and `textarea`. Pure Grids use */
|
|
||||||
/* specific font stacks to ensure the greatest OS/browser compatibility. */
|
|
||||||
html,
|
|
||||||
button,
|
|
||||||
input,
|
|
||||||
select,
|
|
||||||
textarea,
|
|
||||||
p,
|
|
||||||
nav,
|
|
||||||
section,
|
|
||||||
article,
|
|
||||||
header,
|
|
||||||
footer,
|
|
||||||
.pure-g [class*="pure-u"] {
|
|
||||||
font-family: et-book, "Noto Serif SC", Palatino, "Palatino Linotype", "Palatino LT STD", "Book Antiqua", Georgia, serif, "Noto Emoji";
|
|
||||||
}
|
|
||||||
|
|
||||||
p {
|
|
||||||
text-align: justify;
|
|
||||||
}
|
|
||||||
|
|
||||||
code {
|
|
||||||
font-family: Menlo, Meslo, Courier, monospace;
|
|
||||||
font-size: 1.125rem;
|
|
||||||
line-height: 1.6;
|
|
||||||
}
|
|
||||||
|
|
||||||
.sidenote,
|
|
||||||
.marginnote {
|
|
||||||
margin-right: -55%;
|
|
||||||
width: 45%;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/* ------------------------------------------------------------------------ */
|
/* ------------------------------------------------------------------------ */
|
||||||
/* Generic content, such as the index list pages */
|
/* Generic content, such as the index list pages */
|
||||||
/* ------------------------------------------------------------------------ */
|
/* ------------------------------------------------------------------------ */
|
||||||
|
|
||||||
|
hr {
|
||||||
|
margin-left: 0;
|
||||||
|
width: 75%;
|
||||||
|
max-width: 45rem;
|
||||||
|
border-color: rgba(250,250,250,0.25);
|
||||||
|
}
|
||||||
|
|
||||||
/* Content Title styling. This is mostly to avoid underlying links. */
|
/* Content Title styling. This is mostly to avoid underlying links. */
|
||||||
h1.content-title {
|
h1.content-title {
|
||||||
/*max-width: 50rem;*/
|
/*max-width: 50rem;*/
|
||||||
|
@ -54,12 +26,6 @@ h1.content-title a:visited {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: inherit;
|
color: inherit;
|
||||||
}
|
}
|
||||||
h1.content-title a:hover,
|
|
||||||
h1.content-title a:focus {
|
|
||||||
color: darkgray;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* ------------------------------------------------------------------------ */
|
/* ------------------------------------------------------------------------ */
|
||||||
/* Styling for listing pages. */
|
/* Styling for listing pages. */
|
||||||
|
|
1
assets/scss/vendor/tufte.scss
vendored
1
assets/scss/vendor/tufte.scss
vendored
|
@ -327,6 +327,7 @@ div.table-wrapper {
|
||||||
letter-spacing: 0.03em;
|
letter-spacing: 0.03em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
code,
|
||||||
.code {
|
.code {
|
||||||
font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
||||||
font-size: 1.125rem;
|
font-size: 1.125rem;
|
||||||
|
|
|
@ -6,14 +6,12 @@
|
||||||
|
|
||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
<div id="layout" class="pure-g">
|
<div id="layout" class="pure-g">
|
||||||
<article class="pure-u-1">
|
<article class="pure-u-1">
|
||||||
{{ partial "brand.html" . }}
|
|
||||||
{{ partial "content.header.html" . }}
|
{{ partial "content.header.html" . }}
|
||||||
{{ partial "toc.html" . }}
|
{{ partial "toc.html" . }}
|
||||||
<section>{{ .Content }}</section>
|
<section>{{ .Content }}</section>
|
||||||
<section>
|
<section>{{ partial "footer.html" . }}</section>
|
||||||
{{ partial "footer.html" . }}
|
<section>{{ partial "nav.html" . }}</section>
|
||||||
</section>
|
</article>
|
||||||
</article>
|
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
|
@ -1,6 +1,6 @@
|
||||||
<header class="brand">
|
<header class="brand">
|
||||||
<a href="{{ .Site.BaseURL }}"><h1>{{ .Site.Title}}</h1></a>
|
<a href="{{ .Site.BaseURL }}"><h1>{{ .Site.Title}}</h1></a>
|
||||||
<h2>{{ .Site.Params.subtitle }}</h2>
|
<h2>{{ .Site.Params.subtitle }}</h2>
|
||||||
{{ partial "nav.html" . }}
|
{{ partial "nav.html" . }}
|
||||||
<hr />
|
<hr />
|
||||||
</header>
|
</header>
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
|
|
||||||
<h1 class="content-title">
|
<h1 class="content-title">
|
||||||
{{ if .IsNode }}
|
{{ if .IsNode }}
|
||||||
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
{{ .Title }}
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<a href="{{ .RelPermalink }}">{{ .Title }}{{ if .Draft }} :: Draft {{end}}</a>
|
{{ .Title }}{{ if .Draft }} :: Draft {{end}}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
|
@ -16,23 +16,19 @@
|
||||||
{{ if or (eq .Type "post") (.Params.meta) }}
|
{{ if or (eq .Type "post") (.Params.meta) }}
|
||||||
<span class="content-meta">
|
<span class="content-meta">
|
||||||
{{ if .Params.author }}
|
{{ if .Params.author }}
|
||||||
<i class="fa fa-user"> </i><span class="author">
|
<span class="author">{{ .Params.author }}</span><br />
|
||||||
{{ .Params.author }}</span> <br>
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ if not .Params.hidedate }}
|
{{ if not .Params.hidedate }}
|
||||||
<i class="fa fa-calendar"></i>
|
{{ .Date.Format "2006-01-02" }}
|
||||||
{{ .Date.Format "Jan 2, 2006" }}
|
|
||||||
{{end }}
|
{{end }}
|
||||||
|
|
||||||
{{ if not .Params.hidereadtime }}
|
{{ if not .Params.hidereadtime }}
|
||||||
<i class="fa fa-clock-o"></i>
|
{{ .ReadingTime }} min read
|
||||||
{{ .ReadingTime }} min read
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ if .Params.categories }}
|
{{ if .Params.categories }}
|
||||||
<br>
|
<br>
|
||||||
<i class="fa fa-tags"> </i>
|
|
||||||
{{ range .Params.categories }}
|
{{ range .Params.categories }}
|
||||||
<a href="{{ "/categories/" | absURL }}{{ . | urlize }}">{{ . }}</a>
|
<a href="{{ "/categories/" | absURL }}{{ . | urlize }}">{{ . }}</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<footer class="page-footer">
|
<footer class="page-footer">
|
||||||
<hr>
|
<hr />
|
||||||
|
|
||||||
<div class="previous-post" style="display:inline-block;">
|
<div class="previous-post" style="display:inline-block;">
|
||||||
{{ if .PrevPage }}
|
{{ if .PrevPage }}
|
||||||
|
@ -75,6 +75,7 @@
|
||||||
</p>
|
</p>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
{{ if or ( isset .Site.Params "copyright" ) ( isset .Site.Params "copyrightHolder" ) }}
|
||||||
<div class="copyright">
|
<div class="copyright">
|
||||||
<p>
|
<p>
|
||||||
{{ with .Site.Params.copyright }}
|
{{ with .Site.Params.copyright }}
|
||||||
|
@ -86,5 +87,6 @@
|
||||||
{{end}}
|
{{end}}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
</footer>
|
</footer>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/normalize.css@8.0.1/normalize.css">
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/normalize.css@8.0.1/normalize.min.css" crossorigin="anonymous" />
|
||||||
<!-- Pure css -->
|
<!-- Pure css -->
|
||||||
<link rel="stylesheet" href="https://unpkg.com/purecss@2.0.6/build/pure-min.css">
|
<!-- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/purecss@3.0.0/build/pure-min.css" crossorigin="anonymous" /> -->
|
||||||
|
|
||||||
<!-- Fonts -->
|
<!-- Fonts -->
|
||||||
<!-- <link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Open+Sans"> -->
|
<!-- <link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Open+Sans"> -->
|
||||||
|
@ -21,7 +21,7 @@
|
||||||
</noscript>
|
</noscript>
|
||||||
|
|
||||||
<!-- Font Awesome -->
|
<!-- Font Awesome -->
|
||||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.14.0/css/all.css">
|
<!-- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.14.0/css/all.css"> -->
|
||||||
|
|
||||||
{{ $htoptions := (dict "targetPath" "/css/hugo-tufte.min.css" "outputStyle" "compressed" "enableSourceMap" true) }}
|
{{ $htoptions := (dict "targetPath" "/css/hugo-tufte.min.css" "outputStyle" "compressed" "enableSourceMap" true) }}
|
||||||
{{ $htstyle := resources.Get "scss/hugo-tufte.scss"| resources.ExecuteAsTemplate "main.scss" . | resources.ToCSS $htoptions }}
|
{{ $htstyle := resources.Get "scss/hugo-tufte.scss"| resources.ExecuteAsTemplate "main.scss" . | resources.ToCSS $htoptions }}
|
||||||
|
|
|
@ -31,9 +31,6 @@
|
||||||
{{- if eq $style "tip" }}{{ $icon = default "lightbulb" }}{{ end }}
|
{{- if eq $style "tip" }}{{ $icon = default "lightbulb" }}{{ end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- $icon = trim $icon " " }}
|
{{- $icon = trim $icon " " }}
|
||||||
{{- if and $icon (not (findRE ".*?\\bfa-\\w.*?" $icon)) }}
|
|
||||||
{{- $icon = printf "fa-fw fas fa-%s" $icon }}
|
|
||||||
{{- end }}
|
|
||||||
{{- $iconposition := .iconposition | default "left" }}
|
{{- $iconposition := .iconposition | default "left" }}
|
||||||
{{- with $context }}
|
{{- with $context }}
|
||||||
<span class="btn cstyle {{ $style }}"{{ if $color }} style="--VARIABLE-BOX-color: {{ $color }};"{{ end }}>
|
<span class="btn cstyle {{ $style }}"{{ if $color }} style="--VARIABLE-BOX-color: {{ $color }};"{{ end }}>
|
||||||
|
@ -43,11 +40,11 @@
|
||||||
<a{{ if $href }} href="{{ $href }}"{{ if gt (len $target) 0 }} target="{{ $target }}"{{ end }}{{ end }}>
|
<a{{ if $href }} href="{{ $href }}"{{ if gt (len $target) 0 }} target="{{ $target }}"{{ end }}{{ end }}>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if and $icon (eq $iconposition "left") }}
|
{{- if and $icon (eq $iconposition "left") }}
|
||||||
<i class="{{ $icon }}"></i>
|
{{ $icon }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{ $title | safeHTML }}
|
{{ $title | safeHTML }}
|
||||||
{{- if and $icon (eq $iconposition "right") }}
|
{{- if and $icon (eq $iconposition "right") }}
|
||||||
<i class="{{ $icon }}"></i>
|
{{ $icon }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if $isButton }}
|
{{- if $isButton }}
|
||||||
</button>
|
</button>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{{ if .Params.toc }}
|
{{ if .Params.toc }}
|
||||||
<section>
|
<section>
|
||||||
<details closed class="toc">
|
<details closed class="toc">
|
||||||
<summary>Contents</summary>
|
<summary>Table of Contents</summary>
|
||||||
{{ .TableOfContents }}
|
{{ .TableOfContents }}
|
||||||
</details>
|
</details>
|
||||||
</section>
|
</section>
|
||||||
|
|
Loading…
Reference in a new issue