Compare commits

...
16 Commits
Author SHA1 Message Date
Nuno Coração 68e740b260 Update package.json 2022-10-17 19:09:40 +01:00
Nuno Coração fe5a63e5f2 Update users.md 2022-10-17 19:07:55 +01:00
Nuno Coração 9086c5ca84 Update index.md 2022-10-17 19:06:27 +01:00
Nuno Coração 9044385d2d Merge pull request #131 from lukapiplica/main
hr.yaml
2022-10-17 19:04:46 +01:00
Nuno Coração bfff2ec8c1 Merge pull request #139 from nunocoracao/136-update-user-list-based-on-github-dependencies
updated user list
2022-10-17 19:00:57 +01:00
Nuno Coração d86cb66537 updated user list 2022-10-17 18:59:09 +01:00
Nuno Coração 5622665b92 Update external.md 2022-10-17 12:42:33 +01:00
Nuno Coração 3952747fa0 Update external.md 2022-10-17 12:40:56 +01:00
Nuno Coração a567bca176 Update users.md 2022-10-17 12:37:14 +01:00
Nuno Coração 1d1488f789 updated version 2022-10-17 10:46:46 +01:00
Nuno Coração 4bafe76e72 Merge pull request #135 from nunocoracao/134-make-views-and-likes-into-icons-vs-text
changed likes and views to icons
2022-10-17 10:46:07 +01:00
Nuno Coração 230f3210cf changed likes and views to icons 2022-10-17 10:44:20 +01:00
Nuno Coração 3cf081ad9e Merge pull request #133 from nunocoracao/132-background-hero-images-improvements
UI improvements to background hero
2022-10-17 10:35:03 +01:00
Nuno Coração dfb4be490d UI improvements to background hero 2022-10-17 10:34:34 +01:00
Nuno Coração 9afae930fd added polish to docs 2022-10-17 10:10:08 +01:00
lukapiplica a46a4f3091 hr.yaml
Translated to Croatian.
2022-10-17 07:31:26 +02:00
13 changed files with 94 additions and 15 deletions

No files matched your search

