Browse Source

small redesign

master
jk 3 years ago
parent
commit
6ef3c4340e
  1. 1
      config.toml
  2. BIN
      static/fonts/forkawesome-webfont.woff2
  3. BIN
      static/images/brewing/williambros_80.jpg
  4. BIN
      static/images/planning/aliceporter.jpg
  5. BIN
      static/images/playing/projectzomboid.jpg
  6. BIN
      static/images/reading/adventuresofsherlockholmes.jpg
  7. BIN
      static/images/reading/handbook-of-brewing.jpg
  8. BIN
      static/images/studying/icbd.jpg
  9. BIN
      static/images/watching/theexpanse.jpg
  10. 3
      themes/nipponalba/layouts/_default/list.html
  11. 47
      themes/nipponalba/layouts/index.html
  12. 24
      themes/nipponalba/layouts/partials/aside.html
  13. 2
      themes/nipponalba/layouts/partials/taxonomy/categories.html
  14. 81
      themes/nipponalba/static/css/style.css

1
config.toml

@ -5,6 +5,7 @@ theme=["nipponalba"]
summarylength=20
enableEmoji=true
defaultContentLanguage="en"
preserveTaxonomyNames = true
[outputs]
home = ["html", "rss"] # default = ["HTML", "RSS"]

BIN
static/fonts/forkawesome-webfont.woff2

BIN
static/images/brewing/williambros_80.jpg

After

Width: 300  |  Height: 300  |  Size: 36 KiB

BIN
static/images/planning/aliceporter.jpg

After

Width: 300  |  Height: 300  |  Size: 77 KiB

BIN
static/images/playing/projectzomboid.jpg

After

Width: 300  |  Height: 300  |  Size: 63 KiB

BIN
static/images/reading/adventuresofsherlockholmes.jpg

After

Width: 300  |  Height: 302  |  Size: 44 KiB

BIN
static/images/reading/handbook-of-brewing.jpg

After

Width: 300  |  Height: 300  |  Size: 49 KiB

BIN
static/images/studying/icbd.jpg

After

Width: 300  |  Height: 300  |  Size: 37 KiB

BIN
static/images/watching/theexpanse.jpg

Before

Width: 165  |  Height: 93  |  Size: 17 KiB

After

Width: 300  |  Height: 300  |  Size: 51 KiB

3
themes/nipponalba/layouts/_default/list.html

@ -30,7 +30,7 @@
{{ with .Page.Params.Image }}{{ partial "image.html" . }}{{ end }}<span class="p-name entry-title">{{ .Title }}</span>
<section class="e-content">{{ .Description }}</section>
</a></span>
{{else}}<span class="listing-post"><a href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title }}</span>{{end}}{{else}}
{{else}}<span class="listing-post"><a href="{{ .Permalink }}" title="{{ .Title }}">{{.Title }}</a></span>{{end}}{{else}}
{{ if eq .Type "note"}}
<span class="list-category"><a class="u-url" href="{{ .Permalink }}" title="{{ .Title }}">
<span class="note-banner">{{ humanize .Type }}</span>
@ -47,7 +47,6 @@
{{ end }}
{{end}}
</section>
</section>
</a></article>{{end}}{{end}}
</li>

47
themes/nipponalba/layouts/index.html

