Commit Graph

327 Commits

Author SHA1 Message Date
Aditya Telange
06f09594dd
layouts: add rel="noopener noreferrer"
to outgoing links
2020-09-21 15:53:59 +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
46a092553a
profile-mode buttons: rm unnecesary div 2020-09-20 17:05:19 +05:30
Aditya Telange
81b0b0c809
archives : improvements 2020-09-20 17:00:45 +05:30
Aditya Telange
1e5f020efb
footer : add git.io shortened url 2020-09-20 13:24:38 +05:30
Aditya Telange
082d960e13
Revert "home-info: handle case where home-info was hidden"
This reverts commit ce408f6afc.

* incomplete
2020-09-19 17:29:38 +05:30
Aditya Telange
7204003afd
accessibility : add aria-label to share-icons 2020-09-19 17:19:55 +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
Allan Chain
43d1c68ef4
toc: add toc partial [newer impl]
* gets toc fixed

Signed-off-by: Aditya Telange <21258296+adityatelange@users.noreply.github.com>
2020-09-19 17:02:20 +05:30
Aditya Telange
ce408f6afc
home-info: handle case where home-info was hidden
when num of posts = 0
2020-09-17 16:14:56 +05:30
Aditya Telange
2eef3fcc12
automatic theme based on browser theme
usage: add to config
    params:
        defaultTheme: "auto"
2020-09-17 15:28:03 +05:30
Aditya Telange
3081579764
homeinfo : allow markdown 2020-09-17 15:14:38 +05:30
Aditya Telange
db1ec959aa
fix: for ebb9eb4043
* Browser errors were logged to the console
2020-09-17 14:57:20 +05:30
Aditya Telange
d3517dadbf
head : improve meta 2020-09-17 14:03:57 +05:30
Aditya Telange
c7885d62a2
fix: for ebb9eb , partialCached impl 2020-09-17 12:07:32 +05:30
Aditya Telange
ebb9eb4043
highlightjs : include only on pages with mainSections
* this makes hljs not load on index, taxonomies, archive
pages where code highlighting isn't used
* improving page site load time
2020-09-17 11:56:28 +05:30
Aditya Telange
a8652f57f3
toc: add option to open toc details by default
usage: in page params add (yml)
TocOpen: true
2020-09-16 15:41:28 +05:30
Aditya Telange
f669a90052
go-to-top: add title
* accessibility
2020-09-15 23:11:06 +05:30
Aditya Telange
6813112e25
layouts: single: update post meta 2020-09-15 22:32:34 +05:30
Aditya Telange
9c861cb77f
Special-1st-Post: allow disabling the special highlight of 1st Post
* usage => in site config
    params:
        disableSpecial1stPost : true
2020-09-14 22:50:04 +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
Digitalcraftsman
ab14f2f275
Adapt theme to be compatible with hugoBasicExample
_default/{archives,list}.html utilize .site.Params.mainSections

This flexible option let's users decide what content pages they want to
display in the archive and on the homepage. By default, Hugo adds
content types with the most content files as a good heuristic. Can be
overwritten at any time in the config file.

Signed-off-by: Aditya Telange <21258296+adityatelange@users.noreply.github.com>
2020-09-12 09:57:30 +05:30
Aditya Telange
70525e39d1
accessibility : add aria-label to go-to-top 2020-09-06 22:07:01 +05:30
Aditya Telange
519f23f8e9
accessibility : add aria-label to entry-link 2020-09-06 21:46:58 +05:30
Aditya Telange
26aa913367
head: show title insted of description
on non-home pages
2020-09-06 21:16:55 +05:30
Aditya Telange
11226ff1fe
rm redundant 2020-09-06 21:01:24 +05:30
Aditya Telange
a22aa8aac3
remove custom css support
* user can clone head into <site root>/layouts/partials/head.html
and add custom resources and assets according to wish
2020-09-06 20:27:17 +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
ee84ce6d7f
social-icons : add cryptohack.org icon 2020-08-29 12:58:54 +05:30
Aditya Telange
37450eda01
social-icons : add sourcerer.io icon 2020-08-29 12:55:54 +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
47126e37d5
baseof : use partialCached for header and footer
ref: https://gohugo.io/functions/partialcached/
2020-08-28 17:34:55 +05:30
Aditya Telange
fb4f686771
homeinfo: xp 2020-08-28 17:19:10 +05:30
Aditya Telange
c0b3ea348f
list: add ability to hide summary on list
to hide summary, add to site config
params:
  hideSummary: true