+2 -2
View File
@@ -1634,8 +1634,8 @@ select {
height: 2rem;
}
.h-\[45vh\] {
height: 45vh;
.h-\[300px\] {
height: 300px;
}
.h-36 {
+2
View File
@@ -0,0 +1,2 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512">
<path fill="currentColor" d="M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM432 256c0 79.5-64.5 144-144 144s-144-64.5-144-144s64.5-144 144-144s144 64.5 144 144zM288 192c0 35.3-28.7 64-64 64c-11.5 0-22.3-3-31.6-8.4c-.2 2.8-.4 5.5-.4 8.4c0 53 43 96 96 96s96-43 96-96s-43-96-96-96c-2.8 0-5.6 .1-8.4 .4c5.3 9.3 8.4 20.1 8.4 31.6z"/></svg>

After

Width:  |  Height:  |  Size: 633 B

+2 -2
View File
@@ -12,7 +12,7 @@ if (typeof auth !== 'undefined') {
var data = doc.data();
if (data) {
var label = document.querySelectorAll("span[id='" + oid + "']")[0].innerText.split(' ')[1]
document.querySelectorAll("span[id='" + oid + "']")[0].innerText = numberWithCommas(data.views) + " " + label
document.querySelectorAll("span[id='" + oid + "']")[0].innerText = numberWithCommas(data.views)
}
})
}
@@ -22,7 +22,7 @@ if (typeof auth !== 'undefined') {
var data = doc.data();
if (data) {
var label = document.querySelectorAll("span[id='" + oid + "']")[0].innerText.split(' ')[1]
document.querySelectorAll("span[id='" + oid + "']")[0].innerText = numberWithCommas(data.likes) + " " + label
document.querySelectorAll("span[id='" + oid + "']")[0].innerText = numberWithCommas(data.likes)
}
})
}
@@ -68,9 +68,11 @@ The theme currently supports the following languages by default:
| :jp: Japanese | `ja` |
| :brazil: Portuguese (Brazil) | `pt-br` |
| :portugal: Portuguese (Portugal) | `pt-pt` |
| :poland: Polish | `pl` |
| :romania: Romanian | `ro` |
| :es: Spanish (Spain) | `es` |
| :tr: Turkish | `tr` |
| 🇭🇷 Hrvatski | `hr` |
The default translations can be overridden by creating a custom file in `i18n/[code].yaml` that contains the translation strings. You can also use this method to add new languages. If you'd like to share a new translation with the community, please [open a pull request](https://github.com/nunocoracao/blowfish/pulls).
@@ -187,4 +189,4 @@ Many of the article defaults here can be overridden on a per article basis by sp
The theme also includes a `markup.toml` configuration file. This file contains some important parameters that ensure that Hugo is correctly configured to generate sites built with Blowfish.
Always ensure this file is present in the config directory and that the required values are set. Failure to do so may cause certain features to fucntion incorrectly and could result in unintended behaviour.
Always ensure this file is present in the config directory and that the required values are set. Failure to do so may cause certain features to fucntion incorrectly and could result in unintended behaviour.
+4 -2
View File
@@ -1,9 +1,11 @@
---
title: "An External Article"
date: 2019-01-24
externalUrl: "https://jamespanther.com/writings/i-switched-from-google-analytics-to-fathom-analytics/"
externalUrl: "https://nunocoracao.com/projects/"
summary: "The `externalUrl` front matter parameter can link to any URL."
showReadingTime: false
showReadingTime: true
showLikes: false
showViews: false
_build:
render: "false"
list: "local"
@@ -35,6 +35,7 @@ The full list of built-in icons and their corresponding names can referenced bel
| dribbble | {{< icon dribbble >}} |
| edit | {{< icon edit >}} |
| email | {{< icon email >}} |
| eye | {{< icon eye >}} |
| facebook | {{< icon facebook >}} |
| fire | {{< icon fire >}} |
| flickr | {{< icon flickr >}} |
+4 -1
View File
@@ -20,6 +20,7 @@ Real websites that are built with Blowfish.
| Website | Details |
| --------------------------------------------------------------------- | ---------------------------- |
| [nunocoracao.com](https://nunocoracao.com) | Personal site - Theme author |
| [madoke.org](https://madoke.org/) | Personal site |
| [code-chimp.com](https://code-chimp.com) | Personal site |
| [mucahitkurtlar.github.io](https://mucahitkurtlar.github.io) | Personal site |
| [brendanwallace.github.io](https://brendanwallace.github.io) | Personal site |
@@ -38,7 +39,9 @@ Real websites that are built with Blowfish.
| [blog.watchstep.me](https://blog.watchstep.me) | Personal site |
| [overdevelop.io](https://overdevelop.io) | Personal site |
| [loisvelasco.is-a.dev](https://loisvelasco.is-a.dev) | Personal site |
| [tabletopflore.com](https://www.tabletopflore.com) | Personal site |
| [omarohn.de](https://omarohn.de) | Personal site |
| [spelucin.me](https://spelucin.me) | Personal site |
{{< alert >}}
+62
View File
@@ -0,0 +1,62 @@
article:
anchor_label: "Sidro"
date: "{{ .Date }}"
date_updated: "Ažurirano: {{ .Date }}"
draft: "Nacrt"
edit_title: "Uredi sadržaj"
reading_time:
one: "{{ .Count }} minut"
other: "{{ .Count }} minuta"
reading_time_title: "Vrijeme čitanja"
table_of_contents: "Tablica sadržaja"
word_count:
one: "{{ .Count }} riječ"
other: "{{ .Count }} riječi"
views:
one: "{{ .Count }} pregled"
other: "{{ .Count }} pregleda"
likes:
one: "{{ .Count }} sviđa se"
other: "{{ .Count }} sviđa se"
author:
byline_title: "Autor"
code:
copy: "Kopiraj"
copied: "Kopirano"
error:
404_title: "Stranica nije pronađena :confused:"
404_error: "Greška 404"
404_description: "Čini se da stranica koju ste zatražili ne postoji."
footer:
dark_appearance: "Promjeni na tamni izgled"
light_appearance: "Promijeni na svijetli izgled"
powered_by: "Napravljeno pomoću {{ .Hugo }} &amp; {{ .Theme }}"
list:
externalurl_title: "Link to external site"
no_articles: "Ovdje još nema članaka"
nav:
scroll_to_top_title: "Otiđi na vrh"
skip_to_main: "Otiđi na glavni sadržaj"
search:
open_button_title: "Pretraga (/)"
close_button_title: "Izađi (Esc)"
input_placeholder: "Pretraži"
sharing:
email: "Pošalji putem e-pošte"
facebook: "Podijeli na Facebook"
linkedin: "Podijeli na LinkedIn"
pinterest: "Podijeli na Pinterest"
reddit: "Objavi na Reddit"
twitter: "Tweet na Twitter"
shortcode:
recent_articles: "Nedavno"
+7 -2
View File
@@ -146,10 +146,15 @@
var header = document.getElementById("single_header")
var style = getComputedStyle(header);
var margin = '-'+ (parseInt(style.height) + parseInt(style.marginTop) + parseInt(style.marginBottom) + 20) + 'px'
var hero = document.getElementById('hero')
if(hero)
if(hero){
var margin = '-'+ (parseInt(style.height) + parseInt(style.marginTop) + parseInt(style.marginBottom) + 20) + 'px'
var height = (-parseInt(margin) + parseInt(getComputedStyle(hero).height)) + "px"
console.log(height)
hero.style["margin-bottom"] = margin;
hero.style["height"] = height;
}
</script>
</section>
<footer class="pt-8 max-w-prose print:hidden">
+1 -1
View File
@@ -3,7 +3,7 @@
{{- if not $featured }}{{ $featured = $images.GetMatch "{*cover*,*thumbnail*}" }}{{ end -}}
{{- with $featured -}}
{{ with .Resize "1200x" }}
<div id="hero" class="relative h-[45vh] single_hero_background nozoom" style="background-image:url({{ .RelPermalink }});">
<div id="hero" class="relative h-[300px] single_hero_background nozoom" style="background-image:url({{ .RelPermalink }});">
<div class="hero_gradient bg-gradient-to-t from-neutral dark:from-neutral-800 to-transparent mix-blend-normal"></div>
</div>
{{ end }}
+2 -1
View File
@@ -1,4 +1,5 @@
<span>
<span id="likes_{{ .File.Path }}" title="likes">{{- i18n "article.likes" 0 | markdownify | emojify -}}</span>
<span id="likes_{{ .File.Path }}" title="likes">0</span>
<span>{{ partial "icon.html" "heart" }}</span>
</span>
{{- /* Trim EOF */ -}}
+3 -2
View File
@@ -1,4 +1,5 @@
<span id="views_{{ .File.Path }}" title="views">
{{- i18n "article.views" 0 | markdownify | emojify -}}
<span>
<span id="views_{{ .File.Path }}" title="views">0</span>
<span>{{ partial "icon.html" "eye" }}</span>
</span>
{{- /* Trim EOF */ -}}
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "hugo-blowfish-theme",
"version": "2.0.1",
"version": "2.2.0",
"description": "Blowfish theme for Hugo",
"scripts": {
"preinstall": "rimraf assets/vendor",