@ -44,6 +44,53 @@
{{end}}
</section>
</a></article>{{ end }}</section>
<h2>Currently</h2>
<section class="currently_study_brew_planning">
<article class="index-current h-entry entry">
<section class="e-content photo h-product"><a href="https://www.hw.ac.uk/documents/pams/202122/B91FI_202122.pdf" class="u-url" title="Currently studying: B91FI Filtation and Packaging">
<img class="u-photo" src="/images/studying/icbd.jpg"/>
<i class="fa fa-graduation-cap" aria-hidden="true" target="_blank"></i>
<span class="p-name">Studying: B91FI Filtration and Packaging</span>
</a></section>
</article>
<article class="index-current h-entry entry">
<section class="e-content photo h-product"><a href="https://www.cyberpunk.net" class="u-url" target="_blank" title="Currently fermenting: 80/-">
<img class="u-photo" src="/images/brewing/williambros_80.jpg"/>
<i class="fa fa-beer" aria-hidden="true"></i>
<span class="p-name">Fermenting: William Bros 80/- (sort of)</span>
</a></section>
</article>
<article class="index-current h-entry entry">
<section class="e-content photo h-product"><a href="https://www.themoviedb.org/tv/63639-the-expanse" class="u-url" target="_blank" title="Currently planning: Alice Porter">
<img class="u-photo" src="/images/planning/aliceporter.jpg"/>
<i class="fa fa-calendar" aria-hidden="true"></i>
<span class="p-name">Planning: Alice Porter</span>
</a></section>
</article>
</section>
<section class="currently_reading_playing_watching">
<article class="index-current h-entry entry">
<section class="e-content photo h-product"><a href="https://www.taylorfrancis.com/books/handbook-brewing-graham-stewart-inge-russell-anne-anstruther/e/10.1201/9781351228336" class="u-url" title="Currently reading: Handbook of Brewing">
<i class="fa fa-book" aria-hidden="true" target="_blank"></i>
<span class="p-name">Reading: Handbook of Brewing</span>
<img class="u-photo" src="/images/reading/handbook-of-brewing.jpg"/>
</a></section>
</article>
<article class="index-current h-entry entry">
<section class="e-content photo h-product"><a href="https://projectzomboid.com/blog/" class="u-url" target="_blank" title="Currently playing: Project Zomboid">
<i class="fa fa-gamepad" aria-hidden="true"></i>
<span class="p-name">Playing: Project Zomboid</span>
<img class="u-photo" src="/images/playing/projectzomboid.jpg"/>
</a></section>
</article>
<article class="index-current h-entry entry">
<section class="e-content photo h-product"><a href="https://www.themoviedb.org/tv/63639-the-expanse" class="u-url" target="_blank" title="now watching: The Expanse">
<i class="fa fa-television" aria-hidden="true"></i>
<span class="p-name">Watching: The Expanse</span>
<img class="u-photo" src="/images/watching/theexpanse.jpg"/>
</a></section>
</article>
</section>
<a href="https://brid.gy/publish/mastodon"></a>
</section>
</section>

24
themes/nipponalba/layouts/partials/aside.html

@ -29,11 +29,25 @@
<a class="u-email" rel="me" href="mailto:jon@kelbie.scot"></a>
<a class="u-url u-uid" rel="me" href="https://jon.kelbie.scot"></a>
</section>
<section class="doing">
<section class="reading h-product"><i class="fa fa-book" aria-hidden="true" target="_blank"></i> <a href="https://www.sciencedirect.com/book/9781782423317/brewing-microbiology" class="u-url" title="now reading: Brewing Microbiology"><span class="p-name">Brewing Microbiology</span><img class="u-photo" src="/images/reading/brewing-microbiology.jpg"/></a></section>
<section class="playing h-product"><i class="fa fa-gamepad" aria-hidden="true"></i> <a href="https://www.cyberpunk.net" class="u-url" target="_blank" title="now playing: Cyberpunk 2077"><span class="p-name">Cyberpunk 2077</span><img class="u-photo" src="/images/playing/cyberpunk2077.jpg"/></a></section>
<section class="watching h-product"><i class="fa fa-television" aria-hidden="true"></i> <a href="https://www.themoviedb.org/tv/63639-the-expanse" class="u-url" target="_blank" title="now watching: The Expanse"><span class="p-name">The Expanse</span><img class="u-photo" src="/images/watching/theexpanse.jpg"/></a></section>
</section>
<hr/>
<section class="panel panel-default">
<span class="panel-heading"><a href="{{ "/category/" | relLangURL }}">Categories</a></span>
{{ if not (eq (len $.Site.Taxonomies.category) 0) }}
{{ $fontUnit := "rem" }}
{{ $largestFontSize := 1.6 }}
{{ $smallestFontSize := 1.0 }}
{{ $max := len (index $.Site.Taxonomies.category.ByCount 0).Pages }}
{{ $min := len (index $.Site.Taxonomies.category.ByCount.Reverse 0).Pages }}
<div id="category-cloud">
{{ range $name, $taxonomy := $.Site.Taxonomies.category }}
{{ $count := len $taxonomy.Pages }}
{{ $weigth := div (sub (math.Log $count) (math.Log $min)) (sub (math.Log $max) (math.Log $min)) }}
{{ $currentFontSize := (add $smallestFontSize (mul (sub $largestFontSize $smallestFontSize) $weigth) ) }}
<!--Current font size: {{$currentFontSize}}-->
<a href="{{ "/category/" | relLangURL }}{{ $name | urlize }}/" style="font-size:{{$currentFontSize}}{{$fontUnit}}">{{ .Page.Title }}</a>
{{ end }}
</div>
{{ end }}
</section>
<hr/>
<section class="site-info">&copy; {{ now.Format "2006"}} | <a href="https://creativecommons.org/licenses/by/4.0/" target="_blank">CC-BY 4.0</a> | <a href="{{ .Permalink }}index.xml"><i class="fa fa-rss fa-fw" aria-hidden="true" title="Blog RSS feed"></i></a><br/>