2020-08-28 16:44:50 +05:30
Aditya Telange
7f7d8cfb22
add ability to disbale share on certain pages
add disableShare = true in page params
---
disableShare: true
---
2020-08-28 16:39:06 +05:30
Emma
c74404b64d
social-icons: Add dev.to icon
Signed-off-by: Aditya Telange <21258296+adityatelange@users.noreply.github.com>
2020-08-28 11:30:57 +05:30
Jesse Ward
ad207a99f7
social-icons : Adding audio related social icons.
discogs, lastfm, mixcloud and soundcloud.

Signed-off-by: Aditya Telange <21258296+adityatelange@users.noreply.github.com>
2020-08-28 11:27:41 +05:30
signal-9
6eda54eafc
social-icons : Added Steam SVG for social icons
Signed-off-by: Aditya Telange <21258296+adityatelange@users.noreply.github.com>
2020-08-28 11:23:04 +05:30
Aditya Telange
47ad22b0b1
social-icons : svg fix 2020-08-28 11:22:16 +05:30
Aditya Telange
740a42b414
social-icons : add hackthebox icon 2020-08-28 11:15:37 +05:30
Aditya Telange
d310bd65fc
social-icons : add hackerrank icon 2020-08-28 11:15:01 +05:30
Aditya Telange
fdda492244
social-icons : arrange svgs alphabetically 2020-08-28 11:13:48 +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
faf0ebefa3
social-icons : set icons in Params.socialIcons
* so that it can be accessible to other modes

usage : in config
 params:
  socialIcons:
   - name: "<platform>"
     url: : "<link>"

ref : f852d06923
2020-08-27 20:00:01 +05:30
Aditya Telange
5345b3e6b0
profile-mode: enabled only on .Site.Params.profileMode.enabled: true 2020-08-27 19:55:39 +05:30
Aditya Telange
7f70d98f95
homeInfo : rm extra enabled param 2020-08-27 19:40:05 +05:30
Aditya Telange
f925f2fd40
rm index : merge index and list 2020-08-27 19:37:45 +05:30
Aditya Telange
201d269a1f
indexProfile : partial 2020-08-25 17:17:24 +05:30
Aditya Telange
e35915a561
support Multilingual navigation
add reading time as i18n
2020-08-25 14:04:59 +05:30
Tnze
04f9fabf92
social-icons : add Qq icon
Signed-off-by: Aditya Telange <21258296+adityatelange@users.noreply.github.com>
2020-08-24 17:27:37 +05:30
Adam Gausmann
cca8a6072e
social-icons : Add Twitch icon
Signed-off-by: Aditya Telange <21258296+adityatelange@users.noreply.github.com>
2020-08-24 17:24:41 +05:30
Hervy Qurrotul Ainur
3f9d80a1f8
social-icons: Add new icons for designers
* Add several icons for designers & microstocker: shutterstock, freepik, adobestock, 123rf, dreamstime, dribbble, and behance.
* Update telegram & stackoverflow icon.

Signed-off-by: Aditya Telange <21258296+adityatelange@users.noreply.github.com>
2020-08-24 17:22:02 +05:30
Track3
03afb9f6e4
social-icons: Add stackoverflow icon
Signed-off-by: Aditya Telange <21258296+adityatelange@users.noreply.github.com>
2020-08-24 17:17:26 +05:30
Dmitry Yakimenko
4a95158dd7
social-icons: add telegram
This icon is originally designed by @dmitrytrusov for Hugo Minimo theme.

Signed-off-by: Aditya Telange <21258296+adityatelange@users.noreply.github.com>
2020-08-24 17:13:35 +05:30
Manuel Pineda
6d9a8bad1a
social-icons: add gitlab
Signed-off-by: Aditya Telange <21258296+adityatelange@users.noreply.github.com>
2020-08-24 17:09:35 +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
Track3
6683b85876
social-icons : init
Signed-off-by: Aditya Telange <21258296+adityatelange@users.noreply.github.com>
2020-08-24 16:53:30 +05:30
jtagcat
59f648989a Added shortcode for collapsing texts. 2020-08-23 22:23:37 +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
8af56e302d
share-buttons: fix icons not shown
when no tags were present
2020-08-23 16:35:53 +05:30
Aditya Telange
741fc9d220
layouts/head : fix duplicate title
title - title
2020-08-23 15:58:27 +05:30
Aditya Telange
96d11d0505
move-to-top : scroll to body start 2020-08-21 21:13:13 +05:30
Aditya Telange
e17d61b46c
menu : save menu scroll position in localstorage
(ux improve)
2020-08-21 21:03:05 +05:30
Aditya Telange
274688f238
layouts/single : add option to disable Post-meta
i.e. date, author-info
    can be used for posts which are just info, and not a 'post'

