Merge remote-tracking branch 'base/hugo' into hugo

This commit is contained in:
falsycat 2023-06-14 19:23:36 +09:00
commit d9899fc833
7 changed files with 16 additions and 13 deletions

View File

@ -14,7 +14,7 @@ jobs:
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: Build Link Index - name: Build Link Index
uses: jackyzha0/hugo-obsidian@v2.18 uses: jackyzha0/hugo-obsidian@v2.20
with: with:
index: true index: true
input: content input: content

View File

@ -117,7 +117,7 @@ const resultToHTML = ({ url, title, content }) => {
const redir = (id, term) => { const redir = (id, term) => {
const shouldTrim = PRODUCTION && SEARCH_ENABLED const shouldTrim = PRODUCTION && SEARCH_ENABLED
const baseURLPrefix = shouldTrim ? "" : BASE_URL.replace(/\/$/g, "") const baseURLPrefix = shouldTrim ? "" : BASE_URL.replace(/\/$/g, "")
const urlString = `${baseURLPrefix}${id}#:~:text=${encodeURIComponent(term)}/` const urlString = `${baseURLPrefix}${id}#:~:text=${encodeURIComponent(term)}`
window.Million.navigate( window.Million.navigate(
new URL(urlString), new URL(urlString),
".singlePage", ".singlePage",

View File

@ -114,6 +114,10 @@ blockquote[class*="-callout"] > p:first-child {
} }
} }
blockquote[class*="-callout"] > p:empty {
padding: 1.2em 35px;
}
$summary: summary, abstract, tldr; $summary: summary, abstract, tldr;
$bug: bug; $bug: bug;
$danger: danger, error; $danger: danger, error;

View File

@ -2,7 +2,7 @@
other = "Hey ! Vous semblez perdu‧e. Cette page n'existe pas (ou est privée)." other = "Hey ! Vous semblez perdu‧e. Cette page n'existe pas (ou est privée)."
[404_back] [404_back]
other = "↳ On va te faire retourner à l'accueil" other = "↳ Clique ici pour retourner sur la page d'accueil"
[all_posts] [all_posts]
other = "Tout {{.Title}}" other = "Tout {{.Title}}"
@ -14,7 +14,7 @@ other = "Dernière modification"
other = "notes avec ce tag" other = "notes avec ce tag"
[first_10] [first_10]
other = "affichant les 10 premiers résultats" other = "les 10 premiers résultats"
[tag] [tag]
other = "Tag" other = "Tag"
@ -35,7 +35,7 @@ other = "Mode Clair"
other = "Mode Sombre" other = "Mode Sombre"
[edit_source] [edit_source]
other = "Editer la source" other = "Modifier la source"
[interactive_graph] [interactive_graph]
other = "Graphique interactif" other = "Graphique interactif"
@ -44,16 +44,16 @@ other = "Graphique interactif"
other = "Rechercher" other = "Rechercher"
[search_icon] [search_icon]
other = "Icône de recherche" other = "l'icône de recherche"
[icon_search] [icon_search]
other = "Icon pour ouvrir la recherche" other = "L'icône pour ouvrir la recherche"
[recent_notes] [recent_notes]
other = "Notes récentes" other = "Notes récentes"
[first_3_notes] [first_3_notes]
other = "3 premières {{ .notes }}" other = "les 3 premières {{ .notes }}"
[search_for_something] [search_for_something]
other = "Rechercher quelque-chose..." other = "Rechercher quelque-chose..."

View File

@ -1,5 +1,4 @@
<script <script
async
src="https://cdn.jsdelivr.net/npm/d3@6.7.0/dist/d3.min.js" src="https://cdn.jsdelivr.net/npm/d3@6.7.0/dist/d3.min.js"
integrity="sha256-+7jaYCp29O1JusNWHaYtgUn6EhuP0VaFuswhNV06MyI=" integrity="sha256-+7jaYCp29O1JusNWHaYtgUn6EhuP0VaFuswhNV06MyI="
crossorigin="anonymous" crossorigin="anonymous"

View File

@ -71,11 +71,11 @@
{{partial "mermaid.html" .}} {{partial "mermaid.html" .}}
<script async src="https://unpkg.com/@floating-ui/core@0.7.3"></script> <script src="https://cdn.jsdelivr.net/npm/@floating-ui/core@1.2.1"></script>
<script async src="https://unpkg.com/@floating-ui/dom@0.5.4"></script> <script src="https://cdn.jsdelivr.net/npm/@floating-ui/dom@1.2.1"></script>
{{ $popover := resources.Get "js/popover.js" | resources.Fingerprint "md5" | {{ $popover := resources.Get "js/popover.js" | resources.Fingerprint "md5" |
resources.Minify }} resources.Minify }}
<script async src="{{$popover.Permalink}}"></script> <script defer src="{{$popover.Permalink}}"></script>
<!-- Optional scripts --> <!-- Optional scripts -->
{{ if $data.enableCodeBlockTitle | default $.Site.Data.config.enableCallouts }} {{ if $data.enableCodeBlockTitle | default $.Site.Data.config.enableCallouts }}