mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-11-07 19:49:21 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
68e740b260 | ||
|
|
fe5a63e5f2 | ||
|
|
9086c5ca84 | ||
|
|
9044385d2d | ||
|
|
bfff2ec8c1 | ||
|
|
d86cb66537 | ||
|
|
5622665b92 | ||
|
|
3952747fa0 | ||
|
|
a567bca176 | ||
|
|
1d1488f789 | ||
|
|
4bafe76e72 | ||
|
|
230f3210cf | ||
|
|
3cf081ad9e | ||
|
|
dfb4be490d | ||
|
|
9afae930fd | ||
|
|
a46a4f3091 |
No files matched your search
@@ -1634,8 +1634,8 @@ select {
|
||||
height: 2rem;
|
||||
}
|
||||
|
||||
.h-\[45vh\] {
|
||||
height: 45vh;
|
||||
.h-\[300px\] {
|
||||
height: 300px;
|
||||
}
|
||||
|
||||
.h-36 {
|
||||
|
||||
@@ -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 |
@@ -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).
|
||||
|
||||
|
||||
@@ -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 >}} |
|
||||
|
||||
@@ -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 >}}
|
||||
|
||||
|
||||
@@ -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 }} & {{ .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"
|
||||
|
||||
@@ -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">
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
@@ -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 */ -}}
|
||||
@@ -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
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user