diff options
31 files changed, 32 insertions, 27 deletions
@@ -31,7 +31,7 @@ This theme was highly inspired by the [hello-friend](https://github.com/panr/hug ## Features - Theming: **dark/light mode**, depending on your system preferences or the users choice -- Great reading experience thanks to [**Inter UI font**](https://rsms.me/inter/), made by [Rasmus Andersson](https://rsms.me/about/) +- Great reading experience thanks to [**Inter font**](https://rsms.me/inter/), made by [Rasmus Andersson](https://rsms.me/about/) - Nice code highlighting thanks to [**PrismJS**](https://prismjs.com) - An easy way to modify the theme with Hugo tooling - Fully responsive diff --git a/assets/scss/_fonts.scss b/assets/scss/_fonts.scss index 83fb588..a5d945e 100644 --- a/assets/scss/_fonts.scss +++ b/assets/scss/_fonts.scss @@ -1,50 +1,50 @@ @font-face { - font-family: 'Inter UI'; + font-family: 'Inter'; font-style: normal; font-display: auto; font-weight: 400; - src: url("../fonts/Inter-UI-Regular.woff2") format("woff2"), - url("../fonts/Inter-UI-Regular.woff") format("woff"); + src: url("../fonts/Inter-Regular.woff2") format("woff2"), + url("../fonts/Inter-Regular.woff") format("woff"); } @font-face { - font-family: 'Inter UI'; + font-family: 'Inter'; font-style: italic; font-display: auto; font-weight: 400; - src: url("../fonts/Inter-UI-Italic.woff2") format("woff2"), - url("../fonts/Inter-UI-Italic.woff") format("woff"); + src: url("../fonts/Inter-Italic.woff2") format("woff2"), + url("../fonts/Inter-Italic.woff") format("woff"); } @font-face { - font-family: 'Inter UI'; + font-family: 'Inter'; font-style: normal; font-display: auto; font-weight: 600; - src: url("../fonts/Inter-UI-Medium.woff2") format("woff2"), - url("../fonts/Inter-UI-Medium.woff") format("woff"); + src: url("../fonts/Inter-Medium.woff2") format("woff2"), + url("../fonts/Inter-Medium.woff") format("woff"); } @font-face { - font-family: 'Inter UI'; + font-family: 'Inter'; font-style: italic; font-display: auto; font-weight: 600; - src: url("../fonts/Inter-UI-MediumItalic.woff2") format("woff2"), - url("../fonts/Inter-UI-MediumItalic.woff") format("woff"); + src: url("../fonts/Inter-MediumItalic.woff2") format("woff2"), + url("../fonts/Inter-MediumItalic.woff") format("woff"); } @font-face { - font-family: 'Inter UI'; + font-family: 'Inter'; font-style: normal; font-display: auto; font-weight: 800; - src: url("../fonts/Inter-UI-Bold.woff2") format("woff2"), - url("../fonts/Inter-UI-Bold.woff") format("woff"); + src: url("../fonts/Inter-Bold.woff2") format("woff2"), + url("../fonts/Inter-Bold.woff") format("woff"); } @font-face { - font-family: 'Inter UI'; + font-family: 'Inter'; font-style: italic; font-display: auto; font-weight: 800; - src: url("../fonts/Inter-UI-BoldItalic.woff2") format("woff2"), - url("../fonts/Inter-UI-BoldItalic.woff") format("woff"); + src: url("../fonts/Inter-BoldItalic.woff2") format("woff2"), + url("../fonts/Inter-BoldItalic.woff") format("woff"); } diff --git a/assets/scss/_main.scss b/assets/scss/_main.scss index 7a62d4b..2761611 100644 --- a/assets/scss/_main.scss +++ b/assets/scss/_main.scss @@ -14,7 +14,7 @@ html { body { margin: 0; padding: 0; - font-family: "Inter UI", -apple-system, BlinkMacSystemFont, "Roboto", + font-family: Inter, -apple-system, BlinkMacSystemFont, "Roboto", "Segoe UI", Helvetica, Arial, sans-serif; font-display: auto; font-size: 1rem; @@ -432,4 +432,4 @@ hr { // Prism JS Additionals .highlight { margin: 30px auto; -}
\ No newline at end of file +} diff --git a/assets/scss/_single.scss b/assets/scss/_single.scss index 2359e09..9d36cb1 100644 --- a/assets/scss/_single.scss +++ b/assets/scss/_single.scss @@ -46,6 +46,7 @@ margin: 40px -50px; width: $max-width; max-width: $max-width; + overflow: hidden; @media #{$media-size-tablet} { margin: 20px 0; width: 100%; @@ -230,4 +231,4 @@ &.previous .button__icon { margin-right: 8px; } -}
\ No newline at end of file +} diff --git a/docs/svgs.md b/docs/svgs.md index ffdf583..ad655f2 100644 --- a/docs/svgs.md +++ b/docs/svgs.md @@ -45,6 +45,7 @@ - [medium](https://simpleicons.org/?q=medium) - [mixcloud](https://simpleicons.org/?q=mixcloud) - [npm](https://simpleicons.org/?q=npm) +- [opencollective](https://simpleicons.org/?q=opencollective) - [orcid](https://simpleicons.org/?q=orcid) - [peertube](https://simpleicons.org/?q=peertube) - [pinterest](https://simpleicons.org/?q=pinterest) diff --git a/layouts/partials/favicons.html b/layouts/partials/favicons.html index 36e2eac..962026b 100644 --- a/layouts/partials/favicons.html +++ b/layouts/partials/favicons.html @@ -1,10 +1,9 @@ -{{- with .Site.Params.favicon.color }} <link rel="apple-touch-icon" sizes="180x180" href="{{"apple-touch-icon.png" | relURL}}"> <link rel="icon" type="image/png" sizes="32x32" href="{{"favicon-32x32.png" | relURL}}"> <link rel="icon" type="image/png" sizes="16x16" href="{{"favicon-16x16.png" | relURL}}"> <link rel="manifest" href="{{"site.webmanifest" | relURL}}"> - <link rel="mask-icon" href="{{"safari-pinned-tab.svg" | relURL}}" color="{{.mask}}"> + <link rel="mask-icon" href="{{"safari-pinned-tab.svg" | relURL}}" color="{{.Site.Params.favicon.mask}}"> <link rel="shortcut icon" href="{{"favicon.ico" | relURL}}"> - <meta name="msapplication-TileColor" content="{{.msapplication}}"> - <meta name="theme-color" content="{{.theme}}"> -{{ end }} + <meta name="msapplication-TileColor" content="{{.Site.Params.favicon.msapplication}}"> + <meta name="theme-color" content="{{.Site.Params.favicon.theme}}"> + diff --git a/layouts/partials/svg.html b/layouts/partials/svg.html index 73df615..bf40997 100644 --- a/layouts/partials/svg.html +++ b/layouts/partials/svg.html @@ -90,8 +90,12 @@ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor" stroke-width="2"><path d="M21.95 19.062c-.154 0-.31-.045-.445-.135-.369-.25-.465-.75-.225-1.11.738-1.094 1.125-2.381 1.125-3.719s-.387-2.625-1.125-3.721c-.249-.368-.145-.866.216-1.106.375-.249.87-.146 1.108.214.917 1.365 1.396 2.97 1.396 4.62 0 1.648-.479 3.254-1.396 4.619-.135.239-.39.359-.645.359l-.009-.021zM19.66 17.768c-.153 0-.308-.045-.445-.139-.369-.239-.463-.734-.215-1.094.489-.721.747-1.545.747-2.43 0-.855-.258-1.695-.747-2.431-.248-.36-.154-.854.215-1.095s.857-.15 1.106.225c.669.99 1.021 2.145 1.021 3.314 0 1.201-.352 2.34-1.021 3.315-.146.24-.406.36-.661.36v-.025zm-3.73-7.153c-.314-3.197-3.016-5.699-6.3-5.699-2.721 0-5.13 1.748-5.995 4.283C1.588 9.501 0 11.269 0 13.4c0 2.344 1.912 4.254 4.26 4.254h10.908c1.964 0 3.566-1.594 3.566-3.557 0-1.706-1.2-3.129-2.805-3.48v-.002zm-.762 5.446H4.263c-1.466 0-2.669-1.191-2.669-2.658 0-1.465 1.193-2.658 2.669-2.658.71 0 1.381.285 1.886.781.3.314.811.314 1.125 0 .3-.301.3-.811 0-1.125-.555-.542-1.231-.931-1.965-1.111.75-1.665 2.43-2.774 4.305-2.774 2.609 0 4.74 2.129 4.74 4.738 0 .512-.075 1.006-.24 1.486-.135.42.09.869.51 1.02.074.03.165.045.24.045.33 0 .645-.211.75-.54.105-.315.18-.63.225-.96.734.285 1.26 1.005 1.26 1.83 0 1.096-.885 1.979-1.965 1.979l.034-.053z"/></svg> {{- else if (eq .name "npm") -}} <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor" stroke-width="2"><path d="M0 7.334v8h6.666v1.332H12v-1.332h12v-8H0zm6.666 6.664H5.334v-4H3.999v4H1.335V8.667h5.331v5.331zm4 0v1.336H8.001V8.667h5.334v5.332h-2.669v-.001zm12.001 0h-1.33v-4h-1.336v4h-1.335v-4h-1.33v4h-2.671V8.667h8.002v5.331zM10.665 10H12v2.667h-1.335V10z"/></svg> +{{- else if (eq .name "opencollective") -}} + <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor" stroke="none"><path d="M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12c2.54 0 4.894-.79 6.834-2.135l-3.107-3.109a7.715 7.715 0 1 1 0-13.512l3.107-3.109A11.943 11.943 0 0 0 12 0zm9.865 5.166l-3.109 3.107A7.67 7.67 0 0 1 19.715 12a7.682 7.682 0 0 1-.959 3.727l3.109 3.107A11.943 11.943 0 0 0 24 12c0-2.54-.79-4.894-2.135-6.834z"/></svg> {{- else if (eq .name "orcid") -}} <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor" stroke-width="2"><path d="M12 0C5.372 0 0 5.372 0 12s5.372 12 12 12 12-5.372 12-12S18.628 0 12 0zM7.369 4.378c.525 0 .947.431.947.947s-.422.947-.947.947a.95.95 0 0 1-.947-.947c0-.525.422-.947.947-.947zm-.722 3.038h1.444v10.041H6.647V7.416zm3.562 0h3.9c3.712 0 5.344 2.653 5.344 5.025 0 2.578-2.016 5.025-5.325 5.025h-3.919V7.416zm1.444 1.303v7.444h2.297c3.272 0 4.022-2.484 4.022-3.722 0-2.016-1.284-3.722-4.097-3.722h-2.222z"/></svg> +{{- else if (eq .name "patreon") -}} + <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor" stroke="none"><path d="M0 .48v23.04h4.22V.48zm15.385 0c-4.764 0-8.641 3.88-8.641 8.65 0 4.755 3.877 8.623 8.641 8.623 4.75 0 8.615-3.868 8.615-8.623C24 4.36 20.136.48 15.385.48z"/></svg> {{- else if (eq .name "peertube") }} <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor" stroke="none"><path d="M3,0v12l9-6L3,0z M3,12v12l9-6L3,12z M12,6v12l9-6L12,6z"/></svg> {{- else if (eq .name "pinterest") }} diff --git a/static/fonts/Inter-Bold.woff b/static/fonts/Inter-Bold.woff Binary files differnew file mode 100644 index 0000000..eaf3d4b --- /dev/null +++ b/static/fonts/Inter-Bold.woff diff --git a/static/fonts/Inter-Bold.woff2 b/static/fonts/Inter-Bold.woff2 Binary files differnew file mode 100644 index 0000000..2846f29 --- /dev/null +++ b/static/fonts/Inter-Bold.woff2 diff --git a/static/fonts/Inter-BoldItalic.woff b/static/fonts/Inter-BoldItalic.woff Binary files differnew file mode 100644 index 0000000..3275076 --- /dev/null +++ b/static/fonts/Inter-BoldItalic.woff diff --git a/static/fonts/Inter-BoldItalic.woff2 b/static/fonts/Inter-BoldItalic.woff2 Binary files differnew file mode 100644 index 0000000..0b1fe8e --- /dev/null +++ b/static/fonts/Inter-BoldItalic.woff2 diff --git a/static/fonts/Inter-Italic.woff b/static/fonts/Inter-Italic.woff Binary files differnew file mode 100644 index 0000000..a806b38 --- /dev/null +++ b/static/fonts/Inter-Italic.woff diff --git a/static/fonts/Inter-Italic.woff2 b/static/fonts/Inter-Italic.woff2 Binary files differnew file mode 100644 index 0000000..a619fc5 --- /dev/null +++ b/static/fonts/Inter-Italic.woff2 diff --git a/static/fonts/Inter-Medium.woff b/static/fonts/Inter-Medium.woff Binary files differnew file mode 100644 index 0000000..d546843 --- /dev/null +++ b/static/fonts/Inter-Medium.woff diff --git a/static/fonts/Inter-Medium.woff2 b/static/fonts/Inter-Medium.woff2 Binary files differnew file mode 100644 index 0000000..f92498a --- /dev/null +++ b/static/fonts/Inter-Medium.woff2 diff --git a/static/fonts/Inter-MediumItalic.woff b/static/fonts/Inter-MediumItalic.woff Binary files differnew file mode 100644 index 0000000..459a656 --- /dev/null +++ b/static/fonts/Inter-MediumItalic.woff diff --git a/static/fonts/Inter-MediumItalic.woff2 b/static/fonts/Inter-MediumItalic.woff2 Binary files differnew file mode 100644 index 0000000..0e3019f --- /dev/null +++ b/static/fonts/Inter-MediumItalic.woff2 diff --git a/static/fonts/Inter-Regular.woff b/static/fonts/Inter-Regular.woff Binary files differnew file mode 100644 index 0000000..62d3a61 --- /dev/null +++ b/static/fonts/Inter-Regular.woff diff --git a/static/fonts/Inter-Regular.woff2 b/static/fonts/Inter-Regular.woff2 Binary files differnew file mode 100644 index 0000000..6c2b689 --- /dev/null +++ b/static/fonts/Inter-Regular.woff2 diff --git a/static/fonts/Inter-UI-Bold.woff b/static/fonts/Inter-UI-Bold.woff Binary files differdeleted file mode 100644 index 8fefb2d..0000000 --- a/static/fonts/Inter-UI-Bold.woff +++ /dev/null diff --git a/static/fonts/Inter-UI-Bold.woff2 b/static/fonts/Inter-UI-Bold.woff2 Binary files differdeleted file mode 100644 index 522adb9..0000000 --- a/static/fonts/Inter-UI-Bold.woff2 +++ /dev/null diff --git a/static/fonts/Inter-UI-BoldItalic.woff b/static/fonts/Inter-UI-BoldItalic.woff Binary files differdeleted file mode 100644 index 8e0e289..0000000 --- a/static/fonts/Inter-UI-BoldItalic.woff +++ /dev/null diff --git a/static/fonts/Inter-UI-BoldItalic.woff2 b/static/fonts/Inter-UI-BoldItalic.woff2 Binary files differdeleted file mode 100644 index 66d8511..0000000 --- a/static/fonts/Inter-UI-BoldItalic.woff2 +++ /dev/null diff --git a/static/fonts/Inter-UI-Italic.woff b/static/fonts/Inter-UI-Italic.woff Binary files differdeleted file mode 100644 index 70c132b..0000000 --- a/static/fonts/Inter-UI-Italic.woff +++ /dev/null diff --git a/static/fonts/Inter-UI-Italic.woff2 b/static/fonts/Inter-UI-Italic.woff2 Binary files differdeleted file mode 100644 index 6af8a7f..0000000 --- a/static/fonts/Inter-UI-Italic.woff2 +++ /dev/null diff --git a/static/fonts/Inter-UI-Medium.woff b/static/fonts/Inter-UI-Medium.woff Binary files differdeleted file mode 100644 index 8aef504..0000000 --- a/static/fonts/Inter-UI-Medium.woff +++ /dev/null diff --git a/static/fonts/Inter-UI-Medium.woff2 b/static/fonts/Inter-UI-Medium.woff2 Binary files differdeleted file mode 100644 index 7bdc267..0000000 --- a/static/fonts/Inter-UI-Medium.woff2 +++ /dev/null diff --git a/static/fonts/Inter-UI-MediumItalic.woff b/static/fonts/Inter-UI-MediumItalic.woff Binary files differdeleted file mode 100644 index 58119ef..0000000 --- a/static/fonts/Inter-UI-MediumItalic.woff +++ /dev/null diff --git a/static/fonts/Inter-UI-MediumItalic.woff2 b/static/fonts/Inter-UI-MediumItalic.woff2 Binary files differdeleted file mode 100644 index 4d4034b..0000000 --- a/static/fonts/Inter-UI-MediumItalic.woff2 +++ /dev/null diff --git a/static/fonts/Inter-UI-Regular.woff b/static/fonts/Inter-UI-Regular.woff Binary files differdeleted file mode 100644 index 2ada3d0..0000000 --- a/static/fonts/Inter-UI-Regular.woff +++ /dev/null diff --git a/static/fonts/Inter-UI-Regular.woff2 b/static/fonts/Inter-UI-Regular.woff2 Binary files differdeleted file mode 100644 index e29e9c9..0000000 --- a/static/fonts/Inter-UI-Regular.woff2 +++ /dev/null |