Compare commits

...

10 Commits

Author SHA1 Message Date
ace 21b1deca41 Only add main.css.map when running the development server 2023-04-28 21:23:19 +01:00
Regis Philibert a1a99cf126
Fix taxonomyPageList translation
Fixes #605
2023-02-03 15:46:10 -05:00
Regis Philibert eb978e19ff
Update pagination CSS
Fixes #612
2023-02-03 15:43:47 -05:00
Efrén a43d1b9986
Typo fix (#606)
* Typo fix

* Typo fix
2023-02-03 14:55:29 -05:00
Regis Philibert c62bf44379
html[lang]: use `site.Language.Lang` when `languageCode` is not set. (#617)
Fixes #613
2023-02-03 14:55:04 -05:00
Regis Philibert 315a00623c
Document read_more_copy parameter
Fixes #598
2022-12-14 11:04:41 -05:00
Aren Siekmeier 6affbfb0dd
fix permissions (#581) 2022-12-14 09:56:24 -05:00
James Henstridge 5f5dfb15e8
assets: update mastodon logo in social links (#597)
* assets: replace Mastodon logo

The new version is based on the logo-black.svg file distributed from
https://joinmastodon.org/branding, adjusted to match the metrics of the
other social logos.

* layouts: change the color for the mastodon social link

I've picked a purple from https://joinmastodon.org/branding.
2022-12-14 09:55:14 -05:00
Regis Philibert a0c7382c59
Fix duplicate rel attributes on social-follow 2022-12-02 16:32:01 -05:00
oliv37 3e26715593
Update _index.md (#590) 2022-12-02 15:47:36 -05:00
25 changed files with 39 additions and 17 deletions

0
LICENSE.md Executable file → Normal file
View File

View File

@ -127,6 +127,31 @@ This theme includes a shortcode for a contact form that you can add to any page
{{< form-contact action="https://formspree.io/your@email.com" >}}
```
### Read more link
The homepage and other areas of the site use a `read more` link on the element. You can customize the copy of this link to make it more descriptive with the parameter `read_more_copy` available as a site and front matter parameter.
```
# config.yaml
# Globally for all pages:
params:
read_more_copy: Read more about this entry
# Just for french
languages:
fr:
name: Français
weight: 2
params:
read_more_copy: En savoir plus à ce sujet
```
Using front matter and cascade, this can be customized for a whole section, or just for one page.
```
# content/posts/tower-bridge-london.md
title: The Tower Bridge of London
read_more_copy: Read more about this bridge
```
### Social Follow + Share
The theme automatically adds "Follow" link icons to the header and footer and "Share" link icons to pages unless `disable_share` parameter is set to true either on the site level (site params) or page level (front matter). Each built-in services sports a label, an icon and a color.
@ -135,7 +160,7 @@ In order to register a service to be used, user must add an `ananke_socials` par
- name*: It matches the built-in service reference (Ex: twitter, github)
- url*: The url of the handle's profile on the service (Ex: https://twitter.com/theNewDynamic, https://github.com/
theNewDynamic)
- rel: Optional. Allows to add a `rel` attribute to the follow link. Useful for Mastodon verification which requires a `rel="me"` on the link.
- rel: (default: `noopener`) Controls the `rel` attribute of the "follow" link. Useful for Mastodon verification which requires a `rel="me"` on the link.
```yaml
params:
ananke_socials:
@ -145,7 +170,7 @@ params:
url: https://github.com/theNewDynamic
- name: mastodon
url: https://social.example.com/@username
rel: me
rel: me noopener
```
If user needs to overwrite default `color` and `label` of the service, they simply need to append the following to the entry:

0
archetypes/default.md Executable file → Normal file
View File

View File

@ -26,6 +26,7 @@
.pagination li.disabled {
display: none;
}
.pagination li.active a,
.pagination li.active a:link,
.pagination li.active a:active,
.pagination li.active a:visited {

View File

@ -1,4 +1 @@
<svg style="enable-background:new 0 0 230 230;" version="1.1" viewBox="0 0 230 230" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<path d="M211.80683 139.0875c-3.1825 16.36625-28.4925 34.2775-57.5625 37.74875-15.16 1.80875-30.0825 3.47125-45.99875 2.74125-26.0275-1.1925-46.565-6.2125-46.565-6.2125 0 2.53375.15625 4.94625.46875 7.2025 3.38375 25.68625 25.47 27.225 46.3925 27.9425 21.115.7225 39.91625-5.20625 39.91625-5.20625l.86875 19.09s-14.77 7.93125-41.08125 9.39c-14.50875.7975-32.52375-.365-53.50625-5.91875C9.23183 213.82 1.40558 165.31125.20808 116.09125c-.36375-14.61375-.14-28.39375-.14-39.91875 0-50.33 32.97625-65.0825 32.97625-65.0825C49.67058 3.45375 78.20308.2425 107.86433 0h.72875c29.66125.2425 58.21125 3.45375 74.8375 11.09 0 0 32.97625 14.7525 32.97625 65.0825 0 0 .4125 37.13375-4.6 62.915" style="fill-rule:evenodd;clip-rule:evenodd;"/>
<path d="M65.68743 96.45938c0 9.01375-7.3075 16.32125-16.3225 16.32125-9.01375 0-16.32-7.3075-16.32-16.32125 0-9.01375 7.30625-16.3225 16.32-16.3225 9.015 0 16.3225 7.30875 16.3225 16.3225M124.52893 96.45938c0 9.01375-7.30875 16.32125-16.3225 16.32125-9.01375 0-16.32125-7.3075-16.32125-16.32125 0-9.01375 7.3075-16.3225 16.32125-16.3225 9.01375 0 16.3225 7.30875 16.3225 16.3225M183.36933 96.45938c0 9.01375-7.3075 16.32125-16.32125 16.32125-9.01375 0-16.32125-7.3075-16.32125-16.32125 0-9.01375 7.3075-16.3225 16.32125-16.3225 9.01375 0 16.32125 7.30875 16.32125 16.3225" fill="#fff"/>
</svg>
<svg style="enable-background:new 0 0 67 67;" version="1.1" viewBox="0 0 67 67" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"><path d="M 61.731833,16.783448 C 60.855064,10.336694 55.17491,5.2562169 48.441526,4.2717554 47.305526,4.1054038 43.001372,3.5 33.030833,3.5 h -0.07446 C 22.983141,3.5 20.843449,4.1054038 19.707449,4.2717554 13.161526,5.2289477 7.1836569,9.7940169 5.7332999,16.317063 c -0.6976035,3.212462 -0.7720515,6.774 -0.6424569,10.041 0.1847407,4.685077 0.2205861,9.361923 0.6507292,14.027923 0.2973693,3.099385 0.8161231,6.174077 1.552377,9.201 1.3786615,5.590462 6.9594998,10.242769 12.4272688,12.140846 5.854077,1.979385 12.149615,2.307923 18.181846,0.949 0.663539,-0.152692 1.319846,-0.33 1.968693,-0.531769 1.464153,-0.460846 3.182,-0.976308 4.444846,-1.881692 0.01731,-0.01269 0.03154,-0.02908 0.04154,-0.048 0.01,-0.01885 0.01562,-0.03977 0.01631,-0.06108 v -4.521385 c -3.08e-4,-0.01992 -0.0051,-0.03954 -0.014,-0.05738 -0.009,-0.01785 -0.02185,-0.03354 -0.03777,-0.04577 -0.01585,-0.01231 -0.03431,-0.02092 -0.05392,-0.02531 -0.01969,-0.0043 -0.04008,-0.0042 -0.05969,2.3e-4 -3.864769,0.913077 -7.825154,1.370769 -11.798615,1.363539 -6.838154,0 -8.677308,-3.209693 -9.204,-4.546 -0.423308,-1.154846 -0.692154,-2.359462 -0.799615,-3.583308 -0.0011,-0.02054 0.0028,-0.04108 0.01115,-0.05992 0.0084,-0.01877 0.02123,-0.03538 0.03731,-0.04839 0.01615,-0.013 0.03515,-0.02208 0.05546,-0.02646 0.02031,-0.0045 0.04138,-0.004 0.06154,0.0012 3.800385,0.906846 7.696154,1.364538 11.605615,1.363538 0.940231,0 1.877693,0 2.818,-0.02454 3.931923,-0.109077 8.076154,-0.308154 11.944693,-1.055385 0.09654,-0.01908 0.193,-0.03546 0.275769,-0.06 6.101923,-1.159 11.908846,-4.796846 12.498923,-14.008846 0.02208,-0.362692 0.07723,-3.798769 0.07723,-4.175077 0.0028,-1.279 0.416384,-9.072846 -0.06069,-13.861538 z m -9.391461,22.98623 H 45.924141 V 24.225525 c 0,-3.272462 -1.378692,-4.941385 -4.182923,-4.941385 -3.082692,0 -4.626769,1.974385 -4.626769,5.874 v 8.508385 H 30.736757 V 25.15814 c 0,-3.899615 -1.546847,-5.874 -4.629539,-5.874 -2.787692,0 -4.180154,1.668923 -4.182923,4.941385 V 39.769678 H 15.513526 V 23.753755 c 0,-3.272461 0.844692,-5.87223 2.534,-7.799384 1.742615,-1.922539 4.028461,-2.909693 6.865769,-2.909693 3.283923,0 5.765538,1.248923 7.419923,3.744231 l 1.596539,2.650692 1.59923,-2.650692 c 1.654385,-2.495308 4.136,-3.744231 7.414462,-3.744231 2.834538,0 5.120308,0.987154 6.868461,2.909693 1.689385,1.925307 2.534,4.525077 2.534,7.799384 z" style="fill-rule:evenodd;clip-rule:evenodd;"/></svg>

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

@ -9,6 +9,6 @@ menu: main
---
This is an example of a custom shortcode that you can put right into your content. You will need to add a form action to the the shortcode to make it work. Check out [Formspree](https://formspree.io/) for a simple, free form service.
This is an example of a custom shortcode that you can put right into your content. You will need to add a form action to the shortcode to make it work. Check out [Formspree](https://formspree.io/) for a simple, free form service.
{{< form-contact action="https://example.com" >}}

View File

@ -5,4 +5,4 @@ description: "Le dernier thème dont vous aurez besoin. Peut-être"
cascade:
featured_image: '/images/gohugo-default-sample-hero-image.jpg'
---
Bienvenu sur mon blog à propos de mon travail du moment. Je travail sur une idée de livre. Vous pouvez lire quelques chapitres plus bas.
Bienvenue sur mon blog à propos de mon travail du moment. Je travaille sur une idée de livre. Vous pouvez lire quelques chapitres plus bas.

View File

@ -10,6 +10,6 @@ menu: main
Ceci est la page de contact en Français.
This is an example of a custom shortcode that you can put right into your content. You will need to add a form action to the the shortcode to make it work. Check out [Formspree](https://formspree.io/) for a simple, free form service.
This is an example of a custom shortcode that you can put right into your content. You will need to add a form action to the shortcode to make it work. Check out [Formspree](https://formspree.io/) for a simple, free form service.
{{< form-contact action="https://example.com" >}}

View File

@ -35,7 +35,7 @@ other = "Indirizzo email obbligatorio."
other = "Invia"
[taxonomyPageList]
other = "Below you will find pages that utilize the taxonomy term “{{ .Title }}”"
other = "Di seguito troverai le pagine che utilizzano il termine “{{ .Title }}”"
[pageTitle]
other = "{{ .Name }} pagina"

0
layouts/404.html Executable file → Normal file
View File

2
layouts/_default/baseof.html Executable file → Normal file
View File

@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="{{ site.LanguageCode | default "en" }}" {{- with partialCached "func/GetLanguageDirection" "GetLanguageDirection" }} dir="{{ . }}" {{- end }}>
<html lang="{{ site.LanguageCode | default site.Language.Lang }}" {{- with partialCached "func/GetLanguageDirection" "GetLanguageDirection" }} dir="{{ . }}" {{- end }}>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

0
layouts/_default/list.html Executable file → Normal file
View File

0
layouts/_default/single.html Executable file → Normal file
View File

0
layouts/index.html Executable file → Normal file
View File

View File

@ -57,7 +57,7 @@
color: '#0077b5'
mastodon:
label: Mastodon
color: '#3088d4'
color: '#6364FF'
slack:
label: Slack
color: '#E01E5A'

View File

@ -65,7 +65,7 @@ css asset directory we (unless condition below) add to aforementioned slice */}}
{{ $style := . | resources.Concat "ananke/css/main.css" }}
{{/* We then use toCSS to add sourceMap and minify */}}
{{ $options := dict "enableSourceMap" true "precision" 6 }}
{{ $options := dict "enableSourceMap" (eq hugo.Environment "development") "precision" 6 }}
{{ $style = $style | resources.ToCSS $options | minify }}
{{/* We fingerprint in production for cache busting purposes */}}
{{ if eq (getenv "HUGO_ENV") "production" }}

0
layouts/partials/site-footer.html Executable file → Normal file
View File

0
layouts/partials/site-header.html Executable file → Normal file
View File

View File

@ -1,7 +1,8 @@
{{ $socials := where (partialCached "func/socials/Get" "socials/Get") "follow" "!=" false }}
<div class="ananke-socials">
{{ range $socials }}
<a href="{{ .url }}" target="_blank" {{ with .rel }} rel="{{ . }}" {{ end }} class="{{ .name }} ananke-social-link link-transition stackoverflow link dib z-999 pt3 pt0-l {{ cond (eq $.Site.Language.LanguageDirection "rtl") "ml1" "mr1" }}" title="{{ .label }} link" rel="noopener" aria-label="follow on {{ .label }}——Opens in a new window">
{{ $rel := .rel | default "noopener" }}
<a href="{{ .url }}" target="_blank" rel="{{ $rel }}" class="{{ .name }} ananke-social-link link-transition stackoverflow link dib z-999 pt3 pt0-l {{ cond (eq $.Site.Language.LanguageDirection "rtl") "ml1" "mr1" }}" title="{{ .label }} link" aria-label="follow on {{ .label }}——Opens in a new window">
{{ with .icon }}
<span class="icon">{{ . }}</span>
{{ else }}

0
package.json Executable file → Normal file
View File

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
{"Target":"ananke/css/main.min.css","MediaType":"text/css","Data":{}}

0
theme.toml Executable file → Normal file
View File