Commit Graph

227 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
d74ad93c18
head: add *.css under assets/css/extended/
to bundle it with stylesheet.css as single resource minified

- added to the end so that default vars are overriden properly
2020-12-11 18:22:21 +05:30
Aditya Telange
bb2717a3b9
search: fix redundant results after clearing searchbox 2020-12-06 19:44:36 +05:30
Aditya Telange
4a4408573e
search: init Search feature (#105)
* based on https://gist.github.com/cmod/5410eae147e4318164258742dd053993
* modified working for PaperMod
* fetches current lang index.json for search
* add fuse.js v6.4.3 LICENSE: Apache License 2.0
* bundled fastsearch and fusejs as search.js

Co-authored-by: Craig Mod <stuff@craigmod.com>
2020-12-06 18:19:50 +05:30
Aditya Telange
80954de8bd
anchored-headings: retain anchor link '#' in URL
close: #108
2020-12-05 20:17:07 +05:30
Aditya Telange
28abfba27e
home-info: fix title line height
close: #102
2020-12-04 16:29:56 +05:30
Aditya Telange
dc743ae5e2
header: fix menu items overflow instead of horizontal scroll #99
- broken by https://git.io/JIfLS
2020-12-01 08:36:08 +05:30
Aditya Telange
b5f3debebb
footer: go-to-top: fix overlap with next_page button
close: #91
2020-11-30 13:25:20 +05:30
Aditya Telange
e7e5e8ce6d
main(css): rm media rule for smaller devices
-has no effect
2020-11-28 23:03:06 +05:30
Aditya Telange
d4967f9ebc
hljs: updatev10.2.0 -> v10.2.1
* credits : https://cdnjs.com/libraries/highlight.js
2020-11-19 15:29:02 +05:30
Aditya Telange
c9a387ebdb
assets(css): fix "calc" operands should be correctly spaced 2020-11-17 15:56:27 +05:30
Aditya Telange
2a06c26e9f
assets(css): optimize using csso
https://css.github.io/csso/csso.html
2020-11-17 12:45:19 +05:30
Aditya Telange
66ba0f0ea9
home-info: unset line-clamp for content
- content can be as long as one wants it to be
- was hiding content on mobile devices
- amend to 2c7cffb
2020-11-12 22:20:24 +05:30
Aditya Telange
b22520630d
toc: highlight underline on hover 2020-11-12 11:09:23 +05:30
Aditya Telange
1775dfccfd
scroll-bar(css): fix dark track color on list
pages, due to c960b8a
2020-11-11 10:39:55 +05:30
Aditya Telange
0b07dd2a7d
header: fix spacing when logo-text overflows 2020-11-11 10:36:54 +05:30
Aditya Telange
cf4fd27e3d
anchored-headings: port to PaperMod
- add corresponding css
- gen anchored headings for h1-h6
- link with single.html
2020-11-10 12:34:22 +05:30
Aditya Telange
8574c385cd
profile-mode: user set-able image size
- default 150

usage:
      profileMode:
        imageUrl: "/android-chrome-192x192.png"
        imageWidth: 120
        imageHeight: 120
2020-11-09 12:14:45 +05:30
Aditya Telange
c960b8af04
scroll-bar(css): fix white track color on list
pages, due to diff bg
2020-11-09 11:52:57 +05:30
Aditya Telange
f9fbdc9963
profile-mode: improvements
- update css logic
- rm redundant code
- reduce image size, it looks big imo
2020-11-09 11:12:52 +05:30
Aditya Telange
229df19ec9
header: fix spacing between lang-selector and label
when theme-toggle is disabled
2020-11-03 19:44:19 +05:30
Aditya Telange
b8c29c2e06
reset(css): disable focus only on toc and go-to-top button
revert "css: reset: disbale highlight on focus"

This reverts commit 94b67a5dc9.
2020-10-30 11:42:58 +05:30
Aditya Telange
9acbc2c134
baseof: use dir attribute instead of class
and set default dir to `auto`

main(css): rm unused class
2020-10-30 01:01:48 +05:30
Aditya Telange
6c7b8cf2f9
share-icons: fix extra uneven padding 2020-10-28 09:35:21 +05:30
Aditya Telange
b40f30754d
header: add cursor type pointer to theme-toggle 2020-10-26 22:49:27 +05:30
Aditya Telange
c33dabf3a2
header: add Language switch (#54)
* language-switch: init
* header: move logo-switches together
2020-10-26 22:19:05 +05:30
Aditya Telange
a97de0f9a4
reset(css): rm bold styling (#55) 2020-10-25 16:08:52 +05:30
Mehdy Khoshnoody
3e3a7d380e
post-single(css): improve RTL support (#57)
* Replace left with start for tables and block-quote
2020-10-24 19:12:24 +05:30
Aditya Telange
4e9d470fec
Revert "reset(css): themify text selection"
* looks ugly :p

This reverts commit 3d60370494.
2020-10-23 16:11:55 +05:30
Aditya Telange
3d60370494 reset(css): themify text selection 2020-10-22 16:52:45 +05:30
Zhangyuan Nie
ea9aa38573
header: disable user-select for theme-toggle (#52)
* fix: clicking twice on theme switch selects other text on the nav-bar.
2020-10-20 10:38:43 +05:30
Mehdy Khoshnoody
a153a7cc6f
Add RTL support for multilingual mode (#47)
Usage: 
in site config:
languages:
  ar:
    languagedirection: rtl
    title: مدونتي
    weight: 2

* ref: https://gohugo.io/content-management/multilingual/#configure-languages
2020-10-19 14:47:23 +05:30
Aditya Telange
3edc160c59
nav-label: init
* label can be set differently from title
* label can have an optional icon with preffered size

* in site config =>
params:
  label:
    text: "Home"
    icon: /apple-touch-icon.png
    iconHeight: 35
2020-10-16 23:56:56 +05:30
Aditya Telange
e04e248ae1
terms: hide cover image in taxonomy list,
show others

* taxonomies are meant to be browsed faster
2020-10-10 19:40:37 +05:30
Aditya Telange
46bf0538c9
post-tags(css): highlight tags with a slim border 2020-10-10 19:24:48 +05:30
Aditya Telange
2c7cffb617
home-info: let content show upto 5 lines
* previously 3
2020-10-08 15:50:20 +05:30
Aditya Telange
d0c7635a8b
post-cover: enable mardownify
* allows users to add links and stuff #17
2020-10-05 14:56:06 +05:30
Aditya Telange
6a9e9e129a
theme-switch-button: init feature (#15)
* thanks to https://feathericons.com for svgs
* can be disabled in site config
   Params:
     disableThemeToggle : true
2020-10-04 20:43:24 +05:30
Aditya Telange
35788daad1
post-cover: add support for adding caption (#17)
* shown only on single page

usage =>
in page-vars front-matter

cover:
  image: '<image path/url>'
  alt: '<alt text>'
  caption: '<text>'
2020-10-04 18:47:12 +05:30
Aditya Telange
f4df89dbf6 scroll-bar(css): reduce size for smaller screens
misc
2020-10-03 21:02:10 +05:30
Aditya Telange
d18c5b74be
profile-mode: add support for adding subtitle 2020-10-02 14:35:38 +05:30
Aditya Telange
c055e14be6
profile-mode: social-icons: rm animation 2020-10-02 13:52:03 +05:30
Aditya Telange
8ff1f10eb7
social-icons: use height and with as css props;
rm hardcoded svg height and width
2020-10-02 13:46:22 +05:30
Aditya Telange
48d2dcb164
social-icons(css): refactor
move to main.css
2020-10-02 13:20:20 +05:30
Aditya Telange
cb5d40cd9b
toc: remove blockquote border;
align summary with content
2020-10-01 14:39:26 +05:30
Aditya Telange
76492223b4
toc(css): refactor
* move from main -> post-single
2020-10-01 14:37:57 +05:30
Aditya Telange
0e48338a7d
share-icons: improvements
* rm translatable text
* svg: rm redundant attributes
* css: add x-scroll, - backgroud, + border
* misc
2020-10-01 14:23:15 +05:30
Aditya Telange
82c4230c43
scrollbar: increase thickness 2020-10-01 13:37:31 +05:30
Aditya Telange
dfa8561ce4
reset(css): table: scroll when content length
exceeds page/section width
2020-09-30 18:25:39 +05:30
Aditya Telange
61cbbee16c
css: refactor 2020-09-29 16:43:41 +05:30
Aditya Telange
94070f4cd9
archives: add posts count for each yr and month
* misc(css): rm unused
2020-09-29 16:42:23 +05:30
Aditya Telange
d46c0ed82d
post-single: reduce image border radius
* fix badges extra round corner
2020-09-29 16:41:59 +05:30
Aditya Telange
5cf90ca81e
post-tags(css) : fix spacing
ammend to a6e17280a1
2020-09-26 12:59:26 +05:30
Aditya Telange
a6e17280a1
post-tags(css) : fix spacing 2020-09-23 18:01:33 +05:30
Aditya Telange
5901cac6c4
post-single : display available translations
in post - meta
2020-09-22 13:41:23 +05:30
Aditya Telange
06786d7451
css: merge duplicate selectors 2020-09-21 15:56:29 +05:30
Aditya Telange
873bc34d45
misc: refactor
* accessibility, duplicate code
2020-09-21 15:44:37 +05:30
Aditya Telange
6770e5e552
menu : add menu location indicator
credits for fix with [.IsMenuCurrent](https://gohugo.io/functions/ismenucurrent/): https://stackoverflow.com/a/56454338
2020-09-20 19:03:43 +05:30
Aditya Telange
abea879e68
css: pagination buttons
* does same job with less code
2020-09-20 17:03:08 +05:30
Aditya Telange
81b0b0c809
archives : improvements 2020-09-20 17:00:45 +05:30
Aditya Telange
e91b15284a
css : refactor all margins
* hope this does not break anything xd
2020-09-20 16:33:50 +05:30
Pyvain
6178d4d02a fix code overflow without highlightjs 2020-09-20 11:33:58 +05:30
Aditya Telange
32289fe2e7
toc : use newer toc partial and indent elements
fixes : https://github.com/adityatelange/hugo-PaperMod/issues/2
2020-09-19 17:03:27 +05:30
Aditya Telange
7820730b04
hljs, an-old-hope: update v9.18.3 -> v10.2.0
* credits : https://cdnjs.com/libraries/highlight.js
2020-09-18 18:36:48 +05:30
Aditya Telange
e96e4e51c7
image themefy : inside post not globally 2020-09-17 15:08:56 +05:30
Aditya Telange
8f7a04337f
css : post : imrove <hr> 2020-09-16 15:29:50 +05:30
Aditya Telange
bcba19789a
css: themify image boder radius 2020-09-16 14:53:48 +05:30
Aditya Telange
8c7a9cf1d7
css: post: improve code block inside blockquote
* fix padding on lager screns
2020-09-16 14:14:47 +05:30
Aditya Telange
ac4ed69368
blockquote : move to toc 2020-09-16 12:40:56 +05:30
Aditya Telange
3231d00da4
terms : update 2020-09-15 23:42:58 +05:30
Aditya Telange
2623cd8f8b
css: main : toc : add cursor as zoom
* accessibility
2020-09-15 23:03:49 +05:30
Aditya Telange
94b67a5dc9
css: reset: disbale highlight on focus 2020-09-15 22:36:29 +05:30
Aditya Telange
9ab747c654
fix: cover image in Normal Mode
fixes: https://github.com/adityatelange/hugo-PaperMod/issues/1
2020-09-14 22:39:31 +05:30
Aditya Telange
ab451ef89c
post-cover-image : add support for cover image for post
usage with post params =>
    cover = "<absolute image url>"
2020-09-14 17:45:22 +05:30
Aditya Telange
0411858700
terms: add hover transition 2020-09-06 22:00:35 +05:30
Aditya Telange
91457e9c0e
top-link : rm background on hover 2020-09-06 21:58:31 +05:30
Aditya Telange
4ba361f789
archive : rm transition 2020-09-06 21:51:04 +05:30
Aditya Telange
eeb70f3f89
automatic-theme : remove 2020-09-06 20:16:51 +05:30
Aditya Telange
048aac5fac
profile-mode: improvements 2020-09-06 20:07:57 +05:30
Aditya Telange
44aa37c944
profileMode : fix, improve 2020-08-29 15:14:34 +05:30
Aditya Telange
ba6d5c4620
profileMode : improve buttons,
add theme transition
2020-08-29 10:41:20 +05:30
Aditya Telange
df457f7514
profile-mode : add buttons
ex.
params:
  profileMode:
    buttons:
      - name: Archive
        url: "/archive"
      - name: Github
        url: "https://github.com/"
2020-08-28 18:47:00 +05:30
Aditya Telange
813b590e19
first-entry : reduce bottom margin 2020-08-28 17:16:35 +05:30
Aditya Telange
f40842915e
fix : footer height increase for mobile devices
ref : 467c27d5c2 (diff-bde622a6ece9e3a643d47d4d74cadaa1)
2020-08-28 17:08:39 +05:30
Aditya Telange
dbaa709c97
homeInfo : add socialIcons at bottom
* can be disabled by not having Params.socialIcons as variable
* profileMode overrides homeInfo mode
2020-08-27 20:03:00 +05:30
Aditya Telange
f852d06923
profile-mode : include social icons
usage : in config
 params:
   profileMode:
     socialIcons:
       - name: "<platform>"
         url: : "<link>"
2020-08-24 16:58:47 +05:30
Aditya Telange
f85f1573ee
fix : highlight inside list don't stick right 2020-08-24 11:44:31 +05:30
Aditya Telange
083ffd37b5
update highlightjs and an-old-hope
v9.15.6 -> v9.18.3
2020-08-24 11:08:52 +05:30
Aditya Telange
6be9da45ab
profileMode : init
usaage, in config add
params:
    profileMode:
      title: "PaperMod" // or default will be site.title
      imageUrl: "<image_link>"
2020-08-23 18:19:41 +05:30
Aditya Telange
69b68f964a share-buttons : on hover effect 2020-08-21 21:28:44 +05:30
Aditya Telange
01a575de59
scroll-to-top : onhover show change 2020-08-21 21:17:14 +05:30
Aditya Telange
799b253470
footer (mobile) : hightlight footer links
(with --secondary color)
2020-08-20 22:19:24 +05:30
Aditya Telange
cd39b9d055 reduce content-gap
40 -> 20 px
2020-07-28 14:06:07 +05:30
Aditya Telange
c4839ccfbe body: lower line-height
1.8 -> 1.6
2020-07-28 12:28:44 +05:30
Aditya Telange
b27858ba10 increase main width
640 -> 720 px
2020-07-28 12:27:51 +05:30
Aditya Telange
e0b08519c9 add Share Buttons
use Params.ShowShareButtons = true

    credits : https://www.iconfinder.com/iconsets/social-media-rounded-corners
    License:	Free for commercial use
2020-07-27 14:28:58 +05:30
Aditya Telange
1329075c61 add scroll to top button 2020-07-27 12:04:36 +05:30
Aditya Telange
700c8e07da toc : set border radius to theme var radius 2020-07-26 20:43:40 +05:30
Aditya Telange
63c86e12cd terms: tag color set to primary 2020-07-26 20:40:29 +05:30
Aditya Telange
b287b1cd24 scroll-bar : theme-fy 2020-07-26 18:55:33 +05:30
Aditya Telange
c3d0d6c6df nav : menu horizontal scroll improve 2020-07-26 18:54:53 +05:30
Aditya Telange
df592b3370 fix: increase 1st entry max height to 260px 2020-07-25 16:59:54 +05:30
Aditya Telange
ee1a829c02 post-entry : lower first entry font size 2020-07-25 13:34:23 +05:30
Aditya Telange
467c27d5c2 adjust post size for mobile devices 2020-07-25 13:28:07 +05:30
Aditya Telange
2e9aef08a5 Add Taxonomy Pages
- known as terms
    - ex Tags, Categories
2020-07-25 11:57:18 +05:30
Aditya Telange
db338970a1 archive: title use page-header class 2020-07-25 11:35:55 +05:30
Aditya Telange
16b98dc8f9 toc: look cool
- improve toc styling
    - make collapsable
2020-07-24 23:53:25 +05:30
Aditya Telange
d559ea3d4e style blockquote to look better 2020-07-24 22:03:33 +05:30
Aditya Telange
c06357a604 add Table of Contents
- can be used by
     `ShowToc = true` in Single Post params
2020-07-24 22:03:13 +05:30
Aditya Telange
d005d7d2bb add [draft] mark
- to identify drafts from other posts
2020-07-24 20:46:33 +05:30
Aditya Telange
47bc2ee10d fix unnecessary scroll on devices with lower width
making footer size bigger by 24px
2020-07-23 13:34:53 +05:30
Aditya Telange
0950fb89a8 add archives layout
- can be used by setting
        layout: "archives"
2020-07-23 03:00:51 +05:30
Aditya Telange
118bf1345e assets: assets to proper location 2020-07-21 14:25:56 +05:30
Aditya Telange
15d7a4aabd assets: separate style.css into parts 2020-07-21 14:20:35 +05:30
Aditya Telange
e17e38b3ae refactor; linting 2020-07-20 19:53:30 +05:30
Aditya Telange
e6f516da62 theme: don't include set-theme inline 2020-07-20 19:46:19 +05:30
Aditya Telange
1826351d62 mv assets to /assets from /static 2020-07-20 18:49:00 +05:30