Skip to content

Commit c5e3d8c

Browse files
authored
Merge pull request #2 from Wreck-X/master
Updating `_config.yml` to work with amfoss github pages
2 parents 9b38b4d + 732aa7e commit c5e3d8c

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

_config.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## Source: https://github.com/hexojs/hexo/
44

55
# Site
6+
67
title: 'amFOSS'
78
subtitle: ''
89
description: ''
@@ -13,7 +14,8 @@ timezone: ''
1314

1415
# URL
1516
## Set your site url here. For example, if you use GitHub Page, set url as 'https://username.github.io/project'
16-
url: http://amfoss.in
17+
url: https://amfoss.github.io/amfoss-blog-page/
18+
root:
1719
permalink: :year/:month/:day/:title/
1820
permalink_defaults:
1921
pretty_urls:
@@ -105,5 +107,5 @@ theme: landscape
105107
## Docs: https://hexo.io/docs/one-command-deployment
106108
deploy:
107109
type: git
108-
repo: https://github.com/hkx05/hkx05.github.io
109-
branch: master
110+
repo: https://github.com/amfoss/amfoss-blog-page
111+
branch: gh-page

themes/landscape/layout/_partial/header.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<header id="header">
22
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
33
<div id="banner" class="banner">
4-
<img id="logo-image" alt="amfoss logo" src="/image/logo-light.png">
4+
<img id="logo-image" alt="amfoss logo" src="/amfoss-blog-page/image/logo-light.png">
55
</div>
66
<div id="header-outer" class="outer">
77
<div id="header-title" class="inner">

themes/landscape/source/js/theme.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ function toggleTheme() {
33
const currentIcon = document.getElementById("theme-icon").innerHTML;
44
const currentLogo = document.getElementById("logo-image").src;
55
const newIcon = currentIcon === 'sunny' ? 'bedtime' : 'sunny';
6-
const newLogo = currentTheme === 'light' ? '/image/logo-dark.png' : '/image/logo-light.png';
6+
const newLogo = currentTheme === 'light' ? 'image/logo-dark.png' : 'image/logo-light.png';
77
const newTheme = currentTheme === 'light' ? 'dark' : 'light';
88

99
document.body.classList.remove(currentTheme + '-mode');

0 commit comments

Comments
 (0)