Commit Graph

1015 Commits

Author SHA1 Message Date
Aditya Telange
b6a308d331
Do not smooth scrollIntoView
if user has it preferred

https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-reduced-motion
2021-01-13 23:19:35 +05:30
Aditya Telange
dd83560010
go-top-top button cleanup 2021-01-11 21:01:50 +05:30
Aditya Telange
7a0e1f369c
change animation condition from hover to active for share-buttons and terms-tags 2021-01-11 20:31:03 +05:30
Aditya Telange
89414d00dc
add minimal border to post-entry
- increases element speration without being noticed
cc: #169
2021-01-11 20:15:04 +05:30
Aditya Telange
e809aef590
lighten dark's border
#5b5d67 -> #333
2021-01-11 20:01:19 +05:30
Muhammad Hanif
6f397ef591
i18n: Add id Bahasa Indonesia (#173) 2021-01-11 19:13:36 +05:30
Aditya Telange
6a897a9e67
update LICENSE for 2021 2021-01-08 23:37:28 +05:30
Aditya Telange
4fd4bc5e20 Add info to blank.css 2021-01-08 23:36:33 +05:30
Aditya Telange
9d478913ec
Update README.md
replace unseen emoji
2021-01-08 23:35:00 +05:30
Aditya Telange
bd4a118afa
rm unnecessay color to box-shadow for anchors 2021-01-08 22:53:04 +05:30
Aditya Telange
3b0997fc42
fix margin when hljs was disabled 2021-01-08 22:52:03 +05:30
Aditya Telange
905640ceef
increase blockquote thickness inside post 2021-01-08 20:38:00 +05:30
Aditya Telange
09de369d2f update fuse.js to v6.4.6
credits: https://github.com/krisk/Fuse/releases/tag/v6.4.6
2021-01-06 01:52:22 +05:30
Roman Ispaev
3b5c7faaec
fix wrong asset links on multihost config (#126)
CORS issue for multidomain setup (#168)
2021-01-06 01:51:43 +05:30
Weichen Liu
946cc1ffe3
single: Add post description (#165)
usage =>
in post params add : 
    description: "Desc Text."
2021-01-02 22:30:20 +05:30
Aditya Telange
5d6de5ecb1
post-single(css): fix scroll-bar in code
hiding background
2020-12-31 17:01:26 +05:30
Tomás Dias Almeida
bfb5019cbc
Code block / blockquote / hr should respect the margin layout (#154)
* Code block should respect the margin layout

* Blockquote should respect the margin layout

* align others elements to main width with minors mods

Co-authored-by: Aditya Telange <21258296+adityatelange@users.noreply.github.com>
2020-12-31 16:11:18 +05:30
Aditya Telange
d53671786c social-icons: add reddit icon #163
credits for svg: https://iconmonstr.com/reddit-1-svg/

LICENSE: https://iconmonstr.com/license/
2020-12-31 11:05:08 +05:30
Aditya Telange
e000675275 social-icons: add nuget icon & refactor code #163
credits for svg: https://commons.wikimedia.org/wiki/File:NuGet_project_logo.svg

This file is licensed under the Creative Commons Attribution 2.0 Generic license.
2020-12-31 11:05:08 +05:30
Aditya Telange
3d88f46f33
Update README.md 2020-12-30 21:37:26 +05:30
Aditya Telange
b825b7f27c
post-single: Fix embeded gist colors
fixes: #161
2020-12-29 18:12:15 +05:30
Aditya Telange
2b7d2dd493
reset: scroll-bar: set only on devices > 768px
default style to others
2020-12-29 18:10:18 +05:30
Aditya Telange
0e9ca244dc
fotter: fix Links do not have a discernible name for go-to-top btn 2020-12-29 17:03:22 +05:30
Aditya Telange
c9fa6c7915
cover: granular controls for hiding cover image #156
in site config =>
    params:
        cover:
            hidden: true # hide everywhere but not in structured data
            hiddenInList: true # hide on list pages and home
            hiddenInSingle: true # hide on single page

per-page in front-matter =>
   hidden: true # only hide on current single page
2020-12-29 16:44:03 +05:30
Aditya Telange
e252e761f5
footer: allow disabling HLJS #143
usage =>

in site config =>
    params:
        assets:
            disableHLJS: true

per-page in front-matter =>
   disableHLJS: true
2020-12-29 16:39:23 +05:30
Aditya Telange
838e607122
head: rm invalid rel="preload" on search assets 2020-12-27 22:39:03 +05:30
Aditya Telange
4389e03df9
baseof: pass .Layout
for 0f994eee95/layouts/partials/footer.html (L21)
2020-12-27 22:31:14 +05:30
Aditya Telange
0f994eee95 footer: change scroll behaviour as it was before 80954de
fixes #151

anchored-headings: retain anchor link '#' in URL
cc #108

footer: remove '#' with go-to-top

Revert "anchored-headings: retain anchor link '#' in URL"
This reverts commit 80954de8bd.

Revert "footer: rm unused code"
This reverts commit c76233b350.
2020-12-24 13:00:58 +05:30
Aditya Telange
7c53c14c85
Update theme.toml
change homepage to demo website
2020-12-23 16:44:32 +05:30
Aditya Telange
aeaa60d9b6
reset(css): rm -webkit-appearance
fixes: #150
2020-12-23 16:36:19 +05:30
pacientes
a36d045214
post-single(css): add image center align tag (#145)
usage in markdown =>
![name](path/to/image.png#center)

Co-authored-by: Aditya Telange <21258296+adityatelange@users.noreply.github.com>
2020-12-23 16:34:01 +05:30
Maurice Bauer
8933950217
i18n: Added missing german (de) translation (#147) 2020-12-23 13:09:20 +05:30
Aditya Telange
b4933eadd6
header: use .KeyName for accesskey search
in menu

- .Name doesn't work with emojis
- .URL doesn't work with url such as 'search/'
2020-12-18 22:50:04 +05:30
Aditya Telange
6c83df566c
header: add accesskey (Alt + /) for search
in menu

- Alt + /: jumps to search page if in menu
2020-12-18 22:05:02 +05:30
Aditya Telange
bccce36c98
search: use kb nav only inside searchbox
rm 'prevent mouseclick to change active element'
2020-12-18 21:25:34 +05:30
Aditya Telange
a150c3449a
Link AccessKeys shortcut in title of elements 2020-12-18 20:02:05 +05:30
Aditya Telange
23aeda369c head: trim whitespace from canonicalURL
- amend to 14c5245
2020-12-18 11:58:16 +05:30
Aditya Telange
b7f8749cdf
Search: Keyboard Bindings for easier navigation (#138)
* set up basic actions on keypress
* add actions to perform conditionally
* add simple highlight animation
* prevent mouseclick to change active element
* clear input box on Escape
* click on Arrow Right
* clear results and focus search-input on esc
* refactor
2020-12-18 11:45:10 +05:30
Maciej Sawicki
d6b2282582 templates: Fix series detection in opengraph
When inside front matter you specified series with spaces,
then the opengraph template wouldn't detect other articles,
because in `.Site.Taxonomies.series` they are stored by
urlized key.

Example:

```yaml
series:
    - My Series
```

```gohtml
{{/* in a template */}}
{{- $series := index .Site.Taxonomies.series$name }}

{{/* was resolved to */}}
{{- $series := index {'my-series': ...} "MySeries" }}
```

(cherry picked from commit d2d493ab5d6a054001a8448ea0de2949dac4b30e)
2020-12-16 18:07:59 +05:30
Aditya Telange
f5417ab6d0
Update README.md 2020-12-16 00:01:44 +05:30
Cody Brownstein
2abc278c69
head: Fix user defining canonical URL resulting in multiple canonical URLs (#133)
* Revert "head: add support for Canonical URLs"

This reverts commit 8af7c551ff.

* Allow user to specify single canonical URL
2020-12-15 22:59:04 +05:30
Aditya Telange
77ff1e6b45
search: introduce loading custom fusejs options from site config #134
* refer https://fusejs.io/api/options.html for opts
* keys used can be some, all or none from
   ["title", "permalink", "summary", "content"]

in config.yml, add fuseOpts as shown below =>
  params:
    fuseOpts:
        isCaseSensitive: false
        shouldSort: true
        location: 0
        distance: 1000
        threshold: 0.4
        minMatchCharLength: 0
        keys: ["title", "permalink", "summary", "content"]
2020-12-15 18:57:42 +05:30
Kian Kasad
f9236d92af
shortcodes: figure: don't use h4 tag in figure captions (#127)
* avoiding h4 tags in figcaption elements
* picked from https://github.com/gohugoio/hugo/blob/master/tpl/tplimpl/embedded/templates/shortcodes/figure.html
* figure.html is licensed under Apache License 2.0 and is part of https://github.com/gohugoio/hugo
2020-12-15 17:52:04 +05:30
Aditya Telange
09aba49bf0
header: rm class attributes [WIP]
from hugov0.79.0
2020-12-13 22:29:06 +05:30
Aditya Telange
bf79c208ae
layouts: use hugo.IsProduction 2020-12-13 20:19:25 +05:30
Aditya Telange
153740bbac
header: add title attribute to menus 2020-12-13 20:17:01 +05:30
Aditya Telange
73de54e4bc
update theme meta
- add search
2020-12-13 20:01:54 +05:30
Aditya Telange
14c524539b
Remove whitespace around urls wherever applicable
- corrects mistyped urls with leading or trailing whitespaces
2020-12-13 16:56:41 +05:30
Aditya Telange
8af7c551ff
head: add support for Canonical URLs
cc:  #104

usage =>
  in site config.yml (used for home page only) =>
     canonical: ["https://www.example.com" , "https://blog.example.com"]
  in per-page vars =>
     canonical: ["https://www.example.com/page1" , "https://blog.example.com/pages/page1"]
2020-12-13 16:36:30 +05:30
Aditya Telange
b7f5dd10f1 language-switch: humanize only Lang code
- displays weird text :/
- amend to ad11fe1
2020-12-11 17:20:50 +05:30