set `hideMeta = true` in Page Variables (https://gohugo.io/variables/page/#page-variables)
2020-08-20 22:28:54 +05:30
Aditya Telange
d75f9c27f6
add google siteverification tag in head
to use this, add below code to config file
    analytics:
        google:
            SiteVerificationTag: "XYZabc"
2020-08-20 22:12:53 +05:30
Aditya Telange
94eada156d draft tag [draft] improve 2020-07-28 12:36:53 +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
84ec2bc75f rm redundant code 2020-07-26 20:12:48 +05:30
Aditya Telange
06c52025dc list, index : draft : show some space before [draft] 2020-07-26 19:19:52 +05:30
Aditya Telange
fff89a4e30 list, index : show post authors 2020-07-26 19:17:04 +05:30
Aditya Telange
ea129c608d list, index : show reading time
if Params.ShowReadingTime = true
2020-07-26 19:15:58 +05:30
Aditya Telange
880ce9bf68 pagination: buttons: new arrow icons 2020-07-26 19:09:38 +05:30
Aditya Telange
7fb8059cea homeInfo: rm ... 2020-07-26 12:02:14 +05:30
Aditya Telange
c76ab82a3c baseof: archive to use body class list 2020-07-25 13:15:32 +05:30
Aditya Telange
5e129bde1d assets : use preload and defer 2020-07-25 12:30:52 +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
57a8706d37 Revert "list: rm title"
This reverts commit d7d5a15da7.
2020-07-25 10:27:20 +05:30
Joseph Silber
163fa2d3f1 Add Smooth Scrolling
Thanks to Joseph Silber https://stackoverflow.com/a/7717572
2020-07-24 23:55:44 +05:30
Aditya Telange
16b98dc8f9 toc: look cool
- improve toc styling
    - make collapsable
2020-07-24 23:53:25 +05:30
parsiya
984d1a576c add blockquote as shortcode 2020-07-24 22:05:16 +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
bfcf89ccca add shortcode to Insert Raw HTML
{{< rawhtml >}}
  <p class="someclass">
    This is <strong>raw HTML</strong>, inside Markdown.
  </p>
{{< /rawhtml >}}

credits : https://anaulin.org/blog/hugo-raw-html-shortcode/
2020-07-24 21:24:18 +05:30
Aditya Telange
d005d7d2bb add [draft] mark
- to identify drafts from other posts
2020-07-24 20:46:33 +05:30
Aditya Telange
523098f87e fix: make homeInfo available only on home
and not all pages
2020-07-24 15:19:59 +05:30
Aditya Telange
8356e48e47 Add option to use 1st entry as some Information
Currenty supports 2 vals Title and Content
Great for short intro for bloggers

can be enabled by using `Params.homeInfoParams`
    homeInfoParams:
      enabled: true
      Title: Hi there 👋
      Content: This is Content !! Can be Info, links, social-icons...
2020-07-23 16:24:44 +05:30
Aditya Telange
2955f2a19d add config for default theme
- ex.  defaultTheme: dark
2020-07-23 04:29:53 +05:30
Aditya Telange
f09f18212e add index page for all posts 2020-07-23 04:13:33 +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
cf6aa709cd update 404 to match baseof 2020-07-22 17:29:51 +05:30
Aditya Telange
28aa04ddb6 baseof: separate into header, footer 2020-07-21 15:36:30 +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
a072067575 footer: theme name update 2020-07-21 13:52:10 +05:30
Aditya Telange
41006c33e1 assets: add fingerprint, integrity 2020-07-20 20:53:08 +05:30
Aditya Telange
338027b046 SetThemeAuto: disable auto theme set by default
- user needs to add
        + params:
             SetThemeAuto: true
2020-07-20 20:43:23 +05:30
Aditya Telange
8a0783adfb new layout
- create baseof
    - separate list, single
    - header, footer
2020-07-20 20:32:07 +05:30
Aditya Telange
2e0ef75edf separate head 2020-07-20 20:13:51 +05:30
Aditya Telange
e933bf39b7 comments: rm comments
- user needs to enable comments in hugo config
        + params:
            comments: true
    - disabled by default
2020-07-20 20:11:58 +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
d7d5a15da7 list: rm title 2020-07-20 19:36:48 +05:30
Aditya Telange
9e88deff8f add js from assets
- highlight
2020-07-20 19:35:06 +05:30
Aditya Telange
2884ee2055 add styles from assets
- bundle an-old-hope and style
    - minify
2020-07-20 19:17:39 +05:30
Paramtamtam
91dabb761f
Update header.html 2020-05-25 10:42:32 +05:00
Ryan Harter
98a6d49c5e
Merge pull request #1 from nanxiaobei/master
rebase
2020-05-22 17:12:46 -05:00
nanxiaobei
bcfd902a30 simplify code 2020-03-10 01:50:02 +08:00
nanxiaobei
ae2b0c9d96 update html format 2020-03-09 23:56:47 +08:00
nanxiaobei
47ee6db428 fix tag page 2020-03-09 23:56:13 +08:00
Ryan Harter
c021eace22 Adds support for custom css. 2020-03-04 22:30:42 -06:00
nanxiaobei
2b9088cff6 update pages source 2020-01-16 03:24:22 +08:00
南小北
35cf31b81f
Update month value 2019-10-20 18:20:15 +08:00
nanxiaobei
c163b43b9a Fix Dark Mode logic 2019-10-17 03:02:35 +08:00
nanxiaobei
6725cb9806 Refine Dark Mode code 2019-10-16 11:27:49 +08:00
nanxiaobei
a1b778c68a Add Dark Mode core code 2019-10-16 04:15:16 +08:00
nanxiaobei
ea1796cf97 Update Dark Mode logic 2019-10-16 04:15:04 +08:00
nanxiaobei
ba297661ff Add dark mode 2019-10-15 01:31:07 +08:00
nanxiaobei
072d2a8c22 Add SunriseSunsetJS 2019-10-15 01:30:20 +08:00
nanxiaobei
ee1f7e5aee Add list dynamic background 2019-09-15 06:55:10 +08:00
nanxiaobei
dedfb5a865 Update template order 2019-09-07 20:31:12 +08:00
Pedro Gomes
6143cd2035
Include open graph template in header 2019-09-04 20:28:40 +07:00
nanxiaobei
c1a940e084 Fix context 2019-08-21 12:07:27 +08:00
nanxiaobei
6a21a64488 Refine code 2019-08-21 12:03:12 +08:00
nanxiaobei
5f823ccb70 Refine html 2019-08-21 07:24:39 +08:00
nanxiaobei
2f3e41736d Remove InstantClick 2019-08-20 04:13:23 +08:00
nanxiaobei
68a57bbb47 Update layouts 2019-08-20 04:12:49 +08:00
nanxiaobei
d49599a028 Fix js 2019-06-13 21:00:32 +08:00
nanxiaobei
f91e48e026 Refine head 2019-06-11 03:29:55 +08:00
nanxiaobei
e0be4092bd Update class 2019-06-11 03:18:37 +08:00
nanxiaobei
c29212ea9b Update link 2019-06-11 01:18:00 +08:00
ThomasZN
58a225155d
Update footer.html 2019-06-10 21:00:37 +08:00
ThomasZN
3af9454dd4
link to site in footer 2019-06-10 19:57:40 +08:00
nanxiaobei
8539fd9440 Fix menu 2019-06-10 07:25:41 +08:00
nanxiaobei
1bc35a3e33 Fix links 2019-06-10 06:59:08 +08:00
nanxiaobei
1304e354dd Merge remote-tracking branch 'origin/master' 2019-06-10 06:53:02 +08:00
nanxiaobei
daef16b004 Change .Site.BaseURL to absURL, refine js code 2019-06-10 06:44:46 +08:00
nanxiaobei
67767c62c2 Change .Site.BaseURL to absURL 2019-06-10 06:44:15 +08:00
Dan Jordan
bd3ef6a953
Hide the menu toggle if the menu is empty 2019-05-30 22:48:33 +01:00
Philip Khor
8496f3622e
Use global hugo function
When building the site, I get the following warning: 
> Page's .Hugo is deprecated and will be removed in a future release. Use the global hugo function.

Replacing .Hugo with hugo in header.html removes the warning.
2019-05-04 22:39:34 +08:00
Nazım Can Altınova
cb6cdb37ef Add a way to change the date format with 'dateFormat' site param 2019-04-28 15:56:39 +02:00
nanxiaobei
57548d027d Update brand 2019-04-28 18:24:02 +08:00
nanxiaobei
7ce5ae53af Update tag page 2019-04-28 18:23:51 +08:00
nanxiaobei
ed76efe036 Release 3.3 2019-04-26 05:29:37 +08:00
nanxiaobei
cce2ae5868 Release 3.2 2019-04-22 02:50:43 +08:00
nanxiaobei
f16505e5e8 Release 3.0 2019-04-02 11:21:52 +08:00
nanxiaobei
51c061cb4c Update author 2019-04-01 16:16:48 +08:00
nanxiaobei
2ab2e30c27 Update js 2019-04-01 16:00:59 +08:00
nanxiaobei
e3053cee4f Update html 2019-04-01 16:00:48 +08:00
nanxiaobei
8088299ecb Update for 3.0 2019-03-31 20:32:06 +08:00
Kazuki Suda
0fc1a6b5f6 Make theme customizable 2019-03-24 02:05:09 +00:00
南小北
9db7d78fbd
Merge branch 'master' into master 2018-10-31 22:26:44 +08:00
南小北
27edd6d94e
Merge pull request #15 from ham1/noopener
Added noopener to target=_blank links
2018-10-31 22:19:15 +08:00
南小北
c53437936b
Merge pull request #11 from izdwuut/highlight
Add highlighting of code snippets with numbered lines enabled.
2018-10-31 22:19:02 +08:00
Daniel
35582be92b removed laggy cdn hosts 2018-10-31 16:42:53 +11:00
Graham Russell
e6a3019fed added noopener to target=_blank links 2018-09-28 20:15:19 +08:00
南小北
3f18d384bd
Merge pull request #14 from ham1/remove_meta_renderer
Remove meta renderer tag from header
2018-09-28 19:14:32 +08:00
Graham Russell
280f518fbe removed meta renderer tag from header 2018-09-28 17:39:29 +08:00
Graham Russell
d31ad9c68f Use .Hugo.Generator instead of adding meta tag manually 2018-09-28 17:34:08 +08:00
Bartosz izdwuut Konikiewicz
52e734fb3c Add highlighting of code snippets with numbered lines enabled. 2018-09-27 13:02:44 +02:00
南小北
3730b32107
Merge pull request #10 from movch/feat/i18n
🏗️ Add i18n
2018-09-02 14:59:43 +08:00
南小北
1750b5b354
Merge pull request #9 from cemeng/master
🏗️ Add Google analytics support
2018-09-02 14:59:24 +08:00
Michael Ovchinnikov
b43e0d727e add i18n 2018-08-31 15:30:42 +03:00
nanxiaobei
2af70a215f 💄 Update styles 2018-08-16 01:22:33 +08:00
Felix Tjandrawibawa
4976196c96 Add Google analytics support 2018-08-06 22:14:55 +10:00
nanxiaobei
599fbd4e22 🔒 Fix link 2018-07-06 11:14:28 +08:00
nanxiaobei
d22829882a 🍻 Add .Site.BaseURL 2018-07-06 04:17:31 +08:00
nanxiaobei
cb2786f9b2 🔖 Upgrade to 1.2 2018-07-06 02:45:58 +08:00
Lee
b3a675168d 🎨 add disqus support 2018-05-05 01:57:25 +08:00
Lee
2e09b987e0 💬 change words to english 2018-05-05 01:14:56 +08:00
nanxiaobei
cfbdd0250f update 2018-03-13 14:31:10 +08:00
nanxiaobei
01aa49cb24 update 2018-03-13 13:46:37 +08:00
nanxiaobei
0b63124530 update theme 2018-03-13 11:58:42 +08:00
Lee
6315d0ab8f Initial commit 2018-01-09 00:28:39 +08:00