Skip to content

Commit

Permalink
Merge pull request #1334 from nunocoracao/dev
Browse files Browse the repository at this point in the history
🔖 v2.62.0
  • Loading branch information
nunocoracao authored Mar 20, 2024
2 parents 10bf07a + 17a034a commit fd1dd03
Show file tree
Hide file tree
Showing 568 changed files with 24,900 additions and 594 deletions.
1 change: 1 addition & 0 deletions assets/icons/itch-io.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions assets/js/page.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
var liked_page = false
var id = oid ? oid.replaceAll("/", "-") : oid
var id_likes = oid_likes ? oid_likes.replaceAll("/", "-") : oid_likes

if (typeof auth !== 'undefined') {
var id = oid ? oid.replaceAll("/", "-") : oid

var viewed = localStorage.getItem(id);

if (!viewed) {
Expand All @@ -28,7 +30,6 @@ if (typeof auth !== 'undefined') {
});
}

var id_likes = oid_likes ? oid_likes.replaceAll("/", "-") : oid_likes
var liked = localStorage.getItem(id_likes);

if (liked) {
Expand Down Expand Up @@ -97,7 +98,6 @@ function remove_like_article(id_likes) {
}

function process_article() {
var id_likes = oid_likes ? oid_likes.replaceAll("/", "-") : oid_likes
if (!liked_page) {
like_article(id_likes)
} else {
Expand Down
6 changes: 6 additions & 0 deletions assets/js/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,12 @@ function buildIndex() {
{ name: "content", weight: 0.4 },
],
};
/*var finalIndex = [];
for (var i in data) {
if(data[i].type != "users" && data[i].type != "tags" && data[i].type != "categories"){
finalIndex.push(data[i]);
}
}*/
fuse = new Fuse(data, options);
indexed = true;
});
Expand Down
2 changes: 1 addition & 1 deletion config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
[module.hugoVersion]
extended = true
min = "0.87.0"
max = "0.123.8"
max = "0.124.1"
File renamed without changes.
1 change: 1 addition & 0 deletions config/_default/languages.en.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ title = "Blowfish"
# { google = "https://www.google.com/" },
# { hashnode = "https://username.hashnode.dev" },
# { instagram = "https://instagram.com/username" },
# { itch-io = "https://username.itch.io" },
# { keybase = "https://keybase.io/username" },
# { kickstarter = "https://www.kickstarter.com/profile/username" },
# { lastfm = "https://lastfm.com/user/username" },
Expand Down
5 changes: 4 additions & 1 deletion exampleSite/config/_default/hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,21 @@
# https://blowfish.page/docs/getting-started/

theme = "blowfish"
baseURL = "https://nunocoracao.github.io/blowfish"
baseURL = "https://localhost:1313"
defaultContentLanguage = "en"
#disableLanguages = ['ja'] #to allow translation work requiring shipping to production

# pluralizeListTitles = "true" # hugo function useful for non-english languages, find out more in https://gohugo.io/getting-started/configuration/#pluralizelisttitles

enableRobotsTXT = true
paginate = 100
summaryLength = 30
hasCJKLanguage = true

buildDrafts = false
buildFuture = false


googleAnalytics = "G-PEDMYR1V0K"

[imaging]
Expand Down
22 changes: 22 additions & 0 deletions exampleSite/config/_default/languages.it.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
languageCode = "it"
languageName = "Italiano"
weight = 2
title = "Blowfish"

[params]
displayName = "Italiano"
isoCode = "it"
rtl = false
dateFormat = "2 January 2006"
logo = "img/blowfish_logo_transparent.png"
description = "Un potente, leggero tema per Hugo."

[author]
name = "Blowfish"
image = "img/blowfish_logo.png"
headline = "Un potente, leggero tema per Hugo."
bio = "Un potente, leggero tema per Hugo."
links = [
{ x-twitter = "https://twitter.com/burufugu" },
{ github = "https://github.com/nunocoracao/blowfish" },
]
22 changes: 22 additions & 0 deletions exampleSite/config/_default/languages.ja.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
languageCode = "ja"
languageName = "日本語"
weight = 2
title = "Blowfish"

[params]
displayName = "日本語"
isoCode = "ja"
rtl = false
dateFormat = "2006-01-02"
logo = "img/blowfish_logo_transparent.png"
description = "強力で、軽量な Hugo のテーマです。"

[author]
name = "Blowfish"
image = "img/blowfish_logo.png"
headline = "強力で、軽量な Hugo のテーマです。"
bio = "強力で、軽量な Hugo のテーマです。"
links = [
{ x-twitter = "https://twitter.com/burufugu" },
{ github = "https://github.com/nunocoracao/blowfish" },
]
22 changes: 22 additions & 0 deletions exampleSite/config/_default/languages.zh-cn.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
languageCode = "zh-cn"
languageName = "简体中文"
weight = 2
title = "Blowfish"

