Skip to content

Commit b169ea5

Browse files
authored
Remove Noto Sans font and update styles for improved typography and layout (#47)
1 parent 3b77c40 commit b169ea5

File tree

12 files changed

+264
-233
lines changed

12 files changed

+264
-233
lines changed

assets/built/screen.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/screen.css

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,7 @@
22
@import "tailwindcss/components";
33
@import "tailwindcss/utilities";
44

5-
@layer base {
6-
html {
7-
font-family: 'Noto Sans', system-ui, sans-serif;
8-
}
9-
}
5+
106
/* #sidebar {
117
@apply w-64 bg-darker h-screen p-6 fixed md:block hidden z-10 transform md:translate-x-0 -translate-x-full transition-transform duration-300 overflow-y-scroll
128
} */
@@ -70,13 +66,11 @@ a:hover h3 {
7066
#main h3,
7167
#main h4,
7268
#main h5 {
73-
font-family: 'Noto Sans', sans-serif;
7469
font-weight: 500;
7570
@apply text-lighter;
7671
}
7772

7873
p {
79-
font-family: 'Noto Sans', sans-serif;
8074
font-weight: 400;
8175
text-align: justify;
8276
hyphens: auto;
@@ -92,7 +86,7 @@ p {
9286
/* All Tables */
9387

9488
.post-content{
95-
@apply container p-6 mx-auto md:ml-64 md:px-32 md:py-12;
89+
@apply px-6 mx-auto md:ml-64 md:p-32 md:py-12;
9690
}
9791

9892

@@ -230,6 +224,7 @@ p {
230224
.kg-image {
231225
margin-right: auto;
232226
margin-left: auto;
227+
max-width: 80%;
233228
}
234229

235230
/* Gallery */

assets/fonts/NotoSans.woff2

-1020 KB
Binary file not shown.

default.hbs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
<link rel="stylesheet" href="{{asset "built/prism.css"}}">
1111
{{/is}}
1212

13-
{{!-- {{> "typography/noto"}} --}}
14-
1513
{{#is "home, tag, author, index"}}
1614
{{ghost_head exclude="card_assets,cta_styles,comment_counts,announcement"}}
1715
{{else}}

home.hbs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
{{!< default}}
22
<main id="main" class="container pt-6 pb-6 mx-auto md:pl-64">
33
{{> "tags-nav" }}
4+
{{#tag}}
5+
<h1 class="pb-4 text-4xl">{{name}}</h1>
6+
{{#if description}}
7+
<h2 class="pb-4 text-xl">{{description}}</h2>
8+
{{/if}}
9+
{{/tag}}
410

511
{{> "posts-list" }}
612

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "sredevopsorg-ghost-theme",
33
"description": "Ghost v5 Theme made for SREDevOps.org (https://sredevops.org) based on Tailwind CSS v3, responsive, dark color schema, SVG icons, sidebar + footer navgation, customized tags and recommendations pages.",
44
"demo": "https://sredevops.org",
5-
"version": "1.1.8",
5+
"version": "1.2.0",
66
"engines": {
77
"ghost": ">=5.0.0"
88
},
@@ -41,17 +41,17 @@
4141
"https://github.com/sredevopsorg/sredevopsorg-ghost-theme/graphs/contributors"
4242
],
4343
"devDependencies": {
44-
"@tailwindcss/forms": "^0.5.9",
45-
"@tailwindcss/typography": "^0.5.15",
46-
"autoprefixer": "^10.4.20",
44+
"@tailwindcss/forms": "^0.5.10",
45+
"@tailwindcss/typography": "^0.5.16",
46+
"autoprefixer": "^10.4.21",
4747
"cssnano": "7.0.6",
4848
"gulp": "^5.0.0",
4949
"gulp-concat": "2.6.1",
5050
"gulp-livereload": "4.0.2",
5151
"gulp-postcss": "10.0.0",
5252
"gulp-uglify": "3.0.2",
53-
"postcss": "^8.4.49",
54-
"postcss-import": "^15.1.0",
53+
"postcss": "^8.5.3",
54+
"postcss-import": "^16.1.0",
5555
"pump": "3.0.2",
5656
"tailwindcss": "^3.4.17"
5757
},
@@ -83,10 +83,10 @@
8383
"width": 300
8484
},
8585
"l": {
86-
"width": 400
86+
"width": 600
8787
},
8888
"xl": {
89-
"width": 500
89+
"width": 900
9090
}
9191
}
9292
},

page-tags.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
{{#post}}
55
<main id="main">
66

7-
<article class="container p-6 md:ml-32 md:pl-32">
7+
<article class="prose-lg post-content prose-invert text-light">
88
<section class="py-0 md:py-0">
99
<div class="l-content">
1010
<div class="l-wrapper" data-animate="fade-up">

partials/feature-image.hbs

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
11
{{#if feature_image}}
2-
<figure>
3-
<picture>
4-
<img src="{{img_url feature_image format='webp' size='xl'}}"
5-
alt="{{title}}"
6-
{{#is "home, index, tag, author, paged" }}
7-
class="object-cover w-full"
8-
{{else}}
9-
class="items-center clear-both mx-auto "
10-
{{/is}}
11-
>
12-
</picture>
13-
{{#unless "post" }}
14-
{{#if feature_image_caption}}
15-
<figcaption class="text-xs text-center text-light">{{feature_image_caption}}</figcaption>
16-
{{/if}}
17-
{{/unless}}
18-
</figure>
19-
{{/if}}
2+
<figure>
3+
<picture>
4+
{{#is "home, index, tag, author, paged" }}
5+
<img src="{{img_url feature_image format='webp' size='s'}}" alt="{{title}}" class="object-cover w-full">
6+
{{else}}
7+
<img src="{{img_url feature_image format='webp' size='xl'}}" alt="{{title}}"
8+
class="items-center clear-both mx-auto">
9+
{{/is}}
10+
</picture>
11+
{{#unless "post" }}
12+
{{#if feature_image_caption}}
13+
<figcaption class="text-xs text-center text-light">{{feature_image_caption}}</figcaption>
14+
{{/if}}
15+
{{/unless}}
16+
</figure>
17+
{{/if}}

partials/posts-list.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<article id="{{slug}}">
55
<a href="{{url absolute="true"}}" alt="{{title}}">
66
<img alt="{{title}}"
7-
src="{{img_url feature_image size='s' format='webp'}}"
7+
src="{{img_url feature_image size='m' format='webp'}}"
88
width="220px"
99
{{#if @custom.lazy_images}} loading="lazy"{{/if}} />
1010
</a>

partials/typography/noto.hbs

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)