2
themes/nipponalba/layouts/partials/taxonomy/categories.html

@ -1,6 +1,6 @@
<ul class="categories">
{{- range $index, $el := . -}}
<li><a class="category p-category" href="{{ ( printf "category/%s/" ( . | urlize ) ) | relLangURL }}">{{ . }}</a></li>
<li><a class="category p-category" href="{{ ( printf "category/%s/" ( . | urlize ) ) | relLangURL }}">{{ humanize . }}</a></li>
{{- end -}}
</ul>

81
themes/nipponalba/static/css/style.css

@ -104,6 +104,9 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
.fa-share:before {
content: "\f064";
}
.fa-calendar:before {
content: "\f073";
}
.fa-comment:before {
content: "\f075";
}
@ -113,9 +116,15 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
.fa-link:before {
content: "\f0c1";
}
.fa-beer:before {
content: "\f0fc";
}
.fa-gamepad:before {
content: "\f11b";
}
.fa-graduation-cap:before {
content: "\f19d";
}
.fa-language:before {
content: "\f1ab";
}
@ -180,6 +189,7 @@ html { font-family: 'Inter', sans-serif;}
--opacity-img: var(--dark-opacity);
--border-colour: var(--light-border);
--shadow-colour: var(--light-shadow);
--current-bg-colour: rgba(150,150,150,0.8);
}
@media (prefers-color-scheme: light) {
@ -338,7 +348,7 @@ main{
grid-template-rows: auto;
}
.about .h-feed, .archive-listing, .stream, .post, .bookmarks, #response, .response, .resume{
.about .h-feed, .archive, .stream, .post, .bookmarks, #response, .response, .resume{
grid-column: 1;
vertical-align:top;
width: 99%;
@ -417,23 +427,29 @@ main{
display:inline-block;
margin:2px;
}
.profile .doing{
margin-top: 10px;
font-weight:bolder;
.panel{
width:185px;
border-radius: 15px;
padding: 0;
margin: 0;
}
.watching, .playing, .reading{
padding:5px;
.panel-heading{
border-bottom: 1px solid var(--border-colour);
text-align:center;
padding:10px;
display:block;
font-weight:bold;
font-size: 1.2em;
}
.watching img, .playing img{
max-height:100px;
object-fit:cover;
object-position:top;
.panel-heading a{
color: var(--text-colour);
}
#category-cloud{
margin-top: 10px;
}
#category-cloud a{
padding: 2px;
}
.reading img{
object-fit:contain;
}
.site-info{
font-size:13px;
}
@ -454,7 +470,7 @@ main{
.resume{
width:97%;
}
.index-article, .index-photo, .list-article, .list-blog, .list-category{
.index-article, .index-photo, .list-article, .list-blog, .list-category, .index-current{
box-shadow: 0 2px 3px var(--shadow-colour);
border: 1px solid var(--border-colour);
border-radius: 15px;
@ -487,7 +503,7 @@ main{
.index-article .e-content, .list-article .e-content{
padding:5px;
}
.index-photo img{
.index-photo img, .index-current img{
width:100%;
height:220px;
object-fit:cover;
@ -495,7 +511,34 @@ main{
margin:0;
padding:0;
}
.latest_photos{
.index-current{
position:relative;
}
.index-current i{
position:absolute;
z-index:10;
top: 80%;
left: 82%;
font-size: 2em;
}
.index-current .p-name{
position:absolute;
z-index:10;
top:0;
text-align:center;
width:100%;
color: var(--link-colour);
font-weight: bold;
padding-top: 5px;
background: var(--current-bg-colour);
border-radius: 15px 15px 0 0;
border: 1px solid var(--border-colour);
min-height:40px;
}
.currently_study_brew_planning{
padding-bottom: 10px;
}
.currently_reading_playing_watching{
padding-bottom: 50px;
}
.info i{
@ -1035,7 +1078,7 @@ nav{
padding:10px 6px;
height: 30px;
}
.index-article, .index-photo, .list-article, .list-blog, .list-category{
.index-article, .index-photo, .inndex-current, .list-article, .list-blog, .list-category{
width:100%;
margin-bottom:10px;
}

Loading…
Cancel
Save