[params]
displayName = "简体中文"
isoCode = "zh-cn"
rtl = false
dateFormat = "2006-01-02"
logo = "img/blowfish_logo_transparent.png"
description = "一个强大、轻量级的 Hugo 主题。"

[author]
name = "Blowfish"
image = "img/blowfish_logo.png"
headline = "一个强大、轻量级的 Hugo 主题。"
bio = "一个强大、轻量级的 Hugo 主题。"
links = [
{ x-twitter = "https://twitter.com/burufugu" },
{ github = "https://github.com/nunocoracao/blowfish" },
]
91 changes: 91 additions & 0 deletions exampleSite/config/_default/menus.it.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
# -- Main Menu --
# The main menu is displayed in the header at the top of the page.
# Acceptable parameters are name, pageRef, page, url, title, weight.
#
# The simplest menu configuration is to provide:
# name = The name to be displayed for this menu link
# pageRef = The identifier of the page or section to link to
#
# By default the menu is ordered alphabetically. This can be
# overridden by providing a weight value. The menu will then be
# ordered by weight from lowest to highest.

[[main]]
name = "Documenti"
pageRef = "docs"
weight = 10

[[main]]
name = "Shortcodes"
pageRef = "docs/shortcodes"
weight = 15

[[main]]
name = "Esempi"
weight = 20

[[main]]
name = "Campioni"
parent = "Esempi"
pageRef = "samples"
weight = 16

[[main]]
name = "Vetrina"
parent = "Esempi"
pageRef = "examples"
weight = 30

[[main]]
name = "Ricette"
parent = "Esempi"
pageRef = "guides"
weight = 40

[[main]]
name = "Utenti"
pageRef = "users"
weight = 90

[[main]]
name = "Merch"
url = "https://www.teepublic.com/user/blowfish-store/t-shirts"
weight = 100

#[[main]]
# name = "Test"
# pageRef = "pagTest"
# weight = 1000

[[main]]
identifier = "twitter"
pre = "x-twitter"
url = "https://twitter.com/burufugu"
weight = 200

#[[main]]
# identifier = "mastodon"
# pre = "mastodon"
# weight = 300
# url = "https://masto.ai/@blowfish"

[[main]]
identifier = "github"
pre = "github"
url = "https://github.com/nunocoracao/blowfish"
weight = 400


# -- Footer Menu --
# The footer menu is displayed at the bottom of the page, just before
# the copyright notice. Configure as per the main menu above.

[[footer]]
name = "Tags"
pageRef = "tags"
weight = 10

[[footer]]
name = "Autori"
pageRef = "authors"
weight = 20
91 changes: 91 additions & 0 deletions exampleSite/config/_default/menus.ja.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
# -- メインメニュー --
# メインメニューはページトップのヘッダーに表示されます。
# 利用可能なパラメーターは name, pageRef, page, url, title, weight です。
#
# 最もシンプルなメニュー設定はこちらです:
# name = このメニューリンクに表示される名前
# pageRef = ページやセクションのリンクに利用される識別子
#
# デフォルトでは、メニューはアルファベット順に並べられます。
# これは、 weight value で上書き可能です。
# このメニューは weight が低い値から高い値に順に表示されます。

[[main]]
name = "資料"
pageRef = "docs"
weight = 10

[[main]]
name = "ショートコード"
pageRef = "docs/shortcodes"
weight = 15

[[main]]
name = ""
weight = 20

[[main]]
name = "サンプル"
parent = ""
pageRef = "samples"
weight = 16

[[main]]
name = "ショーケース"
parent = ""
pageRef = "examples"
weight = 30

[[main]]
name = "レシピ"
parent = ""
pageRef = "guides"
weight = 40

[[main]]
name = "ユーザー"
pageRef = "users"
weight = 90

[[main]]
name = "グッズ"
url = "https://www.teepublic.com/user/blowfish-store/t-shirts"
weight = 100

#[[main]]
# name = "テスト"
# pageRef = "pagTest"
# weight = 1000

[[main]]
identifier = "twitter"
pre = "x-twitter"
url = "https://twitter.com/burufugu"
weight = 200

#[[main]]
# identifier = "mastodon"
# pre = "mastodon"
# weight = 300
# url = "https://masto.ai/@blowfish"

[[main]]
identifier = "github"
pre = "github"
url = "https://github.com/nunocoracao/blowfish"
weight = 400


# -- フッターメニュー --
# このフッターメニューはページ下部のコピーライト表示の前に表示されます。
# 上記のメインメニューと同様に設定できます。

[[footer]]
name = "タグ"
pageRef = "tags"
weight = 10

[[footer]]
name = "著者"
pageRef = "authors"
weight = 20
Loading

0 comments on commit fd1dd03

Please sign in to comment.