Skip to content

Commit 2ae7d93

Browse files
authored
add svg favicon and improve logo ergonomics #18
Merge pull request #18 from famebot/ease add svg favicon and improve logo ergonomics
2 parents 2338276 + 2988e38 commit 2ae7d93

File tree

8 files changed

+20
-5
lines changed

8 files changed

+20
-5
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.DS_Store
22
_bin
3+
_cache
34
_site
45
deno.lock

_config.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
import lume from "lume/mod.ts";
22
import blog from "./mod.ts";
3+
import favicon from "lume/plugins/favicon.ts";
34

45
const site = lume();
56

6-
site.use(blog());
7+
site
8+
.use(blog())
9+
.use(favicon())
710

811
export default site;

_data.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ home:
66
copyright: "[Xeo](https://github.com/famebot/xeo) © 2022-2025 [Óscar Otero](https://oscarotero.com/) & [Ricky de Laveaga](https://rdela.com/)"
77

88
menu_links: []
9+
10+
logo: /favicon.svg
11+
logo_height: 48
12+
913
metas:
1014
site: Xeo (demo)
1115
description: Lume Simple Blog variant

_includes/layouts/base.vto

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
<link rel="stylesheet" href="/styles.css">
1111
<link rel="alternate" href="/feed.xml" type="application/atom+xml" title="{{ metas.site }}">
1212
<link rel="alternate" href="/feed.json" type="application/json" title="{{ metas.site }}">
13-
<link rel="icon" type="image/png" sizes="32x32" href="/favicon.png">
1413
<link rel="canonical" href="{{ url |> url(true) }}">
1514

1615
<meta name="supported-color-schemes" content="light dark">
@@ -23,7 +22,7 @@
2322
<nav class="navbar">
2423
<a href="/" class="navbar-home">
2524
{{ if it.logo }}
26-
{{ it.logo }}
25+
<img src="{{ it.logo }}" height="{{ it.logo_height }}" alt="{{ metas.site }}" title="{{ metas.site }}" />
2726
{{ else }}
2827
<strong>{{ metas.site }}</strong>
2928
{{ /if }}

favicon.png

-535 Bytes
Binary file not shown.

favicon.svg

Lines changed: 8 additions & 0 deletions
Loading

mod.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export default function (options: Partial<Options> = {}) {
2727
"_data/i18n.yml",
2828
"404.md",
2929
"archive.page.js",
30+
"favicon.svg",
3031
"index.vto",
3132
"styles.css",
3233
];

plugins.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
import baseBlog from "https://deno.land/x/[email protected]/mod.ts";
2+
import type { Options as BaseBlogOptions } from "https://deno.land/x/[email protected]/mod.ts";
23
import googleFonts from "lume/plugins/google_fonts.ts";
34
import { merge } from "lume/core/utils/object.ts";
45

5-
import type { Options as BaseBlogOptions } from "https://deno.land/x/[email protected]/mod.ts";
6-
76
import "lume/types.ts";
87

98
export interface Options extends BaseBlogOptions {

0 commit comments

Comments
 (0)