341 Commits
Author SHA1 Message Date
Aditya Telange ea94a8bd77 Readme: link social-icon list wiki 2020-09-13 21:19:29 +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 75d5acc15d update readme with img kbd 2020-09-06 22:23:25 +05:30
Aditya Telange ebc87902f5 README : add lighthouse report from web.dev 2020-09-06 22:12:13 +05:30
Aditya Telange 70525e39d1 accessibility : add aria-label to go-to-top 2020-09-06 22:07:01 +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 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 98bd396c4b Revert "add default archetypes"
This reverts commit b5ab1d495d.
2020-09-06 20:14:27 +05:30
Aditya Telange 67e8956f4f update README 2020-09-06 20:11:30 +05:30
Aditya Telange c081f88c1b Revert "add images"
This reverts commit 06da6e4f6f.
2020-09-06 20:10:19 +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 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 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 : https://github.com/adityatelange/hugo-PaperMod/commit/467c27d5c213d8edfccfd3b3f4cf63f43fb18481#diff-bde622a6ece9e3a643d47d4d74cadaa1
2020-08-28 17:08:39 +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
Aditya Telange f392195b18 add media
ref: https://github.com/gohugoio/hugoThemes/blob/master/README.md#media
2020-08-28 12:36:13 +05:30
Aditya Telange 6f4b341a0c update Readme 2020-08-28 11:49:17 +05:30
Aditya Telange 06da6e4f6f add images 2020-08-28 11:48:55 +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
Aditya Telange 5e85c28c43 theme.toml : author gh link 2020-08-24 15:06:17 +05:30
Aditya Telange 1b88a1a85e theme.toml: add og author 2020-08-24 15:05:56 +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 80ce7820e4 Add i18n support for Hindi 2020-08-23 22:27:29 +05:30
jtagcat 59f648989a Added shortcode for collapsing texts. 2020-08-23 22:23:37 +05:30
Chris Aumann 02c6c685b5 Add i18n support for Spanish 2020-08-23 22:21:03 +05:30
Chris Aumann 428e67d561 Add i18n support for German 2020-08-23 22:20:52 +05:30
Aditya Telange b5d5f1751f Merge branch 'master' of github.com:adityatelange/hugo-PaperMod into master 2020-08-23 22:10:29 +05:30
Aditya Telange 2c891ff3ef Update theme.toml 2020-08-23 22:10:08 +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 3bda73bdc2 Update README.md 2020-08-23 13:15:57 +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 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 799b253470 footer (mobile) : hightlight footer links
(with --secondary color)
2020-08-20 22:19:24 +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 cd39b9d055 reduce content-gap
40 -> 20 px
2020-07-28 14:06:07 +05:30
Aditya Telange 94eada156d draft tag [draft] improve 2020-07-28 12:36:53 +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 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 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 7fb8059cea homeInfo: rm ... 2020-07-26 12:02:14 +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 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 e85488ba1b workflow : gh-pages : buildDrafts 2020-07-25 12:07:01 +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
Aditya Telange 11bab61386 Merge branch 'master' of github.com:adityatelange/hugo-PaperMod 2020-07-24 23:57:21 +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
Aditya Telange a938486be7 README : add some badges 2020-07-24 23:27:22 +05:30
parsiya 984d1a576c add blockquote as shortcode 2020-07-24 22:05:16 +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 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 fe986eb333 Merge branch 'master' of github.com:adityatelange/hugo-PaperMod 2020-07-23 13:53:44 +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 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 08758ead0a Update gh-pages.yml 2020-07-23 03:25:32 +05:30
Aditya Telange 1a43ef4042 Update gh-pages.yml 2020-07-23 03:18:45 +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 e230bd3b44 Update Readme, rm pre-images 2020-07-22 12:40:44 +05:30
Aditya Telange b67cd19392 Create gh-pages.yml 2020-07-21 23:38:28 +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 342837b241 add new favicons 2020-07-21 13:46:43 +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
Aditya Telange b5ab1d495d add default archetypes
- https://gohugo.io/content-management/archetypes/
2020-07-20 19:15:52 +05:30
Aditya Telange b1cb4fceb6 update theme details 2020-07-20 19:00:43 +05:30
Aditya Telange 1826351d62 mv assets to /assets from /static 2020-07-20 18:49:00 +05:30
Aditya Telange 265a32d597 update LICENSE 2020-07-20 18:46:08 +05:30
nanxiaobei 4330c8b12a update images 2020-06-12 05:38:01 +08:00
nanxiaobei 299bbcbfbb update date 2020-06-12 05:30:48 +08:00
nanxiaobei 8ac1b02968 update images 2020-06-12 05:30:40 +08:00
nanxiaobei 6ef3e7cbfe Merge branch 'master' of https://github.com/nanxiaobei/hugo-paper 2020-06-12 05:23:49 +08:00
nanxiaobei 8ef7ae81ba release 4.9 2020-06-12 05:23:34 +08:00
nanxiaobei fdb6818dd7 update colors 2020-06-12 05:23:27 +08:00
南小北 09321ade2f Merge pull request #56 from tarampampam/patch-1
Fix RSS links
2020-05-25 22:39:50 +08:00
Paramtamtam 91dabb761f Update header.html 2020-05-25 10:42:32 +05:00
nanxiaobei 85ff837f97 Merge branch 'master' of https://github.com/nanxiaobei/hugo-paper 2020-05-25 00:38:55 +08:00
nanxiaobei e9f41773aa update to 4.8 2020-05-25 00:38:42 +08:00
nanxiaobei 8f21d3784c update dark mode 2020-05-25 00:38:25 +08:00
南小北 cb7d170bf3 Merge pull request #55 from rharter/master
add support for custom styles and overrides.
2020-05-23 15:08:01 +08:00
Ryan Harter 98a6d49c5e Merge pull request #1 from nanxiaobei/master
rebase
2020-05-22 17:12:46 -05:00
nanxiaobei c5dc587885 update version 2020-05-15 04:33:49 +08:00
nanxiaobei 3bfad6b23a update dark mode ui 2020-05-15 04:33:25 +08:00
nanxiaobei 0e27bc5dd0 add dark mode explain 2020-05-15 04:12:13 +08:00
nanxiaobei bcfd902a30 simplify code 2020-03-10 01:50:02 +08:00
nanxiaobei 33ba819d7e 4.6 2020-03-09 23:58:09 +08:00
nanxiaobei 59c4e05873 add tag page styles 2020-03-09 23:57:05 +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 5806c26722 4.5 2020-01-16 03:26:38 +08:00
nanxiaobei 1027674ab6 update license 2020-01-16 03:25:06 +08: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
南小北 232eb864fa Merge pull request #48 from hamadata/feature/i18n-ja
support Japanese
2019-10-19 01:20:48 +08:00
Takayuki Hamada 24678135f9 support japanese 2019-10-19 02:15:01 +09:00
nanxiaobei c265353aec Update screen shot images 2019-10-17 03:08:50 +08:00
nanxiaobei de97f07a14 Update light background 2019-10-17 03:02:52 +08:00
nanxiaobei c163b43b9a Fix Dark Mode logic 2019-10-17 03:02:35 +08:00
南小北 16d7fd6b21 Merge pull request #47 from veracus/fix/install-theme-404
Fix broken link to installation docs
2019-10-17 00:15:57 +08:00
Jackson Sadowski 23109132ac Fix broken link to installation docs 2019-10-16 16:09:49 +00:00
nanxiaobei 6725cb9806 Refine Dark Mode code 2019-10-16 11:27:49 +08:00
nanxiaobei dce88cdd44 Update Dark Mode brand 2019-10-16 04:17:14 +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 27133ef863 Release 4.4 with dark mode 2019-10-15 01:42:51 +08:00
nanxiaobei 2dc0da70f5 Add dark mode screen shot 2019-10-15 01:42:36 +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 bd986fc977 Update screen shot 2019-09-15 07:02:44 +08:00
nanxiaobei d8f54d25ef Release 4.3 2019-09-15 06:55:49 +08:00
nanxiaobei e2dcb8903d Update CSS, run prettier 2019-09-15 06:55:37 +08:00
nanxiaobei ee1f7e5aee Add list dynamic background 2019-09-15 06:55:10 +08:00
nanxiaobei 1b6c1399bb Refine README 2019-09-13 21:55:00 +08:00
nanxiaobei 66c7b00718 Fix code block style inside "<ul>" 2019-09-13 21:54:47 +08:00
nanxiaobei f6b107c399 Update min_version to "0.57.1" 2019-09-07 20:31:43 +08:00
nanxiaobei dedfb5a865 Update template order 2019-09-07 20:31:12 +08:00
南小北 c4a6ccb134 Merge pull request #42 from Lusitaniae/patch-1
Include open graph template in header
2019-09-05 02:21:49 +08:00
Pedro Gomes 6143cd2035 Include open graph template in header 2019-09-04 20:28:40 +07:00
nanxiaobei db1c823190 Update docs 2019-08-23 03:55:11 +08:00
nanxiaobei 0c850fc989 Update background 2019-08-23 03:53:29 +08:00
nanxiaobei 08e6f1daef Refine and fix CSS 2019-08-23 03:50:12 +08:00
nanxiaobei be85b778d1 Release 4.2 2019-08-21 16:17:00 +08: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 3b03643a20 Release 4.2 2019-08-21 10:59:34 +08:00
nanxiaobei 5a970f1047 Update screen shot 2019-08-21 08:43:39 +08:00
nanxiaobei 5f823ccb70 Refine html 2019-08-21 07:24:39 +08:00
nanxiaobei d4ed10e4fa Release 4.1 2019-08-20 05:12:16 +08:00
nanxiaobei 08cc05fc79 Update screen shot 2019-08-20 05:12:08 +08:00
nanxiaobei 0ecbafe6d9 Update code style 2019-08-20 04:14:08 +08:00
nanxiaobei f1667b6c32 Update files path 2019-08-20 04:13:57 +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 165ad9b6fa Run Prettier 2019-08-20 04:12:30 +08:00
nanxiaobei d49599a028 Fix js 2019-06-13 21:00:32 +08:00
nanxiaobei a43a34fe01 Refine style 2019-06-13 20:58:53 +08:00
nanxiaobei 11a7ff56ca Update README 2019-06-11 04:02:58 +08:00
nanxiaobei 4727c25d3c Update images 2019-06-11 03:56:00 +08:00
nanxiaobei 6d586ae220 Brand new design 2019-06-11 03:55:54 +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
南小北 7268157235 Merge pull request #34 from ThomasZN/master
link to site in footer
2019-06-11 00:56:53 +08:00
南小北 1f43b90620 Merge pull request #33 from ThomasZN/patch-1
Update style.css
2019-06-11 00:53:25 +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
ThomasZN f86b2478ed Update style.css 2019-06-10 15:50:54 +08:00
nanxiaobei 89ba40827b Update images 2019-06-10 07:38:08 +08:00
nanxiaobei 45fc24f2a2 Refine UI 2019-06-10 07:25:48 +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 8fb3d31504 Release 4.0 2019-06-10 06:52:14 +08:00
nanxiaobei f911cc63fd Upgrade UI 2019-06-10 06:52:05 +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
南小北 ec2b365773 Merge pull request #31 from danjordan/patch-1
Hide the menu toggle if the menu is empty
2019-05-31 11:40:14 +08:00
Dan Jordan bd3ef6a953 Hide the menu toggle if the menu is empty 2019-05-30 22:48:33 +01:00
南小北 f385c2d6ce Merge pull request #28 from canaltinova/firefox-menu
Remove the marker of menu <ul> element to fix the style in Firefox
2019-05-08 03:00:04 +08:00
南小北 f25656ea2d Merge pull request #27 from philip-khor/patch-1
Use global hugo function
2019-05-08 02:58:53 +08:00
Nazım Can Altınova 6cd8e13423 Remove the marker of menu <ul> element
This is a problem in Firefox because Firefox displays markers(bullet
points) of `<li>` element just before the inline contents of the
elements. But Chrome displays them before the element, not depending on
the content of the `<li>` element. So it wasn't visible on Chrome but
it's in Firefox. This CSS change will remove that in Firefox too.
2019-05-04 19:56:25 +02: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
nanxiaobei d9093afb2d Update README 2019-04-29 01:20:31 +08:00
南小北 b31a786dd0 Merge pull request #26 from canaltinova/date-param
Add a way to change the date format with 'dateFormat' site param
2019-04-28 23:22: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 4b46c8cd72 Release 3.4 2019-04-28 18:37:03 +08:00
nanxiaobei 0c9b43bd4f Refine UI 2019-04-28 18:25:41 +08: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 447f47da24 Update menu background 2019-04-26 05:29:28 +08:00
nanxiaobei ddbf36ba52 Update screen shot 2019-04-26 05:29:07 +08:00
nanxiaobei cce2ae5868 Release 3.2 2019-04-22 02:50:43 +08:00
nanxiaobei c6a81f47c4 Release 3.2 2019-04-22 02:22:15 +08:00
nanxiaobei 9866957aa9 Release 3.1 2019-04-05 03:04:03 +08:00
nanxiaobei f7fd87820c Add code highlight patch 2019-04-05 03:03:54 +08:00
nanxiaobei 0a22cc570e Release 3.0 2019-04-02 11:24:23 +08:00
nanxiaobei 65dca8e966 Release 3.0 2019-04-02 11:22:12 +08:00
nanxiaobei f16505e5e8 Release 3.0 2019-04-02 11:21:52 +08:00
nanxiaobei ae3550531f Update logo 2019-04-01 19:11:52 +08:00
nanxiaobei 3e7e967d55 Update logo 2019-04-01 18:19:03 +08:00
nanxiaobei e36b58c6df Update README 2019-04-01 17:57:38 +08:00
nanxiaobei aca4821ed3 Add logo 2019-04-01 17:57:30 +08:00
nanxiaobei a5f7c63b83 Update screen shot 2019-04-01 17:55:48 +08:00
nanxiaobei dd43cd3cbd Update license 2019-04-01 17:38:46 +08:00
nanxiaobei d096c0951a Update images 2019-04-01 17:37:14 +08:00
nanxiaobei 9a9f40e645 Update logo 2019-04-01 17:01:00 +08:00
nanxiaobei 3b021a4747 Update UI for 3.0 2019-04-01 16:26:40 +08:00
nanxiaobei 51c061cb4c Update author 2019-04-01 16:16:48 +08:00
nanxiaobei c65933cf43 Remove archetypes 2019-04-01 16:03:29 +08:00
nanxiaobei a4e88381ff Update UI for 3.0 2019-04-01 16:01:16 +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 22ec09e42c Add zh i18n 2019-04-01 16:00:28 +08:00
nanxiaobei 53ab416683 Update i18n 2019-04-01 16:00:16 +08:00
nanxiaobei 8088299ecb Update for 3.0 2019-03-31 20:32:06 +08:00
南小北 55dc991f4c Merge pull request #22 from superbrothers/customizable
Make theme customizable
2019-03-24 12:46:36 +08:00
Kazuki Suda 0fc1a6b5f6 Make theme customizable 2019-03-24 02:05:09 +00:00
南小北 87f0fc5b22 Merge pull request #20 from dolsup/patch-1
[i18n] add Korean translation
2019-01-09 17:38:55 +08:00
Jiwon Choi c194d1478a Rename ko.md to ko.yaml 2019-01-06 16:56:32 +09:00
Jiwon Choi 3efcde322b Create ko.md 2019-01-06 16:54:40 +09:00
南小北 cca0bfeb0e Merge pull request #18 from dnlwgnr89/master
Removed laggy CDN hosts
2018-10-31 22:26:59 +08: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
南小北 6c9652a4d4 Merge pull request #13 from ham1/use_hugo_generator
Use .Hugo.Generator instead of adding meta tag manually
2018-09-28 17:35:16 +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 0a1cd00874 Make line highlight set by hl_lines parameter span the whole line. 2018-09-28 11:00:33 +02:00
Bartosz izdwuut Konikiewicz 9a8da61cf2 Style unflavored code fences. 2018-09-28 10:26:15 +02:00
Bartosz izdwuut Konikiewicz d4f2850663 Disable word wrap in code blocks. 2018-09-27 13:27:18 +02: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
南小北 c78342e7cc 📝 Update docs 2018-08-16 11:07:43 +08:00
南小北 4a99256b3b 📝 Change emoji position 2018-08-16 11:07:09 +08:00
南小北 e1e7b7f8e4 📝 Add emoji 2018-08-16 11:06:35 +08:00
nanxiaobei 7206bff554 📄 Update 2018-08-16 11:05:36 +08:00
nanxiaobei 09cc4846d1 🐳 Update screen shot 2018-08-16 11:03:50 +08:00
nanxiaobei 5fea24998c 📄 Update 2018-08-16 11:00:47 +08:00
nanxiaobei fc10d38801 💄 Refine styles 2018-08-16 10:59:04 +08:00
nanxiaobei 1404578d87 📝 Update README 2018-08-16 02:32:18 +08:00
nanxiaobei 25afc10330 🎨 Update to v2.0 2018-08-16 02:30:43 +08:00
nanxiaobei 3ed2c2bede 🔖 Update to v2.0 2018-08-16 01:27:30 +08:00
nanxiaobei 0395af8e7d 💄 Update to v2.0 2018-08-16 01:24:51 +08:00
nanxiaobei 10b4f36a96 Merge remote-tracking branch 'origin/master' 2018-08-16 01:23:18 +08: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
南小北 69da3cc3e9 📝 Update README 2018-07-06 11:26:32 +08:00
南小北 73795c1e0b 📝 Update README 2018-07-06 11:25:22 +08:00
南小北 b367da4b1f 📝 Update README 2018-07-06 11:23:23 +08:00
南小北 e718070e4a 📝 Update README 2018-07-06 11:20:21 +08:00
nanxiaobei 884e39a97d Merge remote-tracking branch 'origin/master' 2018-07-06 11:14:45 +08:00
nanxiaobei 599fbd4e22 🔒 Fix link 2018-07-06 11:14:28 +08:00
南小北 d90fa24655 📝 Update README 2018-07-06 11:03:24 +08:00
南小北 d47a169db3 📝 Update README 2018-07-06 11:02:49 +08:00
南小北 9a96cad920 📝 Update description 2018-07-06 10:59:51 +08:00
nanxiaobei a491f23e8d 💄 Update images 2018-07-06 04:34:44 +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 eb04ce0e1a 📝 Update README 2018-05-05 02:35:13 +08:00
Lee 43138534de 📝 Update README 2018-05-05 02:30:40 +08:00
Lee 632be7bcac 💄 UI update 2018-05-05 02:07:41 +08:00
Lee b3a675168d 🎨 add disqus support 2018-05-05 01:57:25 +08:00
Lee 16d8488811 📝 update README.md 2018-05-05 01:44:30 +08:00
Lee 3c5cb2e61f 🚚 update README.md 2018-05-05 01:41:09 +08:00
Lee 8e61a94ff3 🚚 update README.md 2018-05-05 01:38:36 +08:00
Lee a3adbd8840 🚚 update screenshot.png 2018-05-05 01:35:51 +08:00
Lee 2e09b987e0 💬 change words to english 2018-05-05 01:14:56 +08:00
nanxiaobei 20494e19ad update 2018-03-13 15:18:51 +08:00
nanxiaobei b6773e5a2f update 2018-03-13 14:48:15 +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
南小北 0bd0814bc3 Update README.md 2018-03-13 00:15:25 +08:00
南小北 f0546452e1 Update README.md 2018-03-13 00:15:10 +08:00
南小北 0957bce950 Update README.md 2018-03-13 00:14:43 +08:00
Lee 6ce5f6bf90 css update 2018-03-12 23:47:01 +08:00
南小北 f0057d3e8a Update theme.toml 2018-01-13 02:20:34 +08:00
Lee e8069cec6e fix 2018-01-12 00:46:09 +08:00
Lee 7df0b8a58d Initial commit 2018-01-09 00:48:42 +08:00
Lee e0ed4c0cd4 Initial commit 2018-01-09 00:45:19 +08:00
南小北 ae692011f7 Initial commit 2018-01-09 00:33:40 +08:00
Lee 6315d0ab8f Initial commit 2018-01-09 00:28:39 +08:00
南小北 ae9627cb6f Initial commit 2018-01-09 00:26:31 +08:00
88 changed files with 1806 additions and 2895 deletions

No files matched your search

+19 -68
View File
@@ -1,82 +1,33 @@
name: Deploy Hugo PaperMod Demo to Pages
name: Build GH-Pages
on:
push:
paths-ignore:
- "images/**"
- "LICENSE"
- "README.md"
branches:
- master
- exampleSite
workflow_dispatch:
# manual run
inputs:
hugoVersion:
description: "Hugo Version"
required: false
default: "latest"
# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
# Default to bash
defaults:
run:
shell: bash
jobs:
# Build job
build:
permissions:
contents: read
deploy:
runs-on: ubuntu-latest
env:
HUGO_VERSION: ${{ github.event.inputs.hugoVersion || 'latest' }}
steps:
- name: Resolve Hugo version
run: |
if [ "${HUGO_VERSION}" = "latest" ]; then
HUGO_VERSION=$(curl -s https://api.github.com/repos/gohugoio/hugo/releases/latest | grep '"tag_name"' | sed 's/.*"v\([^"]*\)".*/\1/')
echo "HUGO_VERSION=${HUGO_VERSION}" >> $GITHUB_ENV
fi
- name: Install Hugo CLI
run: |
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_linux-amd64.deb \
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
- name: Checkout
uses: actions/checkout@v6
- name: Git checkout
uses: actions/checkout@v2
with:
ref: exampleSite
- name: Setup Pages
id: pages
uses: actions/configure-pages@v6
- name: Get Theme
run: git submodule update --init --recursive
- name: Update theme to Latest commit
run: git submodule update --remote --merge
- name: Build with Hugo
run: |
hugo \
--buildDrafts --gc \
--baseURL ${{ steps.pages.outputs.base_url }}
- name: Upload artifact
uses: actions/upload-pages-artifact@v5
- name: Setup hugo
uses: peaceiris/actions-hugo@v2
with:
path: ./public
# Deployment job
deploy:
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v5
hugo-version: 'latest'
- name: Build
run: hugo --buildDrafts --gc --verbose --minify
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.TOKEN }}
publish_dir: ./public
-28
View File
@@ -1,28 +0,0 @@
# Compiled Object files, Static and Dynamic libs (Shared Objects)
*.o
*.a
*.so
# Folders
_obj
_test
# Architecture specific extensions/prefixes
*.[568vq]
[568vq].out
*.cgo1.go
*.cgo2.c
_cgo_defun.c
_cgo_gotypes.go
_cgo_export.*
_testmain.go
*.exe
*.test
/public
.DS_Store
.hugo_build.lock
resources/_gen/
-3
View File
@@ -1,3 +0,0 @@
[submodule "themes/hugo-PaperMod"]
path = themes/hugo-PaperMod
url = https://github.com/adityatelange/hugo-PaperMod.git
+3 -3
View File
@@ -1,6 +1,6 @@
The MIT License (MIT)
MIT License
Copyright (c) 2014 Steve Francia
Copyright (c) 2020 nanxiaobei, adityatelange
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
SOFTWARE.
Regular → Executable
+33 -50
View File
@@ -1,57 +1,40 @@
# hugo-paperMod Example
![Build GH-Pages](https://github.com/adityatelange/hugo-PaperMod/workflows/Build%20GH-Pages/badge.svg)
![GitHub](https://img.shields.io/github/license/adityatelange/hugo-PaperMod)
This repository offers an example site for [hugo-PaperMod](https://github.com/adityatelange/hugo-PaperMod)
# hugo-PaperMod
A simple, clean, flexible and responsive Hugo theme.
☄️ Fast | ☁️ Fluent | 🌙 Smooth | 📱 Responsive
---
<kbd><img src="https://i.ibb.co/GvspqCX/HomeInfo.png" alt="HomeInfo" /></kbd>
---
## Overview
Demo Site : https://adityatelange.github.io/hugo-PaperMod/
---
## Install
Read Wiki => [hugo-PaperMod - Installation](https://github.com/adityatelange/hugo-PaperMod/wiki/Installation)
## Directory Tree
---
```
.(site root)
├── configTaxo.yml
├── hugo.yaml
├── content
│ ├── archives.fr.md
│ ├── archives.md
│ ├── posts
│ │ ├── emoji-support.md
│ │ ├── markdown-syntax.fa.md
│ │ ├── markdown-syntax.fr.md
│ │ ├── markdown-syntax.md
│ │ ├── math-typesetting.md
│ │ ├── papermod
│ │ │ ├── _index.md
│ │ │ ├── papermod-faq.md
│ │ │ ├── papermod-features
│ │ │ │ ├── images
│ │ │ │ │ ├── homeinfo.jpg
│ │ │ │ │ ├── profile.jpg
│ │ │ │ │ └── regular.jpg
│ │ │ │ └── index.md
│ │ │ ├── papermod-icons.md
│ │ │ ├── papermod-installation.md
│ │ │ └── papermod-variables.md
│ │ ├── placeholder-text.md
│ │ └── rich-content.md
│ ├── search.fr.md
│ ├── search.md
│ └── tags
├── LICENSE
├── README.md
├── resources
│ └── _gen
│ ├── assets
│ └── images
├── static
│ ├── android-chrome-192x192.png
│ ├── android-chrome-512x512.png
│ ├── apple-touch-icon.png
│ ├── favicon-16x16.png
│ ├── favicon-32x32.png
│ ├── favicon.ico
│ └── papermod-cover.png
└── themes
└── hugo-PaperMod
```
## Features/Mods
Read Wiki => [hugo-PaperMod - Features](https://github.com/adityatelange/hugo-PaperMod/wiki/Features)
---
## LightHouse
<kbd><a href="https://lighthouse-dot-webdotdevsite.appspot.com//lh/html?url=https%3A%2F%2Fadityatelange.github.io%2Fhugo-PaperMod%2F"><img src="https://i.ibb.co/y6RwCzb/lighthouse.png" alt="LightHouse" /></a></kbd>
### Social-Icons
Read Wiki => [Social-Icons](https://github.com/adityatelange/hugo-PaperMod/wiki/Icons#social-icons)
+13
View File
@@ -0,0 +1,13 @@
/* 404
-------------------------------------------------- */
.not-found {
position: absolute;
left: 0;
right: 0;
display: flex;
align-items: center;
justify-content: center;
height: 80%;
font-size: 160px;
font-weight: 700;
}
+63
View File
@@ -0,0 +1,63 @@
.hljs-comment,
.hljs-quote {
color: #B6B18B
}
.hljs-variable,
.hljs-template-variable,
.hljs-tag,
.hljs-name,
.hljs-selector-id,
.hljs-selector-class,
.hljs-regexp,
.hljs-deletion {
color: #EB3C54
}
.hljs-number,
.hljs-built_in,
.hljs-builtin-name,
.hljs-literal,
.hljs-type,
.hljs-params,
.hljs-meta,
.hljs-link {
color: #E7CE56
}
.hljs-attribute {
color: #EE7C2B
}
.hljs-string,
.hljs-symbol,
.hljs-bullet,
.hljs-addition {
color: #4FB4D7
}
.hljs-title,
.hljs-section {
color: #78BB65
}
.hljs-keyword,
.hljs-selector-tag {
color: #B45EA4
}
.hljs {
display: block;
overflow-x: auto;
background: #1C1D21;
color: #c0c5ce;
padding: .5em
}
.hljs-emphasis {
font-style: italic
}
.hljs-strong {
font-weight: bold
}
+66
View File
@@ -0,0 +1,66 @@
/* Archive
-------------------------------------------------- */
.archive {
width: 100%;
text-align: left;
margin: 0 auto;
margin-top: 14px;
margin-bottom: 14px;
font-size: 16px;
}
.archive-posts {
width: 100%
}
.archive-year {
margin-top: 40px;
}
.archive-year-header:not(:last-of-type) {
border-bottom: 1px solid var(--border)
}
.archive-year:not(:last-of-type) {
border-bottom: 1px solid var(--border)
}
.archive-month {
display: flex;
align-items: flex-start;
padding: 10px 0
}
.archive-month-header {
margin: 25px 0;
width: 200px;
}
.archive-month:not(:last-of-type) {
border-bottom: 1px solid var(--border)
}
.archive-entry {
position: relative;
padding: 5px;
margin: 10px 0;
}
.archive-entry-title {
margin: 5px 0
}
.archive-meta {
color: var(--secondary);
font-size: 14px;
}
@media (max-width: 800px) {
.archive-month {
flex-direction: column
}
.archive-year {
margin-top: 20px
}
}
-9
View File
@@ -1,9 +0,0 @@
/* Custom styles added to demo */
iframe {
border-radius: var(--radius) !important;
}
.entry-cover img {
border: 1px solid var(--border);
}
+51
View File
@@ -0,0 +1,51 @@
/* Footer
-------------------------------------------------- */
.footer {
max-width: calc(var(--main-width) + var(--gap) * 2);
margin-left: auto;
margin-right: auto;
padding: calc((var(--footer-height) - (var(--gap)) - 10px)/ 2) var(--gap);
color: var(--secondary);
font-size: 12px;
text-align: center;
line-height: 24px;
}
.footer span {
margin-left: 1px;
margin-right: 1px;
}
.footer a {
color: inherit;
border-bottom: 1px solid var(--secondary);
}
.footer a:hover {
color: var(--primary);
border-bottom: 1px solid var(--primary);
}
.top-link {
font-size: 12px;
visibility: hidden;
opacity: 0;
position: fixed;
bottom: 60px;
right: 30px;
z-index: 99;
background: var(--tertiary);
width: 42px;
height: 42px;
padding: 12px;
color: var(--secondary);
border-radius: 64px;
fill: currentColor;
fill-opacity: 80%;
transition: visibility 0.5s,
opacity 0.8s linear;
}
.top-link:hover {
color: var(--primary);
}
+42
View File
@@ -0,0 +1,42 @@
/* Header
-------------------------------------------------- */
.nav {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
max-width: calc(var(--nav-width) + var(--gap) * 2);
margin-left: auto;
margin-right: auto;
}
.nav a {
display: block;
line-height: var(--header-height);
}
.logo,
.menu {
margin-left: var(--gap);
margin-right: var(--gap);
}
.logo a {
font-size: 24px;
font-weight: 700;
}
.menu {
display: flex;
list-style: none;
word-break: keep-all;
overflow-x: auto;
white-space: nowrap;
}
.menu li+li {
margin-left: var(--gap);
}
.menu a {
font-size: 16px;
}
+59
View File
@@ -0,0 +1,59 @@
/* Main
-------------------------------------------------- */
.main {
position: relative;
min-height: calc(100vh - var(--header-height) - var(--footer-height));
max-width: calc(var(--main-width) + var(--gap) * 2);
margin-left: auto;
margin-right: auto;
padding: var(--gap);
}
@media screen and (max-width: 400px) {
.main {
min-height: calc(100vh - var(--header-height) - var(--footer-height) - 24px);
}
}
.page-header {
margin-bottom: 24px;
}
.page-header h1 {
font-size: 40px;
}
.pagination {
display: flex;
}
.pagination a {
color: var(--theme);
font-size: 13px;
line-height: 36px;
background: var(--primary);
border-radius: calc(36px / 2);
}
.pagination .prev {
padding-left: 16px;
padding-right: 18px;
}
.pagination .next {
margin-left: auto;
padding-left: 18px;
padding-right: 16px;
}
.toc {
margin-bottom: 40px;
border: 1px solid var(--border);
border-radius: var(--radius);
padding: .5em;
}
.toc .details {
display: inline;
font-weight: 500;
}
+97
View File
@@ -0,0 +1,97 @@
/* Post entry
-------------------------------------------------- */
.first-entry {
position: relative;
display: flex;
flex-direction: column;
justify-content: center;
height: 320px;
margin-bottom: var(--gap);
}
@media screen and (max-width: 600px) {
.first-entry {
height: 260px;
}
}
.first-entry .entry-header {
overflow: hidden;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
}
.first-entry .entry-header h2 {
font-size: 34px;
}
.first-entry .entry-content {
margin-top: 14px;
margin-bottom: 14px;
font-size: 16px;
-webkit-line-clamp: 3;
}
.first-entry .entry-footer {
font-size: 14px;
}
.post-entry {
position: relative;
margin-bottom: var(--gap);
padding: var(--gap);
background: var(--entry);
border-radius: var(--radius);
transition: transform 0.1s;
}
.post-entry:active {
transform: scale(0.96);
}
.tag-entry .entry-content,
.tag-entry .entry-footer {
display: none;
}
.entry-header h2 {
font-size: 24px;
}
.entry-content {
margin-top: 8px;
margin-bottom: 8px;
color: var(--secondary);
font-size: 14px;
line-height: 1.6;
overflow: hidden;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
}
.entry-footer {
color: var(--secondary);
font-size: 13px;
}
.entry-link {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
}
.entry-isdraft {
display: inline;
color: var(--secondary);
font-size: 14px;
}
.social-icons a {
margin: 2px;
padding: 6px;
font-size: 1.4em;
}
+279
View File
@@ -0,0 +1,279 @@
/* Post single
-------------------------------------------------- */
.post-header {
margin-top: 24px;
margin-bottom: var(--content-gap);
}
.post-title {
margin-bottom: 2px;
font-size: 40px;
transform: translateX(-2px);
}
.post-meta {
color: var(--secondary);
font-size: 14px;
}
.post-content {
color: var(--content);
}
.post-content h1 {
margin-top: 40px;
margin-bottom: 32px;
}
.post-content h2 {
margin-top: 32px;
margin-bottom: 24px;
}
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
margin-top: 24px;
margin-bottom: 16px;
}
.post-content h1 {
font-size: 40px;
}
.post-content h2 {
font-size: 32px;
}
.post-content h3 {
font-size: 24px;
}
.post-content h4 {
font-size: 16px;
}
.post-content h5 {
font-size: 14px;
}
.post-content h6 {
font-size: 12px;
}
.post-content a {
box-shadow: 0 1px 0 var(--primary);
}
.post-content a code {
margin-left: 0;
margin-right: 0;
border-radius: 0;
box-shadow: 0 -1px 0 var(--primary) inset;
}
.post-content del {
text-decoration: none;
background: linear-gradient(to right, var(--primary) 100%, transparent 0) 0 50% / 1px 1px repeat-x;
}
.post-content p,
.post-content ul,
.post-content ol,
.post-content dl {
margin-bottom: var(--content-gap);
}
.post-content ul,
.post-content ol {
padding-left: 20px;
}
.post-content li {
margin-top: 5px;
}
.post-content li p {
margin-bottom: 0;
}
.post-content dl {
display: flex;
flex-wrap: wrap;
margin: 0;
}
.post-content dt {
width: 25%;
font-weight: 700;
}
.post-content dd {
width: 75%;
margin-left: 0;
padding-left: 10px;
}
.post-content dt~dt,
.post-content dd~dd {
margin-top: 10px;
}
.post-content table {
margin-bottom: 32px;
}
.post-content table th,
.post-content table:not(.highlighttable) td {
min-width: 80px;
padding: 12px 8px;
line-height: 1.5;
border-bottom: 1px solid var(--border);
}
.post-content table th {
font-size: 14px;
text-align: left;
}
.post-content table:not(.highlighttable) td code:only-child {
margin-left: 0;
margin-right: 0;
}
.post-content .highlight,
.post-content pre {
margin-left: calc(var(--gap) * -1);
margin-right: calc(var(--gap) * -1);
margin-bottom: 32px;
background: var(--hljs-bg) !important;
border-radius: var(--radius);
}
.post-content li>.highlight {
margin-right: 0
}
.post-content ul pre {
margin-left: calc(var(--gap) * -2);
}
.post-content .highlight pre {
margin-left: 0;
margin-right: 0;
margin-bottom: 0;
}
/* table */
.post-content .highlighttable {
table-layout: fixed;
}
.post-content .highlighttable td:first-child {
width: 40px;
}
.post-content .highlighttable td .linenodiv {
padding-right: 0 !important;
}
.post-content .highlighttable td .linenodiv pre,
.post-content .highlighttable td .highlight {
margin-bottom: 0;
}
.post-content .highlighttable td .highlight pre code::-webkit-scrollbar {
display: none;
}
/* inline */
.post-content .highlight span {
background: transparent !important;
}
.post-content code {
margin-left: 4px;
margin-right: 4px;
padding: 4px 6px;
font-family: Menlo, Monaco, 'Courier New', Courier, monospace;
font-size: 0.78em;
line-height: 1.5;
background: var(--code-bg);
border-radius: 2px;
}
.post-content pre code {
display: block;
margin-left: 0;
margin-right: 0;
padding: var(--gap);
color: rgba(255, 255, 255, 0.8);
background: transparent;
border-radius: 0;
}
.post-content blockquote {
margin: 0 0 0 calc(var(--gap) * -1);
padding: 0 0 0 21px;
border-left: 3px solid var(--primary);
}
.post-content hr {
height: 1px;
margin-top: 56px;
margin-bottom: 56px;
background: var(--tertiary);
border-top: 0;
border-bottom: 0;
}
.post-content iframe {
max-width: 100%;
}
.post-footer {
margin-top: 56px;
}
.post-tags li {
display: inline-block;
}
.post-tags li+li {
margin-left: 3px;
}
.post-tags a {
display: block;
padding-left: 14px;
padding-right: 14px;
color: var(--secondary);
font-size: 14px;
line-height: 34px;
background: var(--code-bg);
border-radius: 4px;
}
.post-tags a:hover {
background: var(--border);
}
.share-buttons {
margin: 4px 0;
text-align: center;
background: var(--code-bg);
border-radius: var(--radius);
margin-top: 24px;
}
.share-button-single svg {
fill: currentColor;
height: 30px;
width: 30px;
margin: 0 10px;
}
.share-button-single:hover svg {
opacity: 0.9;
}
+61
View File
@@ -0,0 +1,61 @@
.main {
text-align: center;
display: table;
}
.main>.profile {
display: table-cell;
vertical-align: middle;
}
.main>.profile>.profile_inner {
transform: translate(0, -10%);
}
.profile_inner h1 {
padding: 12px 0;
}
img {
display: inline-table;
width: 180px;
border-radius: 50%;
pointer-events: none;
}
@media screen and (max-width: 600px) {
img {
width: 150px;
}
.main>.profile>.profile_inner {
transform: translate(0, 0);
}
}
.social-icons {
padding: 12px 0;
}
.buttons {
display: flex;
flex-wrap: wrap;
justify-content: center;
max-width: 400px;
margin: 0 auto;
}
.button {
background: var(--tertiary);
border-radius: var(--radius);
margin: 8px;
padding: 6px;
transition: transform 0.1s;
}
.button-inner {
padding: 0 8px;
}
.button:active, .social-icons>a>svg:hover{
transform: scale(0.96);
}
+134
View File
@@ -0,0 +1,134 @@
/* Reset
-------------------------------------------------- */
*,
*::before,
*::after {
box-sizing: border-box;
}
html {
-webkit-tap-highlight-color: transparent;
}
body {
margin: 0;
color: var(--primary);
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
'Open Sans', 'Helvetica Neue', sans-serif;
font-size: 18px;
line-height: 1.6;
word-break: break-word;
background: var(--theme);
}
article,
aside,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section {
display: block;
}
h1,
h2,
h3,
h4,
h5,
h6 {
margin-top: 0;
margin-bottom: 0;
color: var(--primary);
line-height: 1.2;
}
p {
margin-top: 0;
margin-bottom: 0;
}
strong,
b {
font-weight: 500;
}
ul {
margin: 0;
padding: 0;
}
a {
color: var(--primary);
text-decoration: none;
}
figure {
margin: 0;
}
table {
width: 100%;
border-collapse: collapse;
border-spacing: 0;
}
button,
input,
textarea {
padding: 0;
font: inherit;
background: transparent;
border: 0;
-webkit-appearance: none;
}
button,
input[type='button'],
input[type='submit'] {
cursor: pointer;
}
input,
textarea {
padding: 0;
border: 0;
outline: 0;
}
input:-webkit-autofill,
textarea:-webkit-autofill {
box-shadow: 0 0 0 50px var(--theme) inset;
}
img {
display: block;
max-width: 100%;
}
blockquote {
border-left: 2px solid;
margin: 20px;
padding: 10px 40px;
}
::-webkit-scrollbar {
width: 8px;
height: 3px;
}
::-webkit-scrollbar-track {
background: var(--theme);
}
::-webkit-scrollbar-thumb {
background: var(--tertiary);
border-radius: var(--radius);
}
::-webkit-scrollbar-thumb:hover {
background: var(--secondary);
}
+19
View File
@@ -0,0 +1,19 @@
.terms-tags li {
display: inline-block;
margin: 10px;
font-weight: 600;
}
.terms-tags a {
display: block;
padding: 5px 14px;
color: var(--primary);
background: var(--border);
border-radius: var(--radius);
transition: transform 0.1s;
}
.terms-tags a:hover {
background: var(--tertiary);
transform: scale(0.96);
}
+49
View File
@@ -0,0 +1,49 @@
/* Theme
-------------------------------------------------- */
:root {
--gap: 24px;
--content-gap: 20px;
--nav-width: 1024px;
--main-width: 720px;
--header-height: 60px;
--footer-height: 60px;
--radius: 8px;
--theme: #fff;
--entry: #fff;
--primary: rgba(0, 0, 0, 0.88);
--secondary: rgba(0, 0, 0, 0.56);
--tertiary: rgba(0, 0, 0, 0.16);
--content: rgba(0, 0, 0, 0.88);
--hljs-bg: #1c1d21;
--code-bg: #f5f5f5;
--border: #eee;
}
@media screen and (max-width: 600px) {
:root {
--gap: 14px;
}
}
.dark {
--theme: #1d1e20;
--entry: #2e2e33;
--primary: rgba(255, 255, 255, 0.84);
--secondary: rgba(255, 255, 255, 0.56);
--tertiary: rgba(255, 255, 255, 0.16);
--content: rgba(255, 255, 255, 0.64);
--hljs-bg: #2e2e33;
--code-bg: #37383e;
--border: #5b5d67;
}
.list {
background: var(--code-bg);
}
.dark.list {
background: var(--theme);
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 86 KiB

+2
View File
@@ -0,0 +1,2 @@
/*! highlight.js v9.18.3 | BSD3 License | git.io/hljslicense */
!function(e){var t="object"==typeof window&&window||"object"==typeof self&&self;"undefined"==typeof exports||exports.nodeType?t&&(t.hljs=e({}),"function"==typeof define&&define.amd&&define([],function(){return t.hljs})):e(exports)}(function(n){var u=[],i=Object.keys,w=Object.create(null),c=Object.create(null),x=!0,t=/^(no-?highlight|plain|text)$/i,o=/\blang(?:uage)?-([\w-]+)\b/i,r=/((^(<[^>]+>|\t|)+|(?:\n)))/gm,a={case_insensitive:"cI",lexemes:"l",contains:"c",keywords:"k",subLanguage:"sL",className:"cN",begin:"b",beginKeywords:"bK",end:"e",endsWithParent:"eW",illegal:"i",excludeBegin:"eB",excludeEnd:"eE",returnBegin:"rB",returnEnd:"rE",variants:"v",IDENT_RE:"IR",UNDERSCORE_IDENT_RE:"UIR",NUMBER_RE:"NR",C_NUMBER_RE:"CNR",BINARY_NUMBER_RE:"BNR",RE_STARTERS_RE:"RSR",BACKSLASH_ESCAPE:"BE",APOS_STRING_MODE:"ASM",QUOTE_STRING_MODE:"QSM",PHRASAL_WORDS_MODE:"PWM",C_LINE_COMMENT_MODE:"CLCM",C_BLOCK_COMMENT_MODE:"CBCM",HASH_COMMENT_MODE:"HCM",NUMBER_MODE:"NM",C_NUMBER_MODE:"CNM",BINARY_NUMBER_MODE:"BNM",CSS_NUMBER_MODE:"CSSNM",REGEXP_MODE:"RM",TITLE_MODE:"TM",UNDERSCORE_TITLE_MODE:"UTM",COMMENT:"C",beginRe:"bR",endRe:"eR",illegalRe:"iR",lexemesRe:"lR",terminators:"t",terminator_end:"tE"},k="</span>",E="Could not find the language '{}', did you forget to load/include a language module?",M={classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:void 0},s="of and for in not or if then".split(" ");function C(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function b(e){return e.nodeName.toLowerCase()}function l(e){return t.test(e)}function d(e){var t,r={},a=Array.prototype.slice.call(arguments,1);for(t in e)r[t]=e[t];return a.forEach(function(e){for(t in e)r[t]=e[t]}),r}function p(e){var n=[];return function e(t,r){for(var a=t.firstChild;a;a=a.nextSibling)3===a.nodeType?r+=a.nodeValue.length:1===a.nodeType&&(n.push({event:"start",offset:r,node:a}),r=e(a,r),b(a).match(/br|hr|img|input/)||n.push({event:"stop",offset:r,node:a}));return r}(e,0),n}function f(e,t,r){var a=0,n="",i=[];function s(){return e.length&&t.length?e[0].offset!==t[0].offset?e[0].offset<t[0].offset?e:t:"start"===t[0].event?e:t:e.length?e:t}function c(e){n+="<"+b(e)+u.map.call(e.attributes,function(e){return" "+e.nodeName+'="'+C(e.value).replace(/"/g,"&quot;")+'"'}).join("")+">"}function o(e){n+="</"+b(e)+">"}function l(e){("start"===e.event?c:o)(e.node)}for(;e.length||t.length;){var d=s();if(n+=C(r.substring(a,d[0].offset)),a=d[0].offset,d===e){for(i.reverse().forEach(o);l(d.splice(0,1)[0]),(d=s())===e&&d.length&&d[0].offset===a;);i.reverse().forEach(c)}else"start"===d[0].event?i.push(d[0].node):i.pop(),l(d.splice(0,1)[0])}return n+C(r.substr(a))}function m(t){return t.v&&!t.cached_variants&&(t.cached_variants=t.v.map(function(e){return d(t,{v:null},e)})),t.cached_variants?t.cached_variants:function e(t){return!!t&&(t.eW||e(t.starts))}(t)?[d(t,{starts:t.starts?d(t.starts):null})]:Object.isFrozen(t)?[d(t)]:[t]}function g(e){if(a&&!e.langApiRestored){for(var t in e.langApiRestored=!0,a)e[t]&&(e[a[t]]=e[t]);(e.c||[]).concat(e.v||[]).forEach(g)}}function _(t,a){var n={};return"string"==typeof t?r("keyword",t):i(t).forEach(function(e){r(e,t[e])}),n;function r(r,e){a&&(e=e.toLowerCase()),e.split(" ").forEach(function(e){var t=e.split("|");n[t[0]]=[r,function(e,t){return t?Number(t):function(e){return-1!=s.indexOf(e.toLowerCase())}(e)?0:1}(t[0],t[1])]})}}function B(a){function d(e){return e&&e.source||e}function u(e,t){return new RegExp(d(e),"m"+(a.cI?"i":"")+(t?"g":""))}function n(n){var i,e,s={},c=[],o={},r=1;function t(e,t){s[r]=e,c.push([e,t]),r+=function(e){return new RegExp(e.toString()+"|").exec("").length-1}(t)+1}for(var a=0;a<n.c.length;a++){t(e=n.c[a],e.bK?"\\.?(?:"+e.b+")\\.?":e.b)}n.tE&&t("end",n.tE),n.i&&t("illegal",n.i);var l=c.map(function(e){return e[1]});return i=u(function(e,t){for(var r=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./,a=0,n="",i=0;i<e.length;i++){var s=a+=1,c=d(e[i]);for(0<i&&(n+=t),n+="(";0<c.length;){var o=r.exec(c);if(null==o){n+=c;break}n+=c.substring(0,o.index),c=c.substring(o.index+o[0].length),"\\"==o[0][0]&&o[1]?n+="\\"+String(Number(o[1])+s):(n+=o[0],"("==o[0]&&a++)}n+=")"}return n}(l,"|"),!0),o.lastIndex=0,o.exec=function(e){var t;if(0===c.length)return null;i.lastIndex=o.lastIndex;var r=i.exec(e);if(!r)return null;for(var a=0;a<r.length;a++)if(null!=r[a]&&null!=s[""+a]){t=s[""+a];break}return"string"==typeof t?(r.type=t,r.extra=[n.i,n.tE]):(r.type="begin",r.rule=t),r},o}if(a.c&&-1!=a.c.indexOf("self")){if(!x)throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");a.c=a.c.filter(function(e){return"self"!=e})}!function t(r,e){r.compiled||(r.compiled=!0,r.k=r.k||r.bK,r.k&&(r.k=_(r.k,a.cI)),r.lR=u(r.l||/\w+/,!0),e&&(r.bK&&(r.b="\\b("+r.bK.split(" ").join("|")+")\\b"),r.b||(r.b=/\B|\b/),r.bR=u(r.b),r.endSameAsBegin&&(r.e=r.b),r.e||r.eW||(r.e=/\B|\b/),r.e&&(r.eR=u(r.e)),r.tE=d(r.e)||"",r.eW&&e.tE&&(r.tE+=(r.e?"|":"")+e.tE)),r.i&&(r.iR=u(r.Line truncated
-255
View File
@@ -1,255 +0,0 @@
# If your site is in 'https', then make sure your base url isn't written using 'http' otherwise your sitemap would
# contain http (as opposeed to https) URLs. This would affect Google indexing of your URLs.
baseURL: "https://adityatelange.github.io/hugo-PaperMod/"
title: PaperMod
copyright: "© [PaperMod Contributors](https://github.com/adityatelange/hugo-PaperMod/graphs/contributors)"
theme: [hugo-PaperMod]
enableInlineShortcodes: true
enableRobotsTXT: true
buildDrafts: false
buildFuture: false
buildExpired: false
enableEmoji: true
pygmentsUseClasses: true
mainsections: ["posts", "papermod"]
minify:
disableXML: true
# minifyOutput: true
pagination:
disableAliases: false
pagerSize: 3
languages:
en:
languageName: "English"
weight: 1
taxonomies:
category: categories
tag: tags
series: series
menu:
main:
- name: About
url: about
weight: 1
- name: Archive
url: archives
weight: 2
- name: Search
url: search/
weight: 2
- name: Tags
url: tags/
weight: 4
- name: "Docs (Wiki)"
url: https://github.com/adityatelange/hugo-PaperMod/wiki/
fr:
languageName: "French"
weight: 2
title: PaperModL2
taxonomies:
category: FRcategories
tag: FRtags
series: FRseries
menu:
main:
- name: Archive
url: archives/
weight: 5
- name: FRTags
url: frtags
weight: 10
- name: FRCategories
url: frcategories
weight: 10
- name: FRSeries
url: frseries
weight: 10
- name: External
url: "https://github.com/adityatelange/hugo-PaperMod/wiki/Features#profile-mode"
# custom params for each language should be under [langcode].parms - hugo v0.120.0
params:
languageAltTitle: French
profileMode:
enabled: true
title: PaperMod
imageUrl: "https://images.unsplash.com/photo-1535713875002-d1d0cf377fde?w=200&h=200"
imageTitle: ProfileMode image
# imageWidth: 120
# imageHeight: 120
subtitle: "☄️ Fast | ☁️ Fluent | 🌙 Smooth | 📱 Responsive"
buttons:
- name: Blog
url: posts
- name: Profile Mode
url: https://github.com/adityatelange/hugo-PaperMod/wiki/Features#profile-mode
fa:
languageName: "Farsi"
languagedirection: rtl
weight: 3
title: PaperMod RTL
taxonomies:
category: FAcategories
tag: FAtags
series: FAseries
menu:
main:
- name: FATags
url: fatags
weight: 10
# custom params for each language should be under [langcode].parms - hugo v0.120.0
params:
homeInfoParams:
Title: "Hi there \U0001F44B"
Content: Welcome to RTL layout
outputFormats:
llms:
mediaType: "text/plain"
baseName: "llms"
isPlainText: true
notAlternative: true
outputs:
home:
- HTML
- RSS
- JSON
- llms
params:
env: production # to enable google analytics, opengraph, twitter-cards and schema.
description: "Theme PaperMod - https://github.com/adityatelange/hugo-PaperMod"
author: Theme PaperMod
# author: ["Me", "You"] # multiple authors
defaultTheme: auto
# disableThemeToggle: true
ShowShareButtons: true
ShowReadingTime: true
# disableSpecial1stPost: true
displayFullLangName: true
ShowPostNavLinks: true
ShowBreadCrumbs: true
ShowCodeCopyButtons: true
ShowRssButtonInSectionTermList: true
ShowAllPagesInArchive: true
ShowPageNums: true
ShowToc: true
# comments: false
images: ["images/papermod-cover.png"]
profileMode:
enabled: false
title: PaperMod
imageUrl: "#"
imageTitle: my image
# imageWidth: 120
# imageHeight: 120
buttons:
- name: Archives
url: archives
- name: Tags
url: tags
homeInfoParams:
Title: "PaperMod's Demo"
Content: |
A clean, fast, and responsive Hugo theme built for a polished reading experience. [Read more..](/about/)
- Lightweight by design, with a modern layout that keeps your content front and center.
- Explore the [Docs (Wiki)](https://github.com/adityatelange/hugo-PaperMod/wiki/) to learn more about features and configuration.
- Support the project on [GitHub](https://github.com/adityatelange/hugo-PaperMod) and share it with others who love minimalistic designs.
- PaperMod is inspired by the [Paper](https://github.com/nanxiaobei/hugo-paper/tree/4330c8b12aa48bfdecbcad6ad66145f679a430b3) theme.
socialIcons:
- name: github
title: View Source on Github
url: "https://github.com/adityatelange/hugo-PaperMod"
- name: Discord
title: Join discord community
url: "https://discord.gg/ahpmTvhVmp"
- name: X
title: Share PaperMod on X/Twitter
url: "https://x.com/intent/tweet/?text=Checkout%20Hugo%20PaperMod%20%E2%9C%A8%0AA%20fast,%20clean,%20responsive%20Hugo%20theme.&url=https://github.com/adityatelange/hugo-PaperMod&hashtags=Hugo,PaperMod"
- name: KoFi
title: Buy me a Ko-Fi :)
url: "https://ko-fi.com/adityatelange"
editPost:
URL: "https://github.com/adityatelange/hugo-PaperMod/tree/exampleSite/content"
Text: "Suggest Changes" # edit text
appendFilePath: true # to append file path to Edit link
# label:
# iconSVG: '<svg xmlns="http://www.w3.org/2000/svg" height="25" viewBox="0 -960 960 960" fill="currentColor"><path d="M320-240h320v-80H320v80Zm0-160h320v-80H320v80ZM240-80q-33 0-56.5-23.5T160-160v-640q0-33 23.5-56.5T240-880h320l240 240v480q0 33-23.5 56.5T720-80H240Zm280-520v-200H240v640h480v-440H520ZM240-800v200-200 640-640Z"/></svg>'
# text: "Home"
# icon: icon.png
# iconHeight: 35
# analytics:
# google:
# SiteVerificationTag: "XYZabc"
assets:
disableHLJS: true
# favicon: "<link / abs url>"
# favicon16x16: "<link / abs url>"
# favicon32x32: "<link / abs url>"
# apple_touch_icon: "<link / abs url>"
# safari_pinned_tab: "<link / abs url>"
# cover:
# hidden: true # hide everywhere but not in structured data
# hiddenInList: true # hide on list pages and home
# hiddenInSingle: true # hide on single page
# fuseOpts:
# isCaseSensitive: false
# shouldSort: true
# location: 0
# distance: 1000
# threshold: 0.4
# minMatchCharLength: 0
# keys: ["title", "permalink", "summary", "content"]
markup:
goldmark:
renderer:
unsafe: true
highlight:
noClasses: false
# anchorLineNos: true
# codeFences: true
# guessSyntax: true
# lineNos: true
# style: monokai
# privacy:
# vimeo:
# disabled: false
# simple: true
# twitter:
# disabled: false
# enableDNT: true
# simple: true
# instagram:
# disabled: false
# simple: true
# youtube:
# disabled: false
# privacyEnhanced: true
services:
instagram:
disableInlineCSS: true
x:
disableInlineCSS: true
-119
View File
@@ -1,119 +0,0 @@
---
title: "About"
date: 2026-05-09T12:00:00+05:30
description: "A fast, clean, and responsive Hugo theme designed for bloggers and content creators."
author: ["Aditya Telange"]
draft: false
hiddenInRss: true
disableShare: true
ShowBreadcrumbs: false
---
PaperMod is a fast, clean, and responsive Hugo theme designed for bloggers and content creators. It offers a modern design with a focus on readability and performance, making it an excellent choice for personal blogs, portfolios, and documentation sites.
> Based on [hugo-paper](https://github.com/nanxiaobei/hugo-paper/tree/4330c8b12aa48bfdecbcad6ad66145f679a430b3), with additional features and customization options.
<table>
<tbody>
<tr>
<td>PaperMod at Hugo Themes</td>
<td><a href="https://themes.gohugo.io/themes/hugo-papermod/">PaperMod@themes.gohugo.io</a></td>
</tr>
<tr>
<td>Minimum Hugo Version</td>
<td><a href="https://github.com/gohugoio/hugo/releases/tag/v0.146.0">Hugo v0.146.0+</a></td>
</tr>
<tr>
<td>Discord Community</td>
<td><a href="https://discord.gg/ahpmTvhVmp">Join Discord to chat with the community</a></td>
</tr>
<tr>
<td>Github Discussion</td>
<td><a href="https://github.com/adityatelange/hugo-PaperMod/discussions">Join Discussions on Github</a></td>
</tr>
<tr>
<td>Live Demo</td>
<td><a href="https://adityatelange.github.io/hugo-PaperMod/">adityatelange.github.io/hugo-PaperMod</a></td>
</tr>
<tr>
<td>Documentation</td>
<td><a href="https://github.com/adityatelange/hugo-PaperMod/wiki">Github Wiki</a></td>
</tr>
<tr>
<td>Example Site Source</td>
<td><a href="https://github.com/adityatelange/hugo-PaperMod/tree/exampleSite">exampleSite branch</a></td>
</tr>
<tr>
<td><a href="https://www.star-history.com/adityatelange/hugo-papermod"><img src="https://api.star-history.com/badge?repo=adityatelange/hugo-PaperMod&amp;theme=dark" alt="Star History Rank" /></a></td>
<td><a href="https://ko-fi.com/H2H229ZWH"><img src="https://ko-fi.com/img/githubbutton_sm.svg" alt="ko-fi" /></a></td>
</tr>
</tbody>
</table>
<p align="center">
<img src="https://user-images.githubusercontent.com/21258296/114303440-bfc0ae80-9aeb-11eb-8cfa-48a4bb385a6d.png" alt="Mockup image" title="Mockup"/>
</p>
---
## Features 💥
`☄️ Fast | ☁️ Fluent | 🌙 Smooth | 📱 Responsive`
- **Asset pipeline** -- Hugo's built-in asset generator with fingerprinting, bundling, and minification.
- **Three layout modes** -- [Regular](https://github.com/adityatelange/hugo-PaperMod/wiki/Features#regular-mode-default-mode), [Home-Info](https://github.com/adityatelange/hugo-PaperMod/wiki/Features#home-info-mode), and [Profile](https://github.com/adityatelange/hugo-PaperMod/wiki/Features#profile-mode).
- **Light and dark themes** -- Automatic switching based on browser preference, plus a manual toggle.
- **Multilingual support** -- Includes a built-in language selector.
- **Search** -- Client-side search powered by Fuse.js.
- **SEO optimized** -- Open Graph, Twitter Cards, and Schema.org structured data out of the box.
- **Cover images** -- Per-post cover images with responsive image support.
- **Table of contents** -- Auto-generated from heading structure.
- **Multiple authors** -- Native support for multi-author sites.
- **Social icons and share buttons** -- Configurable social links and per-post sharing.
- **Breadcrumb navigation**
- **Post archives and taxonomies**
- **Code block copy buttons** -- One-click copying with Chroma syntax highlighting.
- **Related post suggestions**
- **Zero JS build dependencies** -- No webpack, Node.js, or other tooling required.
| Topic | Description |
| ------------------------------------------------------------------------------------------------- | ----------------------------------------------- |
| **[Installation guide](https://github.com/adityatelange/hugo-PaperMod/wiki/Installation)** | Detailed installation and update instructions |
| **[Features wiki page](https://github.com/adityatelange/hugo-PaperMod/wiki/Features)** | In-depth explanations of all features |
| **[FAQ wiki](https://github.com/adityatelange/hugo-PaperMod/wiki/FAQs)** | Common questions and configuration walkthroughs |
| **[Icons wiki](https://github.com/adityatelange/hugo-PaperMod/wiki/Icons)** | Documentation for social icons and share icons |
| **[Variables wiki](https://github.com/adityatelange/hugo-PaperMod/wiki/Variables)** | List of all available template variables |
| **[Overiding templates](https://github.com/adityatelange/hugo-PaperMod/wiki/Template_Overrides)** | Guide to customizing templates without forking |
| **[Releases](https://github.com/adityatelange/hugo-PaperMod/releases)** | Detailed history of releases |
---
## Performance ☄️
PaperMod consistently scores near-perfect results on [Pagespeed Insights](https://pagespeed.web.dev/report?url=https://adityatelange.github.io/hugo-PaperMod/).
<img width="481" height="116" alt="image" src="https://github.com/user-attachments/assets/497d831b-d143-4a46-bc11-b1d7f8ef4a83" />
---
## Support 🫶
- Star this repository to show your support.
- Share PaperMod with others who might find it useful.
- Sponsor the project on [GitHub Sponsors](https://github.com/sponsors/adityatelange) or [Ko-Fi](https://ko-fi.com/adityatelange).
---
## Special Thanks 🌟
- [Highlight.js](https://github.com/highlightjs/highlight.js)
- [Fuse.js](https://github.com/krisk/fuse)
- [Feather Icons](https://github.com/feathericons/feather)
- [Simple Icons](https://github.com/simple-icons/simple-icons)
- All contributors and supporters
---
## Stargazers 📈
[![Stargazers over time](https://starchart.cc/adityatelange/hugo-PaperMod.svg?background=%23ffffff00&axis=%23858585&line=%236b63ff)](https://starchart.cc/adityatelange/hugo-PaperMod)
-6
View File
@@ -1,6 +0,0 @@
---
title: "Archive"
layout: "archives"
# url: "/l2/archives"
summary: "archives"
---
-6
View File
@@ -1,6 +0,0 @@
---
title: "Archive"
layout: "archives"
# url: "/archives"
summary: "archives"
---
-56
View File
@@ -1,56 +0,0 @@
---
title: "Audio and Video"
date: 2026-04-11
description: "Learn how to embed audio and video in your hugo site using shortcodes and HTML."
tags: ["hugo", "audio", "video", "shortcodes", "HTML"]
---
In this post, we'll explore how to embed audio and video content in your Hugo site using both shortcodes and HTML. This allows you to enhance your content with multimedia elements, making it more engaging for your audience.
## Embedding Audio
To embed audio in your Hugo site, you can use the built-in `audio` shortcode. Here's an example of how to use it:
```markdown
{{/*< audio src="/path/to/your/audiofile.mp3" >*/}}
```
{{< audio src="https://upload.wikimedia.org/wikipedia/commons/5/55/Apollo_8_liftoff.ogg" caption="Apollo 8 liftoff.ogg" >}}
Make sure to replace `/path/to/your/audiofile.mp3` with the actual path to your audio file. This shortcode will generate an audio player that allows visitors to play the audio directly on your site.
Alternatively, you can also use HTML to embed audio. Here's how you can do it:
```html
<audio controls>
<source src="/path/to/your/audiofile.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
```
Again, replace `/path/to/your/audiofile.mp3` with the correct path to your audio file. This HTML code will create a similar audio player as the shortcode.
## Embedding Video
To embed video content, you can use the `video` shortcode in Hugo. Here's an example:
```markdown
{{/*< video src="/path/to/your/videofile.mp4" >*/}}
```
{{< video src="https://upload.wikimedia.org/wikipedia/commons/8/8f/Apollo_4_separation_of_interstage_ring.webm" >}}
Make sure to replace `/path/to/your/videofile.mp4` with the actual path to your video file. This shortcode will generate a video player that allows visitors to watch the video directly on your site.
You can also use HTML to embed video content. Here's how you can do it:
```html
<video controls>
<source src="/path/to/your/videofile.mp4" type="video/mp4" />
Your browser does not support the video element.
</video>
```
Again, replace `/path/to/your/videofile.mp4` with the correct path to your video file. This HTML code will create a video player similar to the one generated by the shortcode.
-152
View File
@@ -1,152 +0,0 @@
---
author: ["Aditya Telange"]
title: "Code Syntax Guide"
date: "2019-03-10"
description: "Sample article showcasing basic code syntax and formatting for HTML elements."
summary: "Sample article showcasing basic code syntax and formatting for HTML elements."
tags: ["markdown", "syntax", "code",]
categories: ["themes", "syntax"]
series: ["Themes Guide"]
ShowToc: true
TocOpen: true
social:
fediverse_creator: "@adityatelange@mastodon.social"
weight: 3
---
### Inline Code
`This is Inline Code`
### Only `pre`
<pre>
This is pre text
</pre>
### Code block with backticks
```{hl_lines=[2,8]}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Example HTML5 Document</title>
<meta
name="description"
content="Sample article showcasing basic Markdown syntax and formatting for HTML elements."
/>
</head>
<body>
<p>Test</p>
</body>
</html>
```
### Code block with backticks and language specified
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Example HTML5 Document</title>
<meta
name="description"
content="Sample article showcasing basic Markdown syntax and formatting for HTML elements."
/>
</head>
<body>
<p>Test</p>
</body>
</html>
```
### Code block with backticks and language specified with line numbers
```html {linenos=true}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Example HTML5 Document</title>
<meta
name="description"
content="Sample article showcasing basic Markdown syntax and formatting for HTML elements."
/>
</head>
<body>
<p>Test</p>
</body>
</html>
```
### Code block with line numbers and <mark>highlighted</mark> lines
- PaperMod supports `linenos=true` or `linenos=table`
```html {linenos=true,hl_lines=[2,8]}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Example HTML5 Document</title>
<meta
name="description"
content="Sample article showcasing basic Markdown syntax and formatting for HTML elements."
/>
</head>
<body>
<p>Test</p>
</body>
</html>
```
- <del>With `linenos=inline` line <mark>**might not** get highlighted</mark> properly.<del>
- This issue is fixed with [045c084](https://github.com/adityatelange/hugo-PaperMod/commit/045c08496d61b1b3f9c79e69e7d3d243a526d8f3)
```html {linenos=inline,hl_lines=[2,8]}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Example HTML5 Document</title>
<meta
name="description"
content="Sample article showcasing basic Markdown syntax and formatting for HTML elements."
/>
</head>
<body>
<p>Test</p>
</body>
</html>
```
### Code block indented with four spaces
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Example HTML5 Document</title>
</head>
<body>
<p>Test</p>
</body>
</html>
### Code block with Hugo's internal highlight shortcode
{{< highlight html >}}
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Example HTML5 Document</title>
</head>
<body>
<p>Test</p>
</body>
</html>
{{< /highlight >}}
-50
View File
@@ -1,50 +0,0 @@
---
author: "Hugo Authors"
title: "Emoji Support"
date: "2019-03-05"
description: "Guide to emoji usage in Hugo"
tags: ["emoji"]
ShowToc: false
ShowBreadCrumbs: false
---
Emoji can be enabled in a Hugo project in a number of ways.
<!--more-->
The [`emojify`](https://gohugo.io/functions/emojify/) function can be called directly in templates or [Inline Shortcodes](https://gohugo.io/templates/shortcode-templates/#inline-shortcodes).
To enable emoji globally, set `enableEmoji` to `true` in your site's [configuration](https://gohugo.io/getting-started/configuration/) and then you can type emoji shorthand codes directly in content files; e.g.
<p><span class="nowrap"><span class="emojify">🙈</span> <code>:see_no_evil:</code></span> <span class="nowrap"><span class="emojify">🙉</span> <code>:hear_no_evil:</code></span> <span class="nowrap"><span class="emojify">🙊</span> <code>:speak_no_evil:</code></span></p>
<br>
The [Emoji cheat sheet](http://www.emoji-cheat-sheet.com/) is a useful reference for emoji shorthand codes.
---
**N.B.** The above steps enable Unicode Standard emoji characters and sequences in Hugo, however the rendering of these glyphs depends on the browser and the platform. To style the emoji you can either use a third party emoji font or a font stack; e.g.
{{< highlight html >}}
.emoji {
font-family: Apple Color Emoji, Segoe UI Emoji, NotoColorEmoji, Segoe UI Symbol, Android Emoji, EmojiSymbols;
}
{{< /highlight >}}
{{< css.inline >}}
<style>
.emojify {
font-family: Apple Color Emoji, Segoe UI Emoji, NotoColorEmoji, Segoe UI Symbol, Android Emoji, EmojiSymbols;
font-size: 2rem;
vertical-align: middle;
}
@media screen and (max-width:650px) {
.nowrap {
display: block;
margin: 25px 0;
}
}
</style>
{{< /css.inline >}}
-11
View File
@@ -1,11 +0,0 @@
---
title: Inner Section
description: This section contains inner pages to test the section and page layouts in Hugo.
date: 2026-04-11
---
Section/List pages can include markdown content as well. Simply add the content in the `_index.md` file of the section. The content will be rendered above the list of pages in that section.
You can add images, links, and other markdown content in the `_index.md` file. This allows you to provide an introduction or overview of the section before listing the individual pages.
![Example Image](https://placehold.co/800x200.png?text=Section+Image)
Binary file not shown.

Before

Width:  |  Height:  |  Size: 41 KiB

@@ -1,15 +0,0 @@
---
title: Cover Image
description: This page is created to test the cover image functionality in Hugo.
summary: This is a test page to verify that the cover image is displayed correctly in Hugo.
date: 2026-04-11
draft: true
cover:
image: image.png
alt: "A sample cover image"
caption: "This is a caption for the cover image."
---
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
-36
View File
@@ -1,36 +0,0 @@
---
title: "Sample Markdown Blog Post"
date: 2024-06-01T12:00:00Z
---
## Sample Markdown Blog Post
A sample blog post to test markdown rendering in PaperMod. This post includes various markdown elements such as headings, images, and code blocks. The content is meant to verify that all markdown features are displayed correctly in the theme.
### Sample Heading
Knock knock. Who's there? Lettuce. Lettuce who? Lettuce in, it's cold out here!
![Sample Image](https://placehold.co/800x200)
```javascript
function greet(name) {
return `Hello, ${name}!`;
}
console.log(greet('World'));
```
```python {hl_lines="2",linenos="table"}
def greet(name):
return f"Hello, {name}!"
print(greet("World"))
```
#### Another Heading
| This is a table | With some data |
|-----------------|----------------|
| Row 1 | Data 1 |
| Row 2 | Data 2 |
@@ -1,39 +0,0 @@
---
title: "Markdown Headings"
date: 2024-06-01T12:00:00Z
draft: false
---
# Heading 1
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
## Heading 2
Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In id cursus mi pretium tellus duis convallis. Tempus leo eu aenean sed diam urna tempor. Pulvinar vivamus fringilla lacus nec metus bibendum egestas. Iaculis massa nisl malesuada lacinia integer nunc posuere. Ut hendrerit semper vel class aptent taciti sociosqu. Ad litora torquent per conubia nostra inceptos himenaeos.
Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In id cursus mi pretium tellus duis convallis. Tempus leo eu aenean sed diam urna tempor. Pulvinar vivamus fringilla lacus nec metus bibendum egestas. Iaculis massa nisl malesuada lacinia integer nunc posuere. Ut hendrerit semper vel class aptent taciti sociosqu. Ad litora torquent per conubia nostra inceptos himenaeos.
### Heading 3
Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In id cursus mi pretium tellus duis convallis. Tempus leo eu aenean sed diam urna tempor. Pulvinar vivamus fringilla lacus nec metus bibendum egestas. Iaculis massa nisl malesuada lacinia integer nunc posuere. Ut hendrerit semper vel class aptent taciti sociosqu. Ad litora torquent per conubia nostra inceptos himenaeos.
Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In id cursus mi pretium tellus duis convallis. Tempus leo eu aenean sed diam urna tempor. Pulvinar vivamus fringilla lacus nec metus bibendum egestas. Iaculis massa nisl malesuada lacinia integer nunc posuere. Ut hendrerit semper vel class aptent taciti sociosqu. Ad litora torquent per conubia nostra inceptos himenaeos.
#### Heading 4
Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In id cursus mi pretium tellus duis convallis. Tempus leo eu aenean sed diam urna tempor. Pulvinar vivamus fringilla lacus nec metus bibendum egestas. Iaculis massa nisl malesuada lacinia integer nunc posuere. Ut hendrerit semper vel class aptent taciti sociosqu. Ad litora torquent per conubia nostra inceptos himenaeos.
Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In id cursus mi pretium tellus duis convallis. Tempus leo eu aenean sed diam urna tempor. Pulvinar vivamus fringilla lacus nec metus bibendum egestas. Iaculis massa nisl malesuada lacinia integer nunc posuere. Ut hendrerit semper vel class aptent taciti sociosqu. Ad litora torquent per conubia nostra inceptos himenaeos.
##### Heading 5
Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In id cursus mi pretium tellus duis convallis. Tempus leo eu aenean sed diam urna tempor. Pulvinar vivamus fringilla lacus nec metus bibendum egestas. Iaculis massa nisl malesuada lacinia integer nunc posuere. Ut hendrerit semper vel class aptent taciti sociosqu. Ad litora torquent per conubia nostra inceptos himenaeos.
Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In id cursus mi pretium tellus duis convallis. Tempus leo eu aenean sed diam urna tempor. Pulvinar vivamus fringilla lacus nec metus bibendum egestas. Iaculis massa nisl malesuada lacinia integer nunc posuere. Ut hendrerit semper vel class aptent taciti sociosqu. Ad litora torquent per conubia nostra inceptos himenaeos.
###### Heading 6
Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In id cursus mi pretium tellus duis convallis. Tempus leo eu aenean sed diam urna tempor. Pulvinar vivamus fringilla lacus nec metus bibendum egestas. Iaculis massa nisl malesuada lacinia integer nunc posuere. Ut hendrerit semper vel class aptent taciti sociosqu. Ad litora torquent per conubia nostra inceptos himenaeos.
Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In id cursus mi pretium tellus duis convallis. Tempus leo eu aenean sed diam urna tempor. Pulvinar vivamus fringilla lacus nec metus bibendum egestas. Iaculis massa nisl malesuada lacinia integer nunc posuere. Ut hendrerit semper vel class aptent taciti sociosqu. Ad litora torquent per conubia nostra inceptos himenaeos.
-81
View File
@@ -1,81 +0,0 @@
---
title: "Markdown Lists"
date: 2024-06-01T12:00:00Z
draft: false
---
## Markdown Lists
Markdown supports both ordered and unordered lists, as well as nested lists. Here's how you can create them:
### Ordered List
1. First item
2. Second item
3. Third item
### Unordered List
- List item
- Another item
- And another item
### Nested Unordered list
- Fruit
- Apple
- Orange
- Dairy
- Milk
- Cheese
### Nested Ordered list
1. Fruit
- Apple
- Orange
2. Dairy
1. Milk
2. Cheese
### Mixed Nested Lists
1. First item
- Sub item 1
2. Second item
1. Sub item 1
- Sub sub item 1
2. Sub item 2
3. Third item
- Sub item 1
1. Sub sub item 1
### List with paragraphs, code blocks, and blockquotes
- Item 1
This is a paragraph within the first item.
- Item 2
```javascript
function helloWorld() {
console.log("Hello, World!");
}
```
- Item 3
> This is a blockquote within the third item.
### Lists with links, images, and other markdown content
- Item 1
- Sub item with a [link](https://example.com)
- Sub item with an image ![alt text](https://placehold.co/600x200.png)
- Item 2
- Sub item with **bold text**
- Sub item with _italic text_
- Item 3
- Sub item with `inline code`
- Sub item with a blockquote > This is a blockquote within a sub item.
This flexibility allows you to create rich and organized content using Markdown lists.
-178
View File
@@ -1,178 +0,0 @@
---
author: "Hugo Authors"
title: "Markdown Syntax Guide For RTL"
date: "2019-03-11"
description: "Sample article showcasing basic Markdown syntax and formatting for HTML elements."
FAtags: ["markdown", "css", "html", "themes"]
FAcategories: ["themes", "syntax"]
FAseries: ["Themes Guide"]
aliases: ["migrate-from-jekyl"]
ShowToc: true
TocOpen: true
---
This article offers a sample of basic Markdown syntax that can be used in Hugo content files, also it shows whether basic HTML elements are decorated with CSS in a Hugo theme.
<!--more-->
## Headings
The following HTML `<h1>`—`<h6>` elements represent six levels of section headings. `<h1>` is the highest section level while `<h6>` is the lowest.
# H1
## H2
### H3
#### H4
##### H5
###### H6
## Paragraph
Xerum, quo qui aut unt expliquam qui dolut labo. Aque venitatiusda cum, voluptionse latur sitiae dolessi aut parist aut dollo enim qui voluptate ma dolestendit peritin re plis aut quas inctum laceat est volestemque commosa as cus endigna tectur, offic to cor sequas etum rerum idem sintibus eiur? Quianimin porecus evelectur, cum que nis nust voloribus ratem aut omnimi, sitatur? Quiatem. Nam, omnis sum am facea corem alique molestrunt et eos evelece arcillit ut aut eos eos nus, sin conecerem erum fuga. Ri oditatquam, ad quibus unda veliamenimin cusam et facea ipsamus es exerum sitate dolores editium rerore eost, temped molorro ratiae volorro te reribus dolorer sperchicium faceata tiustia prat.
Itatur? Quiatae cullecum rem ent aut odis in re eossequodi nonsequ idebis ne sapicia is sinveli squiatum, core et que aut hariosam ex eat.
## Blockquotes
The blockquote element represents content that is quoted from another source, optionally with a citation which must be within a `footer` or `cite` element, and optionally with in-line changes such as annotations and abbreviations.
#### Blockquote without attribution
> Tiam, ad mint andaepu dandae nostion secatur sequo quae.
> **Note** that you can use _Markdown syntax_ within a blockquote.
#### Blockquote with attribution
> Don't communicate by sharing memory, share memory by communicating.
>
> — <cite>Rob Pike[^1]</cite>
[^1]: The above quote is excerpted from Rob Pike's [talk](https://www.youtube.com/watch?v=PAAkCSZUG1c) during Gopherfest, November 18, 2015.
## Tables
Tables aren't part of the core Markdown spec, but Hugo supports them out-of-the-box.
| Name | Age |
| ----- | --- |
| Bob | 27 |
| Alice | 23 |
#### Inline Markdown within tables
| Italics | Bold | Code |
| --------- | -------- | ------ |
| _italics_ | **bold** | `code` |
## Code Blocks
#### Inline Code
`This is Inline Code`
#### Only `pre`
<pre>
This is pre text
</pre>
#### Code block with backticks
```
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Example HTML5 Document</title>
</head>
<body>
<p>Test</p>
</body>
</html>
```
#### Code block with backticks and language specified
```html {linenos=true}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Example HTML5 Document</title>
<meta name="description" content="Sample article showcasing basic Markdown syntax and formatting for HTML elements.">
</head>
<body>
<p>Test</p>
</body>
</html>
```
#### Code block indented with four spaces
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Example HTML5 Document</title>
</head>
<body>
<p>Test</p>
</body>
</html>
#### Code block with Hugo's internal highlight shortcode
{{< highlight html >}}
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Example HTML5 Document</title>
</head>
<body>
<p>Test</p>
</body>
</html>
{{< /highlight >}}
## List Types
#### Ordered List
1. First item
2. Second item
3. Third item
#### Unordered List
- List item
- Another item
- And another item
#### Nested list
- Fruit
- Apple
- Orange
- Banana
- Dairy
- Milk
- Cheese
## Other Elements — abbr, sub, sup, kbd, mark
<abbr title="Graphics Interchange Format">GIF</abbr> is a bitmap image format.
H<sub>2</sub>O
X<sup>n</sup> + Y<sup>n</sup> = Z<sup>n</sup>
Press <kbd><kbd>CTRL</kbd>+<kbd>ALT</kbd>+<kbd>Delete</kbd></kbd> to end the session.
Most <mark>salamanders</mark> are nocturnal, and hunt for insects, worms, and other small creatures.
-178
View File
@@ -1,178 +0,0 @@
---
author: "Hugo Authors"
title: "Markdown Syntax Guide For L2"
date: "2019-03-11"
description: "Sample article showcasing basic Markdown syntax and formatting for HTML elements."
FRtags: ["markdown", "css", "html", "themes"]
FRcategories: ["themes", "syntax"]
FRseries: ["Themes Guide"]
aliases: ["migrate-from-jekyl"]
ShowToc: true
TocOpen: true
---
This article offers a sample of basic Markdown syntax that can be used in Hugo content files, also it shows whether basic HTML elements are decorated with CSS in a Hugo theme.
<!--more-->
## Headings
The following HTML `<h1>`—`<h6>` elements represent six levels of section headings. `<h1>` is the highest section level while `<h6>` is the lowest.
# H1
## H2
### H3
#### H4
##### H5
###### H6
## Paragraph
Xerum, quo qui aut unt expliquam qui dolut labo. Aque venitatiusda cum, voluptionse latur sitiae dolessi aut parist aut dollo enim qui voluptate ma dolestendit peritin re plis aut quas inctum laceat est volestemque commosa as cus endigna tectur, offic to cor sequas etum rerum idem sintibus eiur? Quianimin porecus evelectur, cum que nis nust voloribus ratem aut omnimi, sitatur? Quiatem. Nam, omnis sum am facea corem alique molestrunt et eos evelece arcillit ut aut eos eos nus, sin conecerem erum fuga. Ri oditatquam, ad quibus unda veliamenimin cusam et facea ipsamus es exerum sitate dolores editium rerore eost, temped molorro ratiae volorro te reribus dolorer sperchicium faceata tiustia prat.
Itatur? Quiatae cullecum rem ent aut odis in re eossequodi nonsequ idebis ne sapicia is sinveli squiatum, core et que aut hariosam ex eat.
## Blockquotes
The blockquote element represents content that is quoted from another source, optionally with a citation which must be within a `footer` or `cite` element, and optionally with in-line changes such as annotations and abbreviations.
#### Blockquote without attribution
> Tiam, ad mint andaepu dandae nostion secatur sequo quae.
> **Note** that you can use _Markdown syntax_ within a blockquote.
#### Blockquote with attribution
> Don't communicate by sharing memory, share memory by communicating.
>
> — <cite>Rob Pike[^1]</cite>
[^1]: The above quote is excerpted from Rob Pike's [talk](https://www.youtube.com/watch?v=PAAkCSZUG1c) during Gopherfest, November 18, 2015.
## Tables
Tables aren't part of the core Markdown spec, but Hugo supports them out-of-the-box.
| Name | Age |
| ----- | --- |
| Bob | 27 |
| Alice | 23 |
#### Inline Markdown within tables
| Italics | Bold | Code |
| --------- | -------- | ------ |
| _italics_ | **bold** | `code` |
## Code Blocks
#### Inline Code
`This is Inline Code`
#### Only `pre`
<pre>
This is pre text
</pre>
#### Code block with backticks
```
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Example HTML5 Document</title>
</head>
<body>
<p>Test</p>
</body>
</html>
```
#### Code block with backticks and language specified
```html {linenos=true}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Example HTML5 Document</title>
<meta name="description" content="Sample article showcasing basic Markdown syntax and formatting for HTML elements.">
</head>
<body>
<p>Test</p>
</body>
</html>
```
#### Code block indented with four spaces
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Example HTML5 Document</title>
</head>
<body>
<p>Test</p>
</body>
</html>
#### Code block with Hugo's internal highlight shortcode
{{< highlight html >}}
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Example HTML5 Document</title>
</head>
<body>
<p>Test</p>
</body>
</html>
{{< /highlight >}}
## List Types
#### Ordered List
1. First item
2. Second item
3. Third item
#### Unordered List
- List item
- Another item
- And another item
#### Nested list
- Fruit
- Apple
- Orange
- Banana
- Dairy
- Milk
- Cheese
## Other Elements — abbr, sub, sup, kbd, mark
<abbr title="Graphics Interchange Format">GIF</abbr> is a bitmap image format.
H<sub>2</sub>O
X<sup>n</sup> + Y<sup>n</sup> = Z<sup>n</sup>
Press <kbd><kbd>CTRL</kbd>+<kbd>ALT</kbd>+<kbd>Delete</kbd></kbd> to end the session.
Most <mark>salamanders</mark> are nocturnal, and hunt for insects, worms, and other small creatures.
-123
View File
@@ -1,123 +0,0 @@
---
author: "Hugo Authors"
title: "Markdown Syntax Guide"
date: "2019-03-11"
description: "Sample article showcasing basic Markdown syntax and formatting for HTML elements."
tags: ["markdown", "css", "html", "themes"]
categories: ["themes", "syntax"]
series: ["Themes Guide"]
aliases: ["migrate-from-jekyl"]
# cover:
# image: images/msg.png
# caption: "Generated using [OG Image Playground by Vercel](https://og-playground.vercel.app/)"
ShowToc: true
TocOpen: true
weight: 2
---
This article offers a sample of basic Markdown syntax that can be used in Hugo content files, also it shows whether basic HTML elements are decorated with CSS in a Hugo theme.
<!--more-->
## Headings
The following HTML `<h1>`—`<h6>` elements represent six levels of section headings. `<h1>` is the highest section level while `<h6>` is the lowest.
# H1
## H2
### H3
#### H4
##### H5
###### H6
## Paragraph
Xerum, quo qui aut unt expliquam qui dolut labo. Aque venitatiusda cum, voluptionse latur sitiae dolessi aut parist aut dollo enim qui voluptate ma dolestendit peritin re plis aut quas inctum laceat est volestemque commosa as cus endigna tectur, offic to cor sequas etum rerum idem sintibus eiur? Quianimin porecus evelectur, cum que nis nust voloribus ratem aut omnimi, sitatur? Quiatem. Nam, omnis sum am facea corem alique molestrunt et eos evelece arcillit ut aut eos eos nus, sin conecerem erum fuga. Ri oditatquam, ad quibus unda veliamenimin cusam et facea ipsamus es exerum sitate dolores editium rerore eost, temped molorro ratiae volorro te reribus dolorer sperchicium faceata tiustia prat.
Itatur? Quiatae cullecum rem ent aut odis in re eossequodi nonsequ idebis ne sapicia is sinveli squiatum, core et que aut hariosam ex eat.
## Blockquotes
The blockquote element represents content that is quoted from another source, optionally with a citation which must be within a `footer` or `cite` element, and optionally with in-line changes such as annotations and abbreviations.
#### Blockquote without attribution
> Tiam, ad mint andaepu dandae nostion secatur sequo quae.
> **Note** that you can use _Markdown syntax_ within a blockquote.
#### Blockquote with attribution
> Don't communicate by sharing memory, share memory by communicating.
>
> — <cite>Rob Pike[^1]</cite>
[^1]: The above quote is excerpted from Rob Pike's [talk](https://www.youtube.com/watch?v=PAAkCSZUG1c) during Gopherfest, November 18, 2015.
## Tables
Tables aren't part of the core Markdown spec, but Hugo supports them out-of-the-box.
| Name | Age |
| ----- | --- |
| Bob | 27 |
| Alice | 23 |
#### Inline Markdown within tables
| Italics | Bold | Code |
| --------- | -------- | ------ |
| _italics_ | **bold** | `code` |
## List Types
#### Ordered List
1. First item
2. Second item
3. Third item
#### Unordered List
- List item
- Another item
- And another item
#### Nested Unordered list
- Fruit
- Apple
- Orange
- Banana
- Dairy
- Milk
- Cheese
#### Nested Ordered list
1. Fruit
- Apple
- Orange
- Banana
2. Dairy
1. Milk
2. Cheese
3. Third item
1. Sub One
2. Sub Two
## Other Elements — abbr, sub, sup, kbd, mark
<abbr title="Graphics Interchange Format">GIF</abbr> is a bitmap image format.
H<sub>2</sub>O
X<sup>n</sup> + Y<sup>n</sup> = Z<sup>n</sup>
Press <kbd><kbd>CTRL</kbd>+<kbd>ALT</kbd>+<kbd>Delete</kbd></kbd> to end the session.
Most <mark>salamanders</mark> are nocturnal, and hunt for insects, worms, and other small creatures.
-55
View File
@@ -1,55 +0,0 @@
---
author: Hugo Authors
title: Math Typesetting
date: 2019-03-08
description: A brief guide to setup KaTeX
math: true
ShowBreadCrumbs: false
---
Mathematical notation in a Hugo project can be enabled by using third party JavaScript libraries.
<!--more-->
In this example we will be using [KaTeX](https://katex.org/)
- Create a partial under `/layouts/partials/math.html`
- Within this partial reference the [Auto-render Extension](https://katex.org/docs/autorender.html) or host these scripts locally.
- Include the partial in your templates ([`extend_head.html`](../papermod/papermod-faq/#custom-head--footer)) like so:
- refer [ISSUE #236](https://github.com/adityatelange/hugo-PaperMod/issues/236)
```bash
{{ if or .Params.math .Site.Params.math }}
{{ partial "math.html" . }}
{{ end }}
```
- To enable KaTex globally set the parameter `math` to `true` in a project's configuration
- To enable KaTex on a per page basis include the parameter `math: true` in content files
**Note:** Use the online reference of [Supported TeX Functions](https://katex.org/docs/supported.html)
{{< math.inline >}}
{{ if or .Page.Params.math .Site.Params.math }}
<!-- KaTeX -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/katex.min.css" integrity="sha384-zB1R0rpPzHqg7Kpt0Aljp8JPLqbXI3bhnPWROx27a9N0Ll6ZP/+DiW/UqRcLbRjq" crossorigin="anonymous">
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/katex.min.js" integrity="sha384-y23I5Q6l+B6vatafAwxRu/0oK/79VlbSz7Q9aiSZUvyWYIYsd+qj+o24G5ZU2zJz" crossorigin="anonymous"></script>
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/contrib/auto-render.min.js" integrity="sha384-kWPLUVMOks5AQFrykwIup5lo0m3iMkkHrD0uJ4H5cjeGihAutqP0yW0J6dpFiVkI" crossorigin="anonymous" onload="renderMathInElement(document.body);"></script>
{{ end }}
{{</ math.inline >}}
### Examples
{{< math.inline >}}
<p>
Inline math: \(\varphi = \dfrac{1+\sqrt5}{2}= 1.6180339887…\)
</p>
{{</ math.inline >}}
Block math:
$$
\varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } }
$$
-5
View File
@@ -1,5 +0,0 @@
---
title: PaperMod
summary: Contains posts related to `PaperMod`
description: Contains posts related to PaperMod
---
-306
View File
@@ -1,306 +0,0 @@
---
title: "FAQs / How To's Guide"
summary: We'll try to answer frequently asked qestions by users.
date: 2021-01-20
expiryDate: 2026-05-08
aliases: ['/papermod-how-to-guide', '/posts/papermod/papermod-how-to']
tags: ["PaperMod", "Docs"]
author: ["PaperMod Contributors"]
draft: true
---
> This page is not updated anymore and is only kept for reference. Please refer to [Documentation](https://github.com/adityatelange/hugo-PaperMod/wiki/) for latest information.
---
> - **We'll be using `yml/yaml` format for all examples down below, I recommend using `yml` over `toml` as it is easier to read.**
>
> - You can find any [YML to TOML](https://www.google.com/search?q=yml+to+toml) converters if necessary.
---
## Override theme template
By Hugo's Lookup Order, you can override any part of a theme that you want. The following is a quick example.
Let's say you wish the `list` was different. All you have to do is copy the `list` template:
```shell
your-site/themes/papermod/layouts/_defaults/list.html
```
And paste it under your own `layouts` folder:
```shell
your-site/layouts/_defaults/list.html
```
Then you're free to make any changes you want to the `list`.
When Hugo builds your site, your copy of `list.html` will be used instead of the theme's `list.html`.
---
## Enable Social-Metadata and SEO
These include OpenGraph, Twitter Cards and Schema.
```yml {linenos=true}
params:
env: production
```
or set `HUGO_ENV` as "production" in system env-vars
---
## Failed to find a valid digest in the 'integrity' attribute for resource ... ?
Read about How Subresource Integrity helps: [Subresource_Integrity](https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity)
Why was the `asset` not loading ? : [How_browsers_handle_Subresource_Integrity](https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity#How_browsers_handle_Subresource_Integrity)
**Solution:**
Set the following in `hugo.yaml`
```yml {linenos=true}
params:
assets:
disableFingerprinting: true
```
Linked Issues:
- https://stackoverflow.com/questions/65056585/hugo-theme-not-loading
- https://stackoverflow.com/questions/65040931/hugo-failed-to-find-a-valid-digest-in-the-integrity-attribute-for-resource
- https://blog.gerardbeckerleg.com/posts/hugo-failed-to-find-a-valid-digest-in-the-integrity-attribute-for-resource/
---
## Bundling Custom css with theme's assets
- For adding custom css to be bundled inside one minimized css
Create folder in yout project directory as
```
.(site root)
├── hugo.yaml
├── content/
├── theme/hugo-PaperMod/
└── assets/
└── css/
└── extended/ <---
├── custom_css1.css <---
└── any_name.css <---
```
All `css` files inside `assets/css/extended` will be bundled !
**Note**: blank.css is just the placeholder so that it doesn't break the theme when no files are present under `assets/css/extended`
Linked Issues:
- [Papermod Theme: How to add custom CSS?](https://discourse.gohugo.io/t/papermod-theme-how-to-add-custom-css/30165)
---
## Custom Head / Footer
Custom css/js can be added by way mentioned below.
```
.(site root)
├── hugo.yaml
├── content/
├── theme/hugo-PaperMod/
└── layouts
├── partials
│ ├── comments.html
│ ├── extend_footer.html <---
│ └── extend_head.html <---
└── robots.txt
```
Create a html page in directory structure as shown above.
Contents of `extend_head.html` will be added to `head` of page.
and contents of `extend_footer.html` will be added to bottom of page.
---
## Add menu to site
You can add menu entries which will appear in the header of every page.
To do so, add a `menu` section to your site's `hugo.yaml`:
```yml {linenos=true}
menu:
main:
- identifier: categories
name: categories
url: /categories/
weight: 10
- identifier: tags
name: tags
url: /tags/
weight: 20
- identifier: example
name: example.org
url: https://example.org
weight: 30
```
`name` controls what will be displayed for the menu entry.
`url` sets the URL that the entry points to.
`weight` is used to control the positioning of entries.
For more information on menus, see the [Hugo wiki page](https://gohugo.io/content-management/menus/).
---
## Pin a Post
Post can be pinned/ displayed top on the list by adding a `weight=<num>` var to page-variables
example:
```yml {linenos=true}
---
title: "My Important post"
date: 2020-09-15T11:30:03+00:00
weight: 1
---
```
```yml {linenos=true}
---
title: "My 2nd Important post"
date: 2020-09-15T11:30:03+00:00
weight: 2
---
```
---
## Adding Custom Favicon(s)
We support the following paths under `/static` directory
and can be added accordingly.
- `favicon.ico`
- `favicon-16x16.png`
- `favicon-32x32.png`
- `apple-touch-icon.png`
- `safari-pinned-tab.svg`
1. Favicon(s) can be generated by [Favicon.io](https://favicon.io) and can be simply put in `/static` folder.
2. Other way is to add favicon(s) NOT located in `/static` folder.
In site config add the following:
```yml {linenos=true}
params:
assets:
favicon: "<link / absolute url>"
favicon16x16: "<link / absolute url>"
favicon32x32: "<link / absolute url>"
apple_touch_icon: "<link / absolute url>"
safari_pinned_tab: "<link / absolute url>"
```
Note: `absolute url` means direct links to external resource: ex. `https://web.site/someimage.png`
```yml {linenos=true}
params:
assets:
favicon: "/favicon.ico"
favicon16x16: "/favicon-16x16.png"
favicon32x32: "/favicon-32x32.png"
apple_touch_icon: "/apple-touch-icon.png"
safari_pinned_tab: "/safari-pinned-tab.svg"
```
---
## Centering image in markdown
Add `#center` after image to center align an image
```md {linenos=true}
![name](path/to/image.png#center)
```
**When using [`figure`](https://gohugo.io/content-management/shortcodes/) shortcode**
use `align=center` to center image with captions
```md {linenos=true}
{{</* figure align=center src="image.jpg" */>}}
```
---
## Using Hugo's Syntax highlighter "chroma"
1. Disable Highlight.js in site `hugo.yaml`
```yml {linenos=true}
params:
assets:
disableHLJS: true
```
2. Set hugo's markdown styling in site `hugo.yaml`
```yml {linenos=true}
markup:
highlight:
# anchorLineNos: true
codeFences: true
guessSyntax: true
lineNos: true
# noClasses: false
style: monokai
```
3. If you want `lineNos: true`, the background won't be proper.
This will only work with `noClasses: false` or `pygmentsUseClasses: true`.
Read [Generate Syntax Highlighter CSS](https://gohugo.io/content-management/syntax-highlighting/#generate-syntax-highlighter-css)
Add the following to `assets/css/extended/custom.css`
```css {linenos=true}
.chroma {
background-color: unset;
}
```
More Info : [Configure Markup - Highlight](https://gohugo.io/getting-started/configuration-markup#highlight)
---
## Search not working ?
If you are using a CDN to server assets from a different domain, search would break
Why? Take a look at [fastsearch.js#L35](https://github.com/adityatelange/hugo-PaperMod/blob/fb4988cfb6d0d6e4e489f17d89f0fa618def3396/assets/js/fastsearch.js#L35).
We fetch the `index.json` (where the search function looks for the keywords typed) one level up of the website `search.min.js` is hosted on.
We have used this insted of assigning `baseURL` so as to work with multilingual websites ex. `example.com/fr/` and websites being placed under a subdirectory ex. `example.com/blog/`.
To fix for _single_ language websites hosting assets from CDN, this you may [override](#override-theme-template) [fastsearch.js#L35](https://github.com/adityatelange/hugo-PaperMod/blob/fb4988cfb6d0d6e4e489f17d89f0fa618def3396/assets/js/fastsearch.js#L35) and placing appropriate URL as in
```js {linenos=true}
xhr.open("GET", "https://example.com/index.json");
```
---
## References
- [Override a Hugo theme](https://zwbetz.com/override-a-hugo-theme/)
Binary file not shown.

Before

Width:  |  Height:  |  Size: 90 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 95 KiB

@@ -1,515 +0,0 @@
---
title: "Features / Mods"
summary: Learn About All Features in PaperMod
date: 2021-01-20
expiryDate: 2026-05-08
aliases: ["/papermod-features"]
tags: ["PaperMod", "Docs"]
author: ["Aditya Telange"]
social:
fediverse_creator: "@adityatelange@mastodon.social"
---
> This page is not updated anymore and is only kept for reference. Please refer to [Documentation](https://github.com/adityatelange/hugo-PaperMod/wiki/) for latest information.
### Intro
- **We'll be using `yml/yaml` format for all examples down below, I recommend using `yml` over `toml` as it is easier to read.**
- You can find any [YML to TOML](https://www.google.com/search?q=yml+to+toml) converters if necessary.
---
### Assets (js/css)
The following is enabled by default
- [minification](https://gohugo.io/hugo-pipes/minification/) - makes the assets size smallest as possible.
- [bundling](https://gohugo.io/hugo-pipes/bundling/) - bundles all the styles in one single asset
- [fingerprint/intergity](https://gohugo.io/hugo-pipes/fingerprint/) check.
---
### Default Theme light/dark/auto
```yml {linenos=true}
params:
# defaultTheme: light
# defaultTheme: dark
defaultTheme: auto # to switch between dark or light according to browser theme
```
</details>
---
### Theme Switch Toggle (enabled by default)
Shows icon besides title of page to change theme
To disable it :
```yml {linenos=true}
disableThemeToggle: true
```
You can refer following table for better understanding...
| `defaultTheme` | `disableThemeToggle` | checks local storage? | checks system theme? | Info |
| -------------- | -------------------- | --------------------- | -------------------- | ----------------- |
| `auto` | true | No | Yes | only system theme |
| | false | Yes (if not->2) | Yes (2) | _switch present_ |
| `dark` | true | No | No | force dark only |
| | false | Yes | No | _switch present_ |
| `light` | true | No | No | force light only |
| | false | Yes | No | _switch present_ |
---
### Archives Layout
Create a page with `archive.md` in `content` directory with following content
```shell
.
├── hugo.yaml
├── content/
│ ├── archives.md <--- Create archive.md here
│ └── posts/
├── static/
└── themes/
└── PaperMod/
```
and add the following to it
```yml
---
title: "Archive"
layout: "archives"
url: "/archives/"
summary: archives
---
```
**Note:** Archives Layout does not support Multilingual Month Translations.
ex: [archives.md](https://raw.githubusercontent.com/adityatelange/hugo-PaperMod/exampleSite/content/archives.md)
---
### Regular Mode (default-mode)
![regular](images/regular.jpg)
---
### Home-Info Mode
![homeinfo](images/homeinfo.jpg)
Use 1st entry as some Information
add following to config file
```yml
params:
homeInfoParams:
Title: Hi there wave
Content: Can be Info, links, about...
socialIcons: # optional
- name: "<platform>"
url: "<link>"
- name: "<platform 2>"
url: "<link2>"
```
---
### Profile Mode
![profile](https://raw.githubusercontent.com/adityatelange/hugo-PaperMod/exampleSite/content/posts/papermod/papermod-features/images/profile.jpg)
Shows Index/Home page as Full Page with Social Links and Image
add following to config file
```yml {linenos=true}
params:
profileMode:
enabled: true
title: "<Title>" # optional default will be site title
subtitle: "This is subtitle"
imageUrl: "<image link>" # optional
imageTitle: "<title of image as alt>" # optional
imageWidth: 120 # custom size
imageHeight: 120 # custom size
buttons:
- name: Archive
url: "/archive"
- name: Github
url: "https://github.com/"
socialIcons: # optional
- name: "<platform>"
url: "<link>"
- name: "<platform 2>"
url: "<link2>"
```
---
### Search Page
PaperMod uses [Fuse.js Basic](https://fusejs.io/getting-started/different-builds.html#explanation-of-different-builds) for search functionality
Add the following to site config, `hugo.yaml`
```yml {linenos=true,hl_lines=[5]}
outputs:
home:
- HTML
- RSS
- JSON # necessary for search
```
Create a page with `search.md` in `content` directory with following content
```yml {linenos=true,hl_lines=[3]}
---
title: "Search" # in any language you want
layout: "search" # necessary for search
# url: "/archive"
# description: "Description for Search"
summary: "search"
placeholder: "placeholder text in search input box"
---
```
To hide a particular page from being searched, add it in post's frontmatter
```yml {linenos=true}
searchHidden: true
```
ex: [search.md](https://raw.githubusercontent.com/adityatelange/hugo-PaperMod/exampleSite/content/search.md)
> Search Page also has Key bindings:
>
> - Arrow keys to move up/down the list
> - Enter key (return) or Right Arrow key to go to the highlighted page
> - Escape key to clear searchbox and results
For Multilingual use `search.<lang>.md` ex. `search.es.md`.
**Note:** Search will work only on current language, user is currently on !
**Customizing Fusejs Options**
Refer https://fusejs.io/api/options.html for Options, Add those as shown below.
```yml {linenos=true}
params:
fuseOpts:
isCaseSensitive: false
shouldSort: true
location: 0
distance: 1000
threshold: 0.4
minMatchCharLength: 0
# limit: 10 # refer: https://www.fusejs.io/api/methods.html#search
keys: ["title", "permalink", "summary", "content"]
```
---
### Draft Page indication
adds `[draft]` mark to indicate draft pages.
---
### Post Cover Image
In post's page-variables add :
```yml {linenos=true}
cover:
image: "<image path/url>"
# can also paste direct link from external site
# ex. https://i.ibb.co/K0HVPBd/paper-mod-profilemode.png
alt: "<alt text>"
caption: "<text>"
relative: false # To use relative path for cover image, used in hugo Page-bundles
```
When you include images in the [Page Bundle](https://gohugo.io/content-management/page-bundles/), multiple sizes of the image will automatically be provided using the HTML5 `srcset` field.
To reduce generation time and size of the site, you can disable this feature using
```yml {linenos=true}
params:
cover:
responsiveImages: false
```
To enable hyperlinks to the full image size on post pages, use
```yml {linenos=true}
params:
cover:
linkFullImages: true
```
---
### Share Buttons on post
Displays Share Buttons at Bottom of each post
to show share buttons add
```yml
params:
ShowShareButtons: true
```
---
### Show post reading time
Displays Reading Time (the estimated time, in minutes, it takes to read the content.)
To show reading time add
```yml
Params:
ShowReadingTime: true
```
---
### Show Table of Contents (Toc) on blog post
Displays ToC on blog-pages
To show ToC add following to page-variables
```yml
ShowToc: true
```
To keep Toc Open **by default** on a post add following to page-variables:
```yml
TocOpen: true
```
---
### BreadCrumb Navigation
Adds BreadCrumb Navigation above Post's Title to show subsections and Navigation to Home
```yml
params:
ShowBreadCrumbs: true
```
Can be diabled for particular page's front-matter
```yml
---
ShowBreadCrumbs: false
---
```
---
### Edit Link for Posts
Add a button to suggest changes by using the file path of the post to link to a edit destination.
For site config use:
```yml
Params:
editPost:
URL: "https://github.com/<path_to_repo>/content"
Text: "Suggest Changes" # edit text
appendFilePath: true # to append file path to Edit link
```
Can be modified for individual pages
```yml
---
editPost:
URL: "https://github.com/<path_to_repo>/content"
Text: "Suggest Changes" # edit text
appendFilePath: true # to append file path to Edit link
---
```
The example above would yield the following link for the post file `posts/post-name.md`:
`https://github.com/<path_to_repo>/content/posts/post-name.md`
| Parameter | Required | Default Value |
| ------------------------- | -------- | ------------- |
| `editPost.URL` | true | - |
| `editPost.appendFilePath` | false | `false` |
| `editPost.Text` | false | `Edit` |
Since the link generated is a regular HTML anchor tag `<a href=...>`, you can
also use other URL schemas like `mailto://`, e.g.
`URL: "mailto://mail@example.com?subject=Suggesting changes for "`
---
### Other Posts suggestion below a post
Adds a Previous / Next post suggestion under a single post
```yml
params:
ShowPostNavLinks: true
```
---
### Code Copy Button
Adds a `copy` button in code block to copy the code it contains
```yml
params:
ShowCodeCopyButtons: true
```
---
### Multiple Authors
To Use multiple authors for a post, in post-variables:
```yml
---
author: ["Me", "You"]
---
```
To use Multiple Authors Site-wide, in `hugo.yaml`:
```yml
params:
author: ["Me", "You"]
```
---
### Comments
to add comments, create a html file
`layouts/partials/comments.html`
and paste code provided by your comments provider
also in config add this
```yml
params:
comments: true
```
read more about this [hugo-comments](https://gohugo.io/content-management/comments/)
---
### AccessKeys
```text
c - ToC Open/Close
g - Go To Top
h - Home (according to current lang)
t - Theme toggle
/ - Jumps to search page if in menu
```
[What's AccessKeys ?](https://www.w3schools.com/tags/att_global_accesskey.asp)
---
### Enhanced SEO
**Enabled only when `env: production`**
- [Rich Results/Snippets Support](https://support.google.com/webmasters/answer/7506797?hl=en)
#### Twitter Cards Support
- The Twitter Cards metadata, except `twitter:image` should not require
additional configuration, since it is generated from metadata that
you should already have (for instance the page title and description).
- The `twitter:image` uses the [Post Cover Image](#post-cover-image), if present.
- In the absence of a cover images, the first image from the `images`
frontmatter (a list) is used.
```yaml
images:
- image_01.png
- image_02.png
```
- Finally, if neither of those are provided, `twitter:image` comes from the first
[Page Bundle](https://gohugo.io/content-management/page-bundles/)
image with `feature` in the name, with a fallback to the first image with
`cover` or `thumbnail` in the name.
#### OpenGraph support
- The OpenGraph metadata, except `og:image` should not require
additional configuration, since it is generated from metadata that
you should already have (for instance the page title and description).
- The `og:image` uses the [Post Cover Image](#post-cover-image), if present.
- In the absence of a cover images, the first image from the `images`
frontmatter (a list) is used.
```yaml
images:
- image_01.png
- image_02.png
```
- Finally, if neither of those are provided, `og:image` comes from the first
[Page Bundle](https://gohugo.io/content-management/page-bundles/)
image with `feature` in the name, with a fallback to the first image with
`cover` or `thumbnail` in the name.
- For pages, you can also add audio (using frontmatter `audio: filename.ext`) and/or
videos.
```yaml
videos:
- filename01.mov
- filename02.avi
```
---
### Multilingual Support
---
### Misc
#### Scroll-Bar themed (by default)
#### Smooth Scroll between in-page links (by default)
#### Scroll-to-Top Button (by default)
```text
Displays a Scroll-to-Top button in right-bottom corner
```
#### Google Analytics integration
#### Syntax highlighting
#### RSS feeds
-133
View File
@@ -1,133 +0,0 @@
---
title: "Social-Icons / Share-Icons"
summary: List of all Icons supported by PaperMod
date: 2021-01-20
expiryDate: 2026-05-08
aliases: ["/papermod-icons"]
tags: ["PaperMod", "Docs"]
author: ["Aditya Telange"]
draft: true
social:
fediverse_creator: "@adityatelange@mastodon.social"
---
> This page is not updated anymore and is only kept for reference. Please refer to [Documentation](https://github.com/adityatelange/hugo-PaperMod/wiki/) for latest information.
## Social Icons
| Name | Platform Link |
| --------------- | ------------------------------- |
| `123rf` | 123rf.com |
| `adobestock` | stock.adobe.com |
| `applemusic` | music.apple.com |
| `behance` | behance.net |
| `bilibili` | bilibili.com |
| `bitcoin` | - |
| `buymeacoffee` | buymeacoffee.com |
| `codepen` | codepen.io |
| `cryptohack` | cryptohack.org |
| `ctftime` | ctftime.org |
| `cv` | - |
| `deezer` | deezer.com |
| `dev` | dev.to |
| `discogs` | discogs.com |
| `discord` | discord.com |
| `dreamstime` | dreamstime.com |
| `dribbble` | dribbble.com |
| `email` | - |
| `facebook` | facebook.com |
| `flickr` | flickr.com |
| `freepik` | freepik.com |
| `gitea` | gitea.io |
| `github` | github.com |
| `gitlab` | gitlab.com |
| `goodreads` | goodreads.com |
| `googlescholar` | scholar.google.com |
| `guruShots` | gurushots.com |
| `hackerone` | hackerone.com |
| `hackerrank` | hackerrank.com |
| `hackthebox` | hackthebox.eu |
| `instagram` | instagram.com |
| `itchio` | itch.io |
| `kaggle` | - |
| `kakaotalk` | kakaocorp.com/service/KakaoTalk |
| `key` | - |
| `keybase` | keybase.io |
| `kofi` | ko-fi.com |
| `komoot` | - |
| `lastfm` | last.fm |
| `letterboxd` | - |
| `liberapay` | liberapay.com |
| `linkedin` | linkedin.com |
| `mastodon` | mastodon.social |
| `matrix` | matrix.org |
| `medium` | medium.com |
| `monero` | - |
| `mixcloud` | mixcloud.com |
| `nostr` | nostr.org |
| `nuget` | nuget.org |
| `paypal` | paypal.com |
| `peertube` | - |
| `pgp` | - |
| `phone` | - |
| `ploywork` | ploywork.com |
| `qq` | qq.com |
| `reddit` | reddit.com |
| `researchgate` | researchgate.net |
| `rss` | - |
| `serverfault` | serverfault.com |
| `soundcloud` | soundcloud.com |
| `shutterstock` | shutterstock.com |
| `slack` | slack.com |
| `snapchat` | snapchat.com/add |
| `spotify` | spotify.com |
| `stackoverflow` | stackoverflow.com |
| `steam` | steampowered.com |
| `strava` | strava.com |
| `telegram` | telegram.org |
| `tiktok` | tiktok.com |
| `twitch` | twitch.tv |
| `twitter` | twitter.com |
| `unsplash` | unsplash.com |
| `x` | x.com |
| `xda` | xda-developers.com |
| `xing` | xing.com |
| `ycombinator` | ycombinator.com |
| `youtube` | youtube.com |
| `zcal` | zcal.co |
| `other` | - |
Usage :
```yml {linenos=true}
socialIcons:
- name: "kofi"
url: "https://kofi.com"
- name: "x"
url: "https://x.com"
```
---
## Share Icons
| Platform |
| ------------------------------------------------------------------- |
| `x` (also generates `#hashtags` from _tags_ linked with post) |
| `linkedin` |
| `reddit` |
| `facebook` |
| `whatsapp` |
| `telegram` |
Usage:
```yml {linenos=true}
params:
ShowShareButtons: true
```
```yml {linenos=true}
params:
ShareButtons: ["linkedin", "twitter"] # To customize which share buttons to be enabled on page
```
@@ -1,164 +0,0 @@
---
title: "PaperMod Installation Guide"
summary: "Step by step guide to install and update PaperMod in your Hugo site."
date: 2021-01-20
weight: 1
series: ["PaperMod"]
aliases: ["/papermod-installation"]
tags: ["PaperMod", "Docs"]
author: ["Aditya Telange"]
social:
fediverse_creator: "@adityatelange@mastodon.social"
---
> - **We'll be using `yml/yaml` format for all examples down below, it is recommend to use `yaml` over `toml` as it is easier to read.**
> - You can find any [YML to TOML](https://www.google.com/search?q=yml+to+toml) converters if needed.
---
## Getting Started 🚀
1. **Follow [Hugo Docs's - Quick Start](https://gohugo.io/getting-started/quick-start/) guide to install {{< inTextImg url="https://raw.githubusercontent.com/gohugoio/hugoDocs/master/static/img/hugo-logo.png" height="14" >}}.**
<br>(Make sure you install [**Hugo v0.146.0 +**](https://github.com/gohugoio/hugo/releases) as PaperMod uses some of the latest features of Hugo. You can check your Hugo version by running `hugo version` in terminal.)
2. **Create a new {{< inTextImg url="https://raw.githubusercontent.com/gohugoio/hugoDocs/master/static/img/hugo-logo.png" height="14" >}} site**
```bash
hugo new site MyFreshWebsite --format yaml
# replace MyFreshWebsite with name of your website
```
Note:
- Older versions of Hugo may not support `--format yaml`
- Read more here about [Hugo Docs's - hugo new site command](https://gohugo.io/commands/hugo_new_site/#synopsis)
3. **Installing/Updating PaperMod**
- Themes reside in `MyFreshWebsite/themes` directory.
- PaperMod will be installed in `MyFreshWebsite/themes/PaperMod`
> {{< collapse summary="**Expand Method 1 - Git Clone**" >}}
**INSTALL** : Inside the folder of your Hugo site `MyFreshWebsite`, run:
```bash
git clone https://github.com/adityatelange/hugo-PaperMod themes/PaperMod --depth=1
```
You may use ` --branch v7.0` to end of above command if you want to stick to specific release.
**UPDATE**: Inside the folder of your Hugo site `MyFreshWebsite`, run:
```bash
cd themes/PaperMod
git pull
```
{{</ collapse >}}
> {{< collapse summary="**Expand Method 2 - Git Submodule (recomended)**" >}}
**INSTALL** : Inside the folder of your Hugo site `MyFreshWebsite`, run:
```bash
git submodule add --depth=1 https://github.com/adityatelange/hugo-PaperMod.git themes/PaperMod
git submodule update --init --recursive # needed when you reclone your repo (submodules may not get cloned automatically)
```
You may use ` --branch v7.0` to end of above command if you want to stick to specific release.
Read more about git submodules [here](https://www.atlassian.com/git/tutorials/git-submodule).
**UPDATE**: Inside the folder of your Hugo site `MyFreshWebsite`, run:
```bash
git submodule update --remote --merge
```
{{</ collapse >}}
> {{< collapse summary="**Expand Method 3 - Download an unzip**" >}}
Download PaperMod source as Zip from Github Releases and extract in your themes directory at `MyFreshWebsite/themes/PaperMod`
Direct Links:
- [Master Branch (Latest)](https://github.com/adityatelange/hugo-PaperMod/archive/master.zip)
- [v7.0](https://github.com/adityatelange/hugo-PaperMod/archive/v7.0.zip)
- [v6.0](https://github.com/adityatelange/hugo-PaperMod/archive/v6.0.zip)
- [v5.0](https://github.com/adityatelange/hugo-PaperMod/archive/v5.0.zip)
- [v4.0](https://github.com/adityatelange/hugo-PaperMod/archive/v4.0.zip)
- [v3.0](https://github.com/adityatelange/hugo-PaperMod/archive/v3.0.zip)
- [v2.0](https://github.com/adityatelange/hugo-PaperMod/archive/v2.0.zip)
- [v1.0](https://github.com/adityatelange/hugo-PaperMod/archive/v1.0.zip)
{{</ collapse >}}
> {{< collapse summary="**Expand Method 4 - Hugo module**" >}}
**INSTALL** :
- Install [Go programming language](https://go.dev/doc/install) in your operating system.
- Intialize your own hugo mod
```bash
hugo mod init YOUR_OWN_GIT_REPOSITORY
```
- Add PaperMod in your `hugo.yaml` file
```go {linenos=true}
module:
imports:
- path: github.com/adityatelange/hugo-PaperMod
```
**UPDATE**:
```bash
hugo mod get -u
```
Read more : [Hugo Docs's - HUGO MODULES](https://gohugo.io/hugo-modules/use-modules/)
{{</ collapse >}}
4. **Finally set theme as PaperMod in your site config**
In `hugo.yaml` add:
```yml {linenos=true}
theme: ["PaperMod"]
```
### Next up - Customizing PaperMod to suit your preferences 🎨
- Your site will be blank after you set up for the very first time.
- You may go through this website's source code - [PaperMod's exampleSite's source](https://github.com/adityatelange/hugo-PaperMod/tree/exampleSite)
- You can also refer to the following wiki pages for detailed documentation on all features and configuration options.
| Topic | Description |
| ------------------------------------------------------------------------------------------------- | ----------------------------------------------- |
| **[Installation guide](https://github.com/adityatelange/hugo-PaperMod/wiki/Installation)** | Detailed installation and update instructions |
| **[Features wiki page](https://github.com/adityatelange/hugo-PaperMod/wiki/Features)** | In-depth explanations of all features |
| **[FAQ wiki](https://github.com/adityatelange/hugo-PaperMod/wiki/FAQs)** | Common questions and configuration walkthroughs |
| **[Icons wiki](https://github.com/adityatelange/hugo-PaperMod/wiki/Icons)** | Documentation for social icons and share icons |
| **[Variables wiki](https://github.com/adityatelange/hugo-PaperMod/wiki/Variables)** | List of all available template variables |
| **[Overiding templates](https://github.com/adityatelange/hugo-PaperMod/wiki/Template_Overrides)** | Guide to customizing templates without forking |
| **[Releases](https://github.com/adityatelange/hugo-PaperMod/releases)** | Detailed history of releases |
---
## Support 🫶
- Star 🌟 PaperMod's [Github repository](https://github.com/adityatelange/hugo-PaperMod).
- Help spread the word about PaperMod by [sharing it on social media](https://x.com/intent/tweet/?text=Checkout%20Hugo%20PaperMod%20%E2%9C%A8%0AA%20fast,%20clean,%20responsive%20Hugo%20theme.&url=https://github.com/adityatelange/hugo-PaperMod&hashtags=Hugo,PaperMod) and recommending it to your friends. 🗣️
- You can also sponsor 🏅 on [Github Sponsors](https://github.com/sponsors/adityatelange) / [Ko-Fi](https://ko-fi.com/adityatelange).
---
## Videos featuring PaperMod
You can go through few videos which are available on YouTube for getting to know the creator's thoughts as well as the setup process.
▶️ [Curated list of videos about PaperMod](https://youtube.com/playlist?list=PLeiDFxcsdhUrzkK5Jg9IZyiTsIMvXxKZP)
---
@@ -1,205 +0,0 @@
---
title: "Variables | Front Matter"
summary: List of Front Matter variables used by PaperMod
date: 2021-01-20
expiryDate: 2026-05-08
tags: ["PaperMod", "Docs"]
author: ["Aditya Telange"]
draft: true
social:
fediverse_creator: "@adityatelange@mastodon.social"
---
> This page is not updated anymore and is only kept for reference. Please refer to [Documentation](https://github.com/adityatelange/hugo-PaperMod/wiki/) for latest information.
**Below are variables used with this theme...**
---
### Site Variables under `Params`
| name | type | example | Description |
| -------------------------------------- | ------------- | ------------------------- | ----------------------------------------------------------------------------------------- |
| `env` | string | 'production' | To set env to production |
| `title` | string | 'My Blog' | To set title |
| `description` | string | 'This is a blog of mine' | To set site description |
| `author` | string \|list | 'Me' \| ['Me','You'] | To show multiple Authors |
| `images` | string | 'myimage.png' | Link or path of image for opengraph, twitter-cards |
| `keywords` | list | [blog, page] | Add keywords for Home page |
| `DateFormat` | string | "January 2, 2006" | The format of date strings in the website. [Details](https://gohugo.io/functions/format/) |
| `languageAltTitle` | string | "English" | Alternate title in Multilingual Mode |
| `ShowReadingTime` | boolean | true \| false | To show read time in post meta |
| `ShowShareButtons` | boolean | true \| false | To show/hide share buttons under post |
| `ShowCodeCopyButtons` | boolean | true \| false | To show/hide Code Copy button |
| `ShowFullTextinRSS` | boolean | true \| false | To show Content in RSS feed |
| `defaultTheme` | string | light \| dark \| auto | To set default theme |
| `disableThemeToggle` | boolean | true \| false | To disable theme toggle icon shown besides label |
| `disableSpecial1stPost` | boolean | true \| false | To disable no-card special appearance of 1st post |
| `disableScrollToTop` | boolean | true \| false | To disable ScrollToTop button |
| `disableAnchoredHeadings` | boolean | true \| false | To disable Anchored Headings |
| `hideMeta` | boolean | true \| false | To Hide meta elements : date, read-time, author and available-translations for page |
| `hideSummary` | boolean | true \| false | To Hide summary being shown in list pages |
| `showtoc` | boolean | true \| false | To show/hide Table of Contents |
| `tocopen` | boolean | true \| false | To keep open ToC by default on page load |
| `ShowPostNavLinks` | boolean | true \| false | Show Previous and Next Posts below a Post |
| `ShowBreadCrumbs` | boolean | true \| false | Show BreadCrumb Navigation above single post/page |
| `ShareButtons` | list | ["linkedin", "x"] | To customize which share buttons to be enabled on page |
| `ShowWordCount` | boolean | true \| false | To word count to metadata |
| `ShowRssButtonInSectionTermList` | boolean | true \| false | To show RSS icon in Section, Term and List pages |
| `UseHugoToc` | boolean | true \| false | To use Hugo's default Toc instead of custom |
| `comments` | boolean | true \| false | To show/hide comments |
| `hideFooter` | boolean | true \| false | To Hide Footer Text om the end of page |
| `CanonicalLinkText` | string | 'Originally published at' | To show text before canonical URL's hostname |
| `displayFullLangName` | boolean | true \| false | To show `languageName` under a language in Language switch header |
| `analytics.google.SiteVerificationTag` | string | "XYZabc" | Site Verification Tag for Google Analytics |
| `analytics.bing.SiteVerificationTag` | string | "XYZabc" | Site Verification Tag for Bing |
| `analytics.yandex.SiteVerificationTag` | string | "XYZabc" | Site Verification Tag for Yandex |
| `schema` | - | - | [Details](#schema) |
| `fuseOpts` | - | - | [Details](#fuseopts) |
| `socialIcons` | - | - | [Details](#socialicons) |
| `label` | - | - | [Details](#label) |
| `assets` | - | - | [Details](#assets) |
| `cover` | - | - | [Details](#cover) |
| `profileMode` | - | - | [Details](#profilemode) |
| `editPost` | - | - | [Details](#editpost) |
### Site Variables
| name | type | example | Description |
| ----------- | ------ | ------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------- |
| `copyright` | string | `**[example.site](https://example.site)**` | This is [HUGO's site variable](https://gohugo.io/variables/site/#site-variables-list), which can also render markdown content |
#### label
| name | type | example | Description |
| ------------------ | ------- | ----------------------- | ------------------------------------------------ |
| `label.text` | string | 'Home' | To display different label text other than title |
| `label.icon` | string | '/apple-touch-icon.png' | To display a logo image in label |
| `label.iconHeight` | integer | 35 | To set size of label logo image |
#### profileMode
| name | type | example | Description |
| ------------------------- | ------- | ---------------------------------------------- | ---------------------------------------------------- |
| `profileMode.enabled` | boolean | true \| false | For enabling profileMode, needs to be explicitly set |
| `profileMode.title` | string | "Title" | Title |
| `profileMode.subtitle` | string | "subtitle here" | Subtitle |
| `profileMode.imageUrl` | string | "image.png" \| "https://example.com/image.jpg" | Image URL or Link |
| `profileMode.imageWidth ` | string | "150" | Width of image |
| `profileMode.imageHeight` | string | "150" | Height of image |
| `profileMode.imageTitle` | string | "This image is a picture of .." | Title of image |
| `profileMode.buttons` | - | - | [Details](#profilemodebuttons) |
##### profileMode.buttons
```yml
profileMode:
buttons:
- name: Archive
url: "/archive"
- name: Github
url: "https://github.com/"
```
#### assets
| name | type | example | Description |
| -------------------------------- | ------- | ------------- | -------------------------------------------- |
| `assets.favicon` | string | 'icon.ico' | To set favicon, can be path or external link |
| `assets.disableHLJS` | boolean | true \| false | To disable Highlight.js loading |
| `assets.disableFingerprinting` | boolean | true \| false | To disable Sub-Resource integrity for assets |
| `assets.theme_color` | string | '#color' | To set custom meta theme-color |
| `assets.msapplication_TileColor` | string | '#color' | To set custom msapplication_TileColor |
#### cover
| name | type | example | Description |
| ------------------------ | ------- | ------------- | ------------------------------------------------------- |
| `cover.linkFullImages` | boolean | true \| false | To open full size cover images on click on cover |
| `cover.responsiveImages` | boolean | true \| false | To enable/disable generation of responsive cover images |
| `cover.hidden` | boolean | true \| false | To hide everywhere but not in structured data |
| `cover.hiddenInList` | boolean | true \| false | To hide on list pages and home |
| `cover.hiddenInSingle ` | boolean | true \| false | To hide on list pages and home |
#### schema
| name | type | example | Description |
| ---------------------- | ------ | ---------------- | ----------------------------- |
| `schema.publisherType` | string | 'Organization' | https://schema.org/publisher |
| `schema.sameAs` | list | ["URL1", "URL2"] | Set https://schema.org/sameAs |
#### fuseOpts
Refer: https://fusejs.io/api/options.html
```yml
fuseOpts:
isCaseSensitive: false
shouldSort: true
location: 0
distance: 1000
threshold: 0.4
minMatchCharLength: 0
limit: 10 # refer: https://www.fusejs.io/api/methods.html#search
keys: ["title", "permalink", "summary", "content"] ## can be less but not more than shown in list
```
#### socialIcons
```yml
socialIcons:
- name: "<platform>"
url: "<link>"
- name: "<platform 2>"
url: "<link2>"
```
#### editPost
```yml
editPost:
URL: "https://github.com/<path_to_repo>/content"
Text: "Suggest Changes" # edit text
appendFilePath: true # to append file path to Edit link
```
> Note: Same format is being used by Page Variables
---
### Page Variables
| Name | Type | Example | Description |
| -------------------------------- | ------------- | ------------------------------- | ----------------------------------------------------------------------------------- |
| `showtoc` | boolean | true \| false | To show/hide Table of Contents |
| `tocopen` | boolean | true \| false | To keep open ToC by default on page load |
| `hidemeta` | boolean | true \| false | To Hide meta elements : date, read-time, author and available-translations for page |
| `comments` | boolean | true \| false | To show/hide comments |
| `description` | string | 'description text' | Show Post Description under Title |
| `canonicalURL` | string | "https://canonical.url/to/page" | To add canonical URL to posts |
| `ShowCanonicalLink` | boolean | true \| false | To show canonical URL's hostname |
| `CanonicalLinkText` | string | 'Originally published at' | To show text before canonical URL's hostname |
| `disableShare` | boolean | true \| false | To hide/show share icons under a page |
| `disableHLJS` | boolean | true \| false | To disable Highlight.js loading |
| `disableAnchoredHeadings` | boolean | true \| false | To disable Anchored Headings |
| `searchHidden` | boolean | true \| false | Hide page from search |
| `hideSummary` | boolean | true \| false | To Hide summary being shown in list pages |
| `hideFooter` | boolean | true \| false | To Hide Footer Text om the end of page |
| `ShowReadingTime` | boolean | true \| false | To show read time in post meta |
| `ShowBreadCrumbs` | boolean | true \| false | Show BreadCrumb Navigation above single post/page |
| `ShowPostNavLinks` | boolean | true \| false | Show Previous and Next Posts below a Post |
| `ShowCodeCopyButtons` | boolean | true \| false | To show/hide Code Copy button |
| `author` | string \|list | 'Me' \| ['Me','You'] | To show multiple Authors |
| `cover.image` | string | 'featured.jpg' | To add a cover image |
| `cover.caption ` | string | 'caption for image' | To add caption to cover image |
| `cover.alt` | string | 'this is cover image' | Alternate text to show if image doesn't load/show up |
| `cover.relative` | boolean | true \| false | To use relative path for cover image, used in hugo Page-bundles |
| `cover.responsiveImages` | boolean | true \| false | To enable/disable generation of responsive cover images |
| `cover.hidden` | boolean | true \| false | To hide on current single page |
| `weight ` | integer | 5 | To set page order or to pin a post to Top of list |
| `ShareButtons` | list | ["linkedin", "x"] | To customize which share buttons to be enabled on page |
| `ShowWordCount` | boolean | true \| false | To word count to metadata |
| `ShowRssButtonInSectionTermList` | boolean | true \| false | To show RSS icon in Section, Term and List pages |
| `UseHugoToc` | boolean | true \| false | To use Hugo's default Toc instead of custom |
| `robotsNoIndex` | boolean | true \| false | To hide a particular page from indexing by search engines |
| `hiddenInHomelist` | boolean | true \| false | To Hide specific being shown in Home pages |
-36
View File
@@ -1,36 +0,0 @@
---
author: ["Hugo Authors", "PaperMod Contributors"]
title: "Rich Content and Shortcodes"
date: "2019-03-10"
description: "A brief description of Hugo Shortcodes"
tags: ["markdown", "shortcodes", "privacy"]
ShowToc: true
---
Hugo ships with several [Built-in Shortcodes](https://gohugo.io/content-management/shortcodes/#use-hugos-built-in-shortcodes) for rich content, along with a [Privacy Config](https://gohugo.io/about/hugo-and-gdpr/) and a set of Simple Shortcodes that enable static and no-JS versions of various social media embeds.
<!--more-->
---
## YouTube
{{< youtube hjD9jTi_DQ4 >}}
---
## Vimeo Shortcode
{{< vimeo 152985022 >}}
---
## X Shortcode
{{< x user="GoHugoIO" id="1305090583917203457" >}}
---
## Instagram Shortcode
{{< instagram DBHw3t6A6a4 >}}
-4
View File
@@ -1,4 +0,0 @@
---
title: "SearchL2"
layout: "search"
---
-5
View File
@@ -1,5 +0,0 @@
---
title: "Search"
placeholder: Search demo site with full text fuzzy search ...
layout: "search"
---
+5
View File
@@ -0,0 +1,5 @@
- id: prev_page
translation: "Vorherige Seite"
- id: next_page
translation: "Nächste Seite"
+5
View File
@@ -0,0 +1,5 @@
- id: prev_page
translation: "Prev Page"
- id: next_page
translation: "Next Page"
+5
View File
@@ -0,0 +1,5 @@
- id: prev_page
translation: "Página siguiente"
- id: next_page
translation: "Página anterior"
+5
View File
@@ -0,0 +1,5 @@
- id: prev_page
translation: "पिछला पृष्ठ"
- id: next_page
translation: "अगला पृष्ठ"
+5
View File
@@ -0,0 +1,5 @@
- id: prev_page
translation: "前のページ"
- id: next_page
translation: "次のページ"
+5
View File
@@ -0,0 +1,5 @@
- id: prev_page
translation: "이전 페이지"
- id: next_page
translation: "다음 페이지"
+5
View File
@@ -0,0 +1,5 @@
- id: prev_page
translation: "Сюда"
- id: next_page
translation: "Туда"
+5
View File
@@ -0,0 +1,5 @@
- id: prev_page
translation: "上一页"
- id: next_page
translation: "下一页"
Binary file not shown.

After

Width:  |  Height:  |  Size: 124 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

+3
View File
@@ -0,0 +1,3 @@
{{ define "main" }}
<div class="not-found">404</div>
{{ end }}{{/* end main */}}
+38
View File
@@ -0,0 +1,38 @@
{{ define "main" }}
<div class="archive">
<header class="page-header"><h1>{{ .Title }}</h1></header>
{{ $pages := where site.RegularPages "Type" "in" site.Params.mainSections }}
{{ range $pages.GroupByPublishDate "2006" }}
{{ if ne .Key "0001" }}
<div class="archive-year">
<h2 class="archive-year-header">{{ replace .Key "0001" "" }}</h2>
{{ range .Pages.GroupByDate "January" }}
<div class="archive-month">
<h3 class="archive-month-header">{{ .Key }}</h3>
<div class="archive-posts">
{{ range .Pages }}
{{ if eq .Kind "page" }}
<div class="archive-entry">
<h3 class="archive-entry-title">
{{ .Title | markdownify }}
</h3>
<div class="archive-meta">
{{- if or .Params.author .Site.Params.author }}{{- .Params.author | default .Site.Params.author }} ·
{{ end }}
{{ if $.Site.Params.ShowReadingTime }}{{ .ReadingTime }}{{ i18n "read_time" | default "min read" }}
· {{ end }}
{{- .Date.Format "January 2, 2006" -}}
</div>
<a class="entry-link" aria-label="post link to {{ .Title | plainify }}" href="{{ .Permalink }}"></a>
</div>
{{ end }}
{{ end }}
</div>
</div>
{{ end }}
</div>
{{ end }}
{{ end }}
</div>
{{ end }}{{/* end main */}}
+19
View File
@@ -0,0 +1,19 @@
<!DOCTYPE html>
<html lang="{{ .Site.Language }}">
<head>
{{- partial "head.html" . }}
</head>
<body
class="{{ if (and (eq .Kind `page` ) (ne .Layout `archives`)) }}single{{ else }}list{{ if .IsHome }} home {{ end }}{{ end }}{{ if eq $.Site.Params.defaultTheme `dark` }} dark {{ end }}"
id="top">
{{- partialCached "header.html" . }}
<main class="main">
{{- block "main" . }}
{{end }}
</main>
{{- partialCached "footer.html" . }}
</body>
</html>
+69
View File
@@ -0,0 +1,69 @@
{{ define "main" }}
{{ if (and .Site.Params.profileMode.enabled .IsHome) }}
{{- partial "indexProfile.html" . }}
{{else}} {{/* if not profileMode */}}
{{- if not .IsHome | and .Title }}
<header class="page-header">
<h1>{{ .Title }}</h1>
</header>
{{ end }}
{{ $pages := .RegularPages }}
{{ if .IsHome }}
{{ $pages = where site.RegularPages "Type" "in" site.Params.mainSections }}
{{end}}
{{ $paginator := .Paginate $pages }}
{{- range $index, $page := $paginator.Pages }}
{{- $class := "post-entry" }}
{{- if (and $.IsHome (eq $paginator.PageNumber 1) (eq $index 0)) }}
{{- if .Site.Params.homeInfoParams }}
{{- partial "homeInfo.html" . }}
{{else}}
{{- $class = "first-entry" }}
{{ end }}
{{- else if .Data.Term }}
{{- $class = "post-entry tag-entry" }}
{{- end }}
<article class="{{ $class }}">
<header class="entry-header">
<h2>
{{ .Title }}
{{- if .Draft }}<div class="entry-isdraft"><sup>&nbsp&nbsp[draft]</sup></div>{{- end }}
</h2>
</header>
{{if (ne .Site.Params.hideSummary true)}}
<section class="entry-content">
<p>{{ .Summary | plainify | htmlUnescape }}...</p>
</section>
{{ end }}
<footer class="entry-footer">
<time>{{ .Date.Format "January 2, 2006" }}</time>
{{ if $.Site.Params.ShowReadingTime }} .
{{ .ReadingTime }}{{ i18n "read_time" | default "min read" }}{{ end }}
{{ if or .Params.author .Site.Params.author }} . {{ .Params.author | default .Site.Params.author }}{{ end }}
</footer>
<a class="entry-link" aria-label="post link to {{ .Title | plainify }}" href="{{ .Permalink }}"></a>
</article>
{{- end }}
{{- if gt $paginator.TotalPages 1 }}
<footer class="page-footer">
<nav class="pagination">
{{- if $paginator.HasPrev }}
<a class="prev" href="{{ $paginator.Prev.URL }}">« {{ i18n "prev_page" }}</a>
{{- end }}
{{- if $paginator.HasNext }}
<a class="next" href="{{ $paginator.Next.URL }}">{{ i18n "next_page" }} »</a>
{{- end }}
</nav>
</footer>
{{- end }}
{{end}}{{/* end profileMode */}}
{{ end }}{{/* end main */}}
+49
View File
@@ -0,0 +1,49 @@
{{ define "main" }}
<article class="post-single">
<header class="post-header">
<h1 class="post-title">
{{ .Title }}
{{- if .Draft }}<div class="entry-isdraft"><sup>&nbsp;&nbsp;[draft]</sup></div>{{- end }}
</h1>
{{ if .Params.hideMeta }}{{ else }}
<div class="post-meta">
{{- if or .Params.author .Site.Params.author }}
{{- .Params.author | default .Site.Params.author }} · {{ end }}
{{- .Date.Format "January 2, 2006" -}}
</div>
{{end}}
</header>
{{ if .Params.ShowToc }}
<div class="toc">
<details>
<summary>
<div class="details">Table of Contents</div>
</summary>
<blockquote>
{{ .TableOfContents }}
</blockquote>
</details>
</div>
{{ end }}
<div class="post-content">{{ .Content }}</div>
<footer class="post-footer">
{{- if .Params.tags }}
<ul class="post-tags">
{{- range .Params.tags }}
{{- $href := print (absLangURL "tags/") (urlize .) }}
<li><a href="{{ $href }}">{{ . }}</a></li>
{{- end }}
</ul>
{{- end }}
{{ if (and .Site.Params.ShowShareButtons (ne .Params.disableShare true) ) }}
{{ partial "share-icons.html" . }}
{{ end }}
</footer>
{{- if $.Site.Params.comments }}
{{- partial "comments.html" . }}
{{- end }}
</article>
{{ end }}{{/* end main */}}
+21
View File
@@ -0,0 +1,21 @@
{{ define "main" }}
{{- if .Title }}
<header class="page-header">
<h1>{{ .Title }}</h1>
</header>
{{ end }}
<ul class="terms-tags">
{{ $type := .Type }}
{{ range $key, $value := .Data.Terms.Alphabetical }}
{{ $name := .Name }}
{{ $count := .Count }}
{{ with $.Site.GetPage (printf "/%s/%s" $type $name) }}
<li>
<a href="{{ .Permalink }}">{{ .Name }} <sup><b><sup>{{ $count }}</sup></b></sup> </a>
</li>
{{ end }}
{{ end }}
</ul>
{{ end }}{{/* end main */}}
+5
View File
@@ -0,0 +1,5 @@
<!-- Comments area start -->
<!--
to add comments read => https://gohugo.io/content-management/comments/
-->
<!-- Comments area end -->
+47
View File
@@ -0,0 +1,47 @@
<footer class="footer">
<span>&copy; {{ now.Year }} <a href="{{ "" | absLangURL }}">{{ .Site.Title }}</a></span>
<span>&middot;</span>
<span>Powered by <a href="https://gohugo.io/" rel="noopener" target="_blank">Hugo️️</a>️</span>
<span>&middot;</span>
<span>Theme️ <a href="https://github.com/adityatelange/hugo-PaperMod" rel="noopener"
target="_blank">PaperMod</a></span>
</footer>
<a href="#top" aria-label="go to top">
<button class="top-link" id="top-link" type="button">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 6">
<path d="M12 6H0l6-6z" /></svg>
</button>
</a>
{{ $highlight := resources.Get "js/highlight.min.js" | minify | fingerprint}}
<script src="{{ $highlight.Permalink }}" integrity="{{ $highlight.Data.Integrity }}"></script>
<script>
window.onload = function () {
if (localStorage.getItem("menu-scroll-position")) {
document.getElementById('menu').scrollLeft = localStorage.getItem("menu-scroll-position");
}
}
hljs.initHighlightingOnLoad();
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener("click", function (e) {
e.preventDefault();
document.querySelector(this.getAttribute("href")).scrollIntoView({
behavior: "smooth"
});
});
});
var mybutton = document.getElementById("top-link");
window.onscroll = function () {
if (document.body.scrollTop > 800 || document.documentElement.scrollTop > 800) {
mybutton.style.visibility = "visible";
mybutton.style.opacity = "1";
} else {
mybutton.style.visibility = "hidden";
mybutton.style.opacity = "0";
}
};
function menu_on_scroll() {
localStorage.setItem("menu-scroll-position", document.getElementById('menu').scrollLeft);
}
</script>
+51
View File
@@ -0,0 +1,51 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Title -->
<title>{{ if .IsHome }}{{else}}{{ if .Title }}{{ .Title }} - {{ end }}{{end}}{{ .Site.Title }}</title>
<!-- Meta -->
{{- if eq .Kind "page" }}
<meta name="description" content="{{ .Summary }}">
<meta name="author" content="{{ .Params.author | default .Site.Params.author }}">
{{- else }}
<meta name="description" content="{{if .IsHome}}{{ .Site.Params.description }}{{else}}{{ .Title }}{{end}}">
<meta name="author" content="{{ .Site.Params.author }}">
{{- end }}
{{ if .Site.Params.analytics.google.SiteVerificationTag }}
<meta name="google-site-verification" content="{{ .Site.Params.analytics.google.SiteVerificationTag }}" />
{{end}}
<!-- Styles -->
{{ $anoldhope := resources.Get "css/an-old-hope.min.css" | minify }}
{{ $theme := resources.Get "css/theme-vars.css" | minify }}
{{ $reset := resources.Get "css/reset.css" | minify }}
{{ $header := resources.Get "css/header.css" | minify }}
{{ $main := resources.Get "css/main.css" | minify }}
{{ $postentry := resources.Get "css/post-entry.css" | minify }}
{{ $postsingle := resources.Get "css/post-single.css" | minify }}
{{ $terms := resources.Get "css/terms.css" | minify }}
{{ $archive := resources.Get "css/archive.css" | minify }}
{{ $footer := resources.Get "css/footer.css" | minify }}
{{ $404 := resources.Get "css/404.css" | minify }}
{{ $style := slice $theme $reset $header $main $postentry $postsingle $terms $archive $footer $404 | resources.Concat "stylesheet.css" | minify }}
{{ $stylesheet := slice $anoldhope $style | resources.Concat "css/stylesheet.css" | minify | fingerprint }}
<link href="{{ $stylesheet.Permalink }}" integrity="{{ $stylesheet.Data.Integrity }}" rel="preload stylesheet"
as="style">
{{ if (and (.Site.Params.profileMode.enabled) (.IsHome)) }}
{{ $profileMode := resources.Get "css/profileMode.css" | minify | fingerprint }}
<link href="{{ $profileMode.Permalink }}" integrity="{{ $profileMode.Data.Integrity }}" rel="preload stylesheet"
as="style">
{{end}}
<!-- Favicons -->
<link rel="apple-touch-icon" href="{{ "apple-touch-icon.png" | absURL }}">
<link rel="icon" href="{{ "favicon.ico" | absURL }}">
<!-- Generator -->
{{- hugo.Generator }}
<!-- RSS -->
{{ range .AlternativeOutputFormats -}}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
{{ end -}}
<!-- Misc -->
{{- if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }}
{{- template "_internal/google_analytics_async.html" . }}
{{- template "_internal/opengraph.html" . }}
{{- end }}
+18
View File
@@ -0,0 +1,18 @@
<header class="header">
<nav class="nav">
{{- if .IsHome }}
<h1 class="logo"><a href="{{ "" | absLangURL }}">{{ .Site.Title }}</a></h1>
{{- else }}
<p class="logo"><a href="{{ "" | absLangURL }}">{{ .Site.Title }}</a></p>
{{- end }}
{{- if .Site.Menus.main }}
<ul class="menu" id="menu" onscroll="menu_on_scroll()">
{{- range .Site.Menus.main }}
<li>
<a href="{{ .URL | absLangURL}}">{{ .Name }}</a>
</li>
{{- end }}
</ul>
{{- end }}
</nav>
</header>
+17
View File
@@ -0,0 +1,17 @@
{{ with $.Site.Params.homeInfoParams }}
<article class="first-entry">
<header class="entry-header">
<h2>{{ .Title }}</h2>
</header>
<section class="entry-content">
<p>{{ .Content | plainify | htmlUnescape }}</p>
</section>
<footer class="entry-footer">
{{- with $.Site.Params.socialIcons }}
<div class="social-icons">
{{ partial "social-icons.html" . }}
</div>
{{- end }}
</footer>
</article>
{{end}}
+18
View File
@@ -0,0 +1,18 @@
<div class="profile">
{{ with .Site.Params.profileMode }}
<div class="profile_inner">
{{if .imageUrl}}<img src="{{ .imageUrl}}" alt="{{ .imageTitle | default "profile image" }}" />{{end}}
<h1>{{ .title | default $.Site.Title }}</h1>
{{- with $.Site.Params.socialIcons }}
<div class="social-icons">
{{ partial "social-icons.html" . }}
</div>
{{- end }}
{{- with .buttons }}
<div class="buttons">
{{ partial "indexProfileButtons.html" . }}
</div>
{{- end }}
</div>
{{end}}
</div>
@@ -0,0 +1,7 @@
{{ range . -}}
<div class="button">
<a href="{{ .url }}" rel="noopener" title="{{ .name | humanize }}">
<span class="button-inner">{{ .name }}</span>
</a>
</div>
{{- end -}}
+54
View File
@@ -0,0 +1,54 @@
{{ $pageurl := .Permalink }}
{{ $title := .Title }}
<div class="share-buttons">
<p>Share On</p>
<a class="share-button-single" target="_blank" rel="noopener" name="twitter"
href="https://twitter.com/intent/tweet/?text={{ $title }}&amp;url={{ $pageurl }}">
<svg height="100%" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;"
version="1.1" viewBox="0 0 512 512" width="100%" xml:space="preserve">
<path
d="M449.446,0c34.525,0 62.554,28.03 62.554,62.554l0,386.892c0,34.524 -28.03,62.554 -62.554,62.554l-386.892,0c-34.524,0 -62.554,-28.03 -62.554,-62.554l0,-386.892c0,-34.524 28.029,-62.554 62.554,-62.554l386.892,0Zm-253.927,424.544c135.939,0 210.268,-112.643 210.268,-210.268c0,-3.218 0,-6.437 -0.153,-9.502c14.406,-10.421 26.973,-23.448 36.935,-38.314c-13.18,5.824 -27.433,9.809 -42.452,11.648c15.326,-9.196 26.973,-23.602 32.49,-40.92c-14.252,8.429 -30.038,14.56 -46.896,17.931c-13.487,-14.406 -32.644,-23.295 -53.946,-23.295c-40.767,0 -73.87,33.104 -73.87,73.87c0,5.824 0.613,11.494 1.992,16.858c-61.456,-3.065 -115.862,-32.49 -152.337,-77.241c-6.284,10.881 -9.962,23.601 -9.962,37.088c0,25.594 13.027,48.276 32.95,61.456c-12.107,-0.307 -23.448,-3.678 -33.41,-9.196l0,0.92c0,35.862 25.441,65.594 59.311,72.49c-6.13,1.686 -12.72,2.606 -19.464,2.606c-4.751,0 -9.348,-0.46 -13.946,-1.38c9.349,29.426 36.628,50.728 68.965,51.341c-25.287,19.771 -57.164,31.571 -91.8,31.571c-5.977,0 -11.801,-0.306 -17.625,-1.073c32.337,21.15 71.264,33.41 112.95,33.41Z" />
</svg>
</a>
<a class="share-button-single" target="_blank" rel="noopener" name="linkedin"
href="https://www.linkedin.com/shareArticle?mini=true&amp;url={{ $pageurl }}&amp;title={{ $title }}&amp;summary={{ $title }}&amp;source={{ $pageurl }}">
<svg height="100%" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;"
version="1.1" viewBox="0 0 512 512" width="100%" xml:space="preserve">
<path
d="M449.446,0c34.525,0 62.554,28.03 62.554,62.554l0,386.892c0,34.524 -28.03,62.554 -62.554,62.554l-386.892,0c-34.524,0 -62.554,-28.03 -62.554,-62.554l0,-386.892c0,-34.524 28.029,-62.554 62.554,-62.554l386.892,0Zm-288.985,423.278l0,-225.717l-75.04,0l0,225.717l75.04,0Zm270.539,0l0,-129.439c0,-69.333 -37.018,-101.586 -86.381,-101.586c-39.804,0 -57.634,21.891 -67.617,37.266l0,-31.958l-75.021,0c0.995,21.181 0,225.717 0,225.717l75.02,0l0,-126.056c0,-6.748 0.486,-13.492 2.474,-18.315c5.414,-13.475 17.767,-27.434 38.494,-27.434c27.135,0 38.007,20.707 38.007,51.037l0,120.768l75.024,0Zm-307.552,-334.556c-25.674,0 -42.448,16.879 -42.448,39.002c0,21.658 16.264,39.002 41.455,39.002l0.484,0c26.165,0 42.452,-17.344 42.452,-39.002c-0.485,-22.092 -16.241,-38.954 -41.943,-39.002Z" />
</svg>
</a>
<a class="share-button-single" target="_blank" rel="noopener" name="reddit"
href="https://reddit.com/submit?url={{ $pageurl }}&title={{ $title }}">
<svg height="100%" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;"
version="1.1" viewBox="0 0 512 512" width="100%" xml:space="preserve">
<path
d="M449.446,0c34.525,0 62.554,28.03 62.554,62.554l0,386.892c0,34.524 -28.03,62.554 -62.554,62.554l-386.892,0c-34.524,0 -62.554,-28.03 -62.554,-62.554l0,-386.892c0,-34.524 28.029,-62.554 62.554,-62.554l386.892,0Zm-3.446,265.638c0,-22.964 -18.616,-41.58 -41.58,-41.58c-11.211,0 -21.361,4.457 -28.841,11.666c-28.424,-20.508 -67.586,-33.757 -111.204,-35.278l18.941,-89.121l61.884,13.157c0.756,15.734 13.642,28.29 29.56,28.29c16.407,0 29.706,-13.299 29.706,-29.701c0,-16.403 -13.299,-29.702 -29.706,-29.702c-11.666,0 -21.657,6.792 -26.515,16.578l-69.105,-14.69c-1.922,-0.418 -3.939,-0.042 -5.585,1.036c-1.658,1.073 -2.811,2.761 -3.224,4.686l-21.152,99.438c-44.258,1.228 -84.046,14.494 -112.837,35.232c-7.468,-7.164 -17.589,-11.591 -28.757,-11.591c-22.965,0 -41.585,18.616 -41.585,41.58c0,16.896 10.095,31.41 24.568,37.918c-0.639,4.135 -0.99,8.328 -0.99,12.576c0,63.977 74.469,115.836 166.33,115.836c91.861,0 166.334,-51.859 166.334,-115.836c0,-4.218 -0.347,-8.387 -0.977,-12.493c14.564,-6.47 24.735,-21.034 24.735,-38.001Zm-119.474,108.193c-20.27,20.241 -59.115,21.816 -70.534,21.816c-11.428,0 -50.277,-1.575 -70.522,-21.82c-3.007,-3.008 -3.007,-7.882 0,-10.889c3.003,-2.999 7.882,-3.003 10.885,0c12.777,12.781 40.11,17.317 59.637,17.317c19.522,0 46.86,-4.536 59.657,-17.321c3.016,-2.999 7.886,-2.995 10.885,0.008c3.008,3.011 3.003,7.882 -0.008,10.889Zm-5.23,-48.781c-16.373,0 -29.701,-13.324 -29.701,-29.698c0,-16.381 13.328,-29.714 29.701,-29.714c16.378,0 29.706,13.333 29.706,29.714c0,16.374 -13.328,29.698 -29.706,29.698Zm-160.386,-29.702c0,-16.381 13.328,-29.71 29.714,-29.71c16.369,0 29.689,13.329 29.689,29.71c0,16.373 -13.32,29.693 -29.689,29.693c-16.386,0 -29.714,-13.32 -29.714,-29.693Z" />
</svg>
</a>
<a class="share-button-single" target="_blank" rel="noopener" name="facebook"
href="https://facebook.com/sharer/sharer.php?u={{ $pageurl }}">
<svg height="100%" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;"
version="1.1" viewBox="0 0 512 512" width="100%" xml:space="preserve">
<path
d="M449.446,0c34.525,0 62.554,28.03 62.554,62.554l0,386.892c0,34.524 -28.03,62.554 -62.554,62.554l-106.468,0l0,-192.915l66.6,0l12.672,-82.621l-79.272,0l0,-53.617c0,-22.603 11.073,-44.636 46.58,-44.636l36.042,0l0,-70.34c0,0 -32.71,-5.582 -63.982,-5.582c-65.288,0 -107.96,39.569 -107.96,111.204l0,62.971l-72.573,0l0,82.621l72.573,0l0,192.915l-191.104,0c-34.524,0 -62.554,-28.03 -62.554,-62.554l0,-386.892c0,-34.524 28.029,-62.554 62.554,-62.554l386.892,0Z" />
</svg>
</a>
<a class="share-button-single" target="_blank" rel="noopener" name="whatsapp"
href="whatsapp://send?text={{ $title }}%20-%20{{ $pageurl }}">
<svg height="100%" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;"
version="1.1" viewBox="0 0 512 512" width="100%" xml:space="preserve">
<path
d="M449.446,0c34.525,0 62.554,28.03 62.554,62.554l0,386.892c0,34.524 -28.03,62.554 -62.554,62.554l-386.892,0c-34.524,0 -62.554,-28.03 -62.554,-62.554l0,-386.892c0,-34.524 28.029,-62.554 62.554,-62.554l386.892,0Zm-58.673,127.703c-33.842,-33.881 -78.847,-52.548 -126.798,-52.568c-98.799,0 -179.21,80.405 -179.249,179.234c-0.013,31.593 8.241,62.428 23.927,89.612l-25.429,92.884l95.021,-24.925c26.181,14.28 55.659,21.807 85.658,21.816l0.074,0c98.789,0 179.206,-80.413 179.247,-179.243c0.018,-47.895 -18.61,-92.93 -52.451,-126.81Zm-126.797,275.782l-0.06,0c-26.734,-0.01 -52.954,-7.193 -75.828,-20.767l-5.441,-3.229l-56.386,14.792l15.05,-54.977l-3.542,-5.637c-14.913,-23.72 -22.791,-51.136 -22.779,-79.287c0.033,-82.142 66.867,-148.971 149.046,-148.971c39.793,0.014 77.199,15.531 105.329,43.692c28.128,28.16 43.609,65.592 43.594,105.4c-0.034,82.149 -66.866,148.983 -148.983,148.984Zm81.721,-111.581c-4.479,-2.242 -26.499,-13.075 -30.604,-14.571c-4.105,-1.495 -7.091,-2.241 -10.077,2.241c-2.986,4.483 -11.569,14.572 -14.182,17.562c-2.612,2.988 -5.225,3.364 -9.703,1.12c-4.479,-2.241 -18.91,-6.97 -36.017,-22.23c-13.314,-11.876 -22.304,-26.542 -24.916,-31.026c-2.612,-4.484 -0.279,-6.908 1.963,-9.14c2.016,-2.007 4.48,-5.232 6.719,-7.847c2.24,-2.615 2.986,-4.484 4.479,-7.472c1.493,-2.99 0.747,-5.604 -0.374,-7.846c-1.119,-2.241 -10.077,-24.288 -13.809,-33.256c-3.635,-8.733 -7.327,-7.55 -10.077,-7.688c-2.609,-0.13 -5.598,-0.158 -8.583,-0.158c-2.986,0 -7.839,1.121 -11.944,5.604c-4.105,4.484 -15.675,15.32 -15.675,37.364c0,22.046 16.048,43.342 18.287,46.332c2.24,2.99 31.582,48.227 76.511,67.627c10.685,4.615 19.028,7.371 25.533,9.434c10.728,3.41 20.492,2.929 28.209,1.775c8.605,-1.285 26.499,-10.833 30.231,-21.295c3.732,-10.464 3.732,-19.431 2.612,-21.298c-1.119,-1.869 -4.105,-2.99 -8.583,-5.232Z" />
</svg>
</a>
<a class="share-button-single" target="_blank" rel="noopener" name="telegram"
href="https://telegram.me/share/url?text={{ $title }}&amp;url={{ $pageurl }}">
<svg height="100%" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;"
version="1.1" width="100%" xml:space="preserve" viewBox="2 2 28 28">
<path
d="M26.49,29.86H5.5a3.37,3.37,0,0,1-2.47-1,3.35,3.35,0,0,1-1-2.47V5.48A3.36,3.36,0,0,1,3,3,3.37,3.37,0,0,1,5.5,2h21A3.38,3.38,0,0,1,29,3a3.36,3.36,0,0,1,1,2.46V26.37a3.35,3.35,0,0,1-1,2.47A3.38,3.38,0,0,1,26.49,29.86Zm-5.38-6.71a.79.79,0,0,0,.85-.66L24.73,9.24a.55.55,0,0,0-.18-.46.62.62,0,0,0-.41-.17q-.08,0-16.53,6.11a.59.59,0,0,0-.41.59.57.57,0,0,0,.43.52l4,1.24,1.61,4.83a.62.62,0,0,0,.63.43.56.56,0,0,0,.4-.17L16.54,20l4.09,3A.9.9,0,0,0,21.11,23.15ZM13.8,20.71l-1.21-4q8.72-5.55,8.78-5.55c.15,0,.23,0,.23.16a.18.18,0,0,1,0,.06s-2.51,2.3-7.52,6.8Z" />
</svg>
</a>
</div>
+3
View File
@@ -0,0 +1,3 @@
{{ range . -}}
<a href="{{ .url }}" target="_blank" rel="noopener" title="{{ .name | humanize }}" >{{ partial "svg.html" . }}</a>
{{- end -}}
+248
View File
@@ -0,0 +1,248 @@
{{- if (eq .name "123rf") -}}
<svg xmlns="http://www.w3.org/2000/svg" class="feather" width="24" height="24" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path style="font-variation-settings:normal"
d="M7.48 3.826c-.702 0-1.345.388-1.675 1.008l-.711 1.334a4.214 4.214 0 0 1-1.614 1.67l-.388.224a2.207 2.207 0 0 0-1.104 1.913v8.607c0 .878.712 1.592 1.59 1.592h1.186c.468 0 .916-.19 1.244-.524l1.478-1.504c.266-.27.628-.421 1.006-.421h7.04c.378 0 .74.151 1.005.421l1.478 1.504c.329.334.778.524 1.247.524h1.183c.879 0 1.592-.714 1.592-1.592V9.975c0-.79-.422-1.518-1.106-1.912l-.388-.225a4.214 4.214 0 0 1-1.613-1.67l-.711-1.334a1.899 1.899 0 0 0-1.676-1.008z"
stroke-linejoin="miter" />
<circle cx="12" cy="12.467" r="2.723" /></svg>
{{- else if (eq .name "adobestock") -}}
<svg xmlns="http://www.w3.org/2000/svg" class="feather" width="24" height="24" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path style="font-variation-settings:normal" d="M2.235 2.235h19.53v19.53H2.235z" />
<path style="font-variation-settings:normal"
d="M6.165 16.659s3.16 1.2 4.602-.17c1.37-1.3.787-3.163-.754-4.05-1.68-.969-3.284-1.788-3.036-3.536.446-3.138 4.386-1.851 4.386-1.851M15.792 7.794v7.774c0 1.023.635 1.766 2.043 1.624M17.826 10.04h-3.582" />
</svg>
{{- else if (eq .name "behance") -}}
<svg xmlns="http://www.w3.org/2000/svg" class="feather" width="24" height="24" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path paint-order="stroke fill markers" stroke-linejoin="miter" stroke-width="2"
style="font-variation-settings:normal"
d="M1.774 18.063V5.466h5.51c1.978 0 3.116 1.326 3.055 2.806-.043 1.049-.711 2.988-2.643 2.988h-5.93H7.73c1.224 0 3.532 1.13 3.532 3.532 0 2.4-1.873 3.27-3.318 3.27zm12.57-4.459h7.89s.012-4.18-4.167-4.18c-5.237 0-5.277 9.11-.3 9.11 3.06 0 3.935-1.806 3.935-1.806M15.526 5.823h4.987" />
</svg>
{{- else if (eq .name "codepen") -}}
<svg xmlns="http://www.w3.org/2000/svg" class="feather" width="24" height="24" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<polygon points="12 2 22 8.5 22 15.5 12 22 2 15.5 2 8.5 12 2"></polygon>
<line x1="12" y1="22" x2="12" y2="15.5"></line>
<polyline points="22 8.5 12 15.5 2 8.5"></polyline>
<polyline points="2 15.5 12 8.5 22 15.5"></polyline>
<line x1="12" y1="2" x2="12" y2="8.5"></line>
</svg>
{{- else if (eq .name "cryptohack") -}}
<svg version="1.0" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 57 57"
preserveAspectRatio="xMidYMid meet">
<g transform="translate(0.000000,57.000000) scale(0.100000,-0.100000)" fill="currentColor" stroke-width="12"
stroke="currentColor">
<path
d="M180 495 c-7 -8 -22 -15 -35 -15 -23 0 -55 -28 -55 -48 0 -6 -12 -23 -26 -37 -18 -18 -24 -33 -21 -48 3 -12 -1 -31 -9 -41 -18 -26 -18 -70 1 -86 8 -7 15 -21 15 -31 0 -36 23 -68 59 -83 21 -8 43 -21 50 -30 19 -23 74 -20 97 5 17 19 19 41 22 204 3 174 2 185 -17 204 -25 25 -63 27 -81 6z m54 -11 c14 -5 16 -32 16 -193 0 -196 -3 -211 -45 -211 -39 0 -47 20 -20 52 14 16 25 40 25 52 0 34 -37 76 -66 76 -31 0 -31 -18 0 -26 30 -7 50 -48 36 -73 -28 -54 -118 -28 -103 29 3 10 -4 27 -16 39 -26 26 -27 46 -2 68 14 12 18 24 14 48 -7 41 12 53 40 27 12 -11 32 -23 44 -26 12 -4 31 -18 42 -32 33 -41 55 -29 25 14 -15 21 -15 25 1 42 22 25 0 38 -25 15 -26 -24 -68 -12 -81 21 -12 32 3 54 36 54 12 0 28 7 35 15 14 17 21 18 44 9z" />
<path
d="M309 489 c-19 -19 -20 -30 -17 -204 3 -163 5 -185 22 -204 23 -25 78 -28 97 -5 7 9 29 22 50 30 36 15 59 47 59 83 0 10 7 24 15 31 19 16 19 60 1 86 -8 10 -12 29 -9 41 3 15 -3 30 -19 46 -12 13 -30 37 -38 53 -10 19 -25 30 -42 32 -15 2 -32 10 -38 18 -18 20 -57 17 -81 -7z m71 -14 c7 -8 23 -15 35 -15 34 0 48 -22 34 -54 -10 -20 -19 -26 -46 -26 -34 0 -44 -13 -17 -24 28 -11 47 -7 70 15 30 28 48 16 41 -28 -4 -24 -2 -36 8 -39 20 -8 28 -40 15 -64 -11 -20 -63 -28 -86 -12 -17 11 -36 51 -29 62 3 5 1 11 -5 15 -16 10 -24 -25 -12 -57 9 -24 8 -30 -8 -38 -21 -11 -33 -37 -24 -52 4 -6 16 2 28 17 20 25 26 27 64 20 23 -4 44 -10 47 -14 9 -15 -26 -51 -49 -51 -14 0 -30 -10 -40 -25 -18 -27 -54 -33 -74 -13 -17 17 -17 384 1 391 22 9 34 7 47 -8z" />
</g>
</svg>
{{- else if (eq .name "dev") -}}
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor" stroke="none">
<path
d="M7.42 10.05c-.18-.16-.46-.23-.84-.23H6l.02 2.44.04 2.45.56-.02c.41 0 .63-.07.83-.26.24-.24.26-.36.26-2.2 0-1.91-.02-1.96-.29-2.18zM0 4.94v14.12h24V4.94H0zM8.56 15.3c-.44.58-1.06.77-2.53.77H4.71V8.53h1.4c1.67 0 2.16.18 2.6.9.27.43.29.6.32 2.57.05 2.23-.02 2.73-.47 3.3zm5.09-5.47h-2.47v1.77h1.52v1.28l-.72.04-.75.03v1.77l1.22.03 1.2.04v1.28h-1.6c-1.53 0-1.6-.01-1.87-.3l-.3-.28v-3.16c0-3.02.01-3.18.25-3.48.23-.31.25-.31 1.88-.31h1.64v1.3zm4.68 5.45c-.17.43-.64.79-1 .79-.18 0-.45-.15-.67-.39-.32-.32-.45-.63-.82-2.08l-.9-3.39-.45-1.67h.76c.4 0 .75.02.75.05 0 .06 1.16 4.54 1.26 4.83.04.15.32-.7.73-2.3l.66-2.52.74-.04c.4-.02.73 0 .73.04 0 .14-1.67 6.38-1.8 6.68z" />
</svg>
{{- else if (eq .name "discogs") -}}
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor" stroke="none">
<path
d="M1.7422 11.982c0-5.6682 4.61-10.2782 10.2758-10.2782 1.8238 0 3.5372.48 5.0251 1.3175l.8135-1.4879C16.1768.588 14.2474.036 12.1908.0024h-.1944C5.4091.0144.072 5.3107 0 11.886v.1152c.0072 3.4389 1.4567 6.5345 3.7748 8.7207l1.1855-1.2814c-1.9798-1.8743-3.218-4.526-3.218-7.4585zM20.362 3.4053l-1.1543 1.2406c1.903 1.867 3.0885 4.4636 3.0885 7.3361 0 5.6658-4.61 10.2758-10.2758 10.2758-1.783 0-3.4605-.456-4.922-1.2575l-.8542 1.5214c1.7086.9384 3.6692 1.4735 5.7546 1.4759C18.6245 23.9976 24 18.6246 24 11.9988c-.0048-3.3717-1.399-6.4146-3.638-8.5935zM1.963 11.982c0 2.8701 1.2119 5.4619 3.146 7.2953l1.1808-1.2767c-1.591-1.5166-2.587-3.6524-2.587-6.0186 0-4.586 3.7293-8.3152 8.3152-8.3152 1.483 0 2.875.3912 4.082 1.0751l.8351-1.5262C15.481 2.395 13.8034 1.927 12.018 1.927 6.4746 1.9246 1.963 6.4362 1.963 11.982zm18.3702 0c0 4.586-3.7293 8.3152-8.3152 8.3152-1.4327 0-2.7837-.3648-3.962-1.0055l-.852 1.5166c1.4303.7823 3.0718 1.2287 4.814 1.2287 5.5434 0 10.055-4.5116 10.055-10.055 0-2.8077-1.1567-5.3467-3.0165-7.1729l-1.183 1.2743c1.519 1.507 2.4597 3.5924 2.4597 5.8986zm-1.9486 0c0 3.5109-2.8558 6.3642-6.3642 6.3642a6.3286 6.3286 0 01-3.0069-.756l-.8471 1.507c1.147.624 2.4597.9768 3.854.9768 4.4636 0 8.0944-3.6308 8.0944-8.0944 0-2.239-.9143-4.2692-2.3902-5.7378l-1.1783 1.267c1.1351 1.152 1.8383 2.731 1.8383 4.4732zm-14.4586 0c0 2.3014.9671 4.382 2.515 5.8578l1.1734-1.2695c-1.207-1.159-1.9606-2.786-1.9606-4.5883 0-3.5108 2.8557-6.3642 6.3642-6.3642 1.1423 0 2.215.3048 3.1437.8352l.8303-1.5167c-1.1759-.6647-2.5317-1.0487-3.974-1.0487-4.4612 0-8.092 3.6308-8.092 8.0944zm12.5292 0c0 2.4502-1.987 4.4372-4.4372 4.4372a4.4192 4.4192 0 01-2.0614-.5088l-.8351 1.4879a6.1135 6.1135 0 002.8965.727c3.3885 0 6.1434-2.7548 6.1434-6.1433 0-1.6774-.6767-3.1989-1.7686-4.3076l-1.1615 1.2503c.7559.7967 1.2239 1.8718 1.2239 3.0573zm-10.5806 0c0 1.7374.7247 3.3069 1.8886 4.4252L8.92 15.1569l.0144.0144c-.8351-.8063-1.3559-1.9366-1.3559-3.1869 0-2.4502 1.9846-4.4372 4.4372-4.4372.8087 0 1.5646.2184 2.2174.5976l.8207-1.4975a6.097 6.097 0 00-3.0381-.8063c-3.3837-.0048-6.141 2.7525-6.141 6.141zm6.681 0c0 .2952-.2424.5351-.5376.5351-.2952 0-.5375-.24-.5375-.5351 0-.2976.24-.5375.5375-.5375.2952 0 .5375.24.5375.5375zm-3.9405 0c0-1.879 1.5239-3.4029 3.4005-3.4029 1.879 0 3.4005 1.5215 3.4005 3.4029 0 1.879-1.5239 3.4005-3.4005 3.4005S8.6151 13.861 8.6151 11.982zm.1488 0c.0048 1.7974 1.4567 3.2493 3.2517 3.2517 1.795 0 3.254-1.4567 3.254-3.2517-.0023-1.7974-1.4566-3.2517-3.254-3.254-1.795 0-3.2517 1.4566-3.2517 3.254Z" />
</svg>
{{- else if (eq .name "dreamstime") -}}
<svg xmlns="http://www.w3.org/2000/svg" class="feather" width="24" height="24" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path
d="M19.834 20.994s4.824-4.08 2.044-12.03C19.252 1.456 6.822-1.223 2.508 7.566c-3.936 8.023 2.18 14.46 7.88 14.374 4.889-.075 8.475-3.226 7.813-8.604-.76-6.18-6.73-6.816-9.275-4.184-2.256 2.334-1.816 7.034.873 7.823 2.241.844 4.661-1.265 3.161-3.215"
style="font-variation-settings:normal" stroke="currentColor" stroke-linejoin="bevel"
paint-order="stroke fill markers" /></svg>
{{- else if (eq .name "dribbble") -}}
<svg xmlns="http://www.w3.org/2000/svg" class="feather" width="24" height="24" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<circle style="font-variation-settings:normal" cx="12.004" cy="12" r="9.39" paint-order="stroke fill markers" />
<path style="font-variation-settings:normal"
d="M5.858 19.136s2.343-5.79 8.161-6.422c5.818-.633 7.442.479 7.442.479M2.68 10.839s4.91.752 10.112-1.11c5.202-1.863 5.887-4.601 5.887-4.601" />
<path style="font-variation-settings:normal"
d="M8.533 3.208s2.888 2.73 5.339 9.235c2.451 6.505 2.344 8.4 2.344 8.4" /></svg>
{{- else if (eq .name "email") -}}
<svg xmlns="http://www.w3.org/2000/svg" class="feather" width="24" height="24" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"></path>
<polyline points="22,6 12,13 2,6"></polyline>
</svg>
{{- else if (eq .name "facebook") -}}
<svg xmlns="http://www.w3.org/2000/svg" class="feather" width="24" height="24" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z"></path>
</svg>
{{- else if (eq .name "freepik") -}}
<svg xmlns="http://www.w3.org/2000/svg" class="feather" width="24" height="24" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path
d="M5.737 17.28s3.423.84 7.61.162c4.188-.676 6.862-2.57 6.862-2.57s.28 3.943-4.967 5.33c-5.248 1.388-8.543.657-9.506-2.923zm-.62-3.104s4.491 1.361 8.728.344c4.237-1.016 5.94-2.568 5.94-2.568s-1.81-6.448-7.405-5.648c-5.597.8-8.061 4.414-7.263 7.872z"
style="font-variation-settings:normal" stroke-linejoin="round" />
<path
d="M1.265 12.607c.159-1.98.561-3.898 2.08-5.701m5.148-3.29c2.006-.66 3.968-1.157 6.446-.844m5.202 2.98c1.192 1.275 1.963 2.163 2.594 3.815"
style="font-variation-settings:normal" stroke="currentColor" stroke-linejoin="round" />
<circle r=".989" cy="10.404" cx="14.746" fill="currentColor" stroke="none" />
<circle cx="9.637" cy="11.305" r="1.477" fill="currentColor" stroke="none" /></svg>
{{- else if (eq .name "github") -}}
<svg xmlns="http://www.w3.org/2000/svg" class="feather" width="24" height="24" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path
d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22">
</path>
</svg>
{{- else if (eq .name "gitlab") -}}
<svg xmlns="http://www.w3.org/2000/svg" class="feather" width="24" height="24" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path
d="M22.65 14.39L12 22.13 1.35 14.39a.84.84 0 0 1-.3-.94l1.22-3.78 2.44-7.51A.42.42 0 0 1 4.82 2a.43.43 0 0 1 .58 0 .42.42 0 0 1 .11.18l2.44 7.49h8.1l2.44-7.51A.42.42 0 0 1 18.6 2a.43.43 0 0 1 .58 0 .42.42 0 0 1 .11.18l2.44 7.51L23 13.45a.84.84 0 0 1-.35.94z">
</path>
</svg>
{{- else if (eq .name "hackerrank") -}}
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
preserveAspectRatio="xMidYMid meet" viewBox="0 0 50 35" width="24" height="24" fill="currentColor" stroke-width="0"
stroke="currentColor">
<g>
<path
d="M0 32.95L3.86 32.95L7.73 32.95L7.73 27.23L7.73 21.52L11.59 21.52L15.45 21.52L15.45 27.23L15.45 32.95L19.31 32.95L23.18 32.95L23.18 17.5L23.18 2.05L19.31 2.05L15.45 2.05L15.45 7.77L15.45 13.48L11.59 13.48L7.73 13.48L7.73 7.77L7.73 2.05L3.86 2.05L0 2.05L0 17.5L0 32.95Z"
id="i2pS2ila1d"></path>
<path
d="M27.19 32.95L38.63 32.95L50.06 32.95L50.06 17.5L50.06 2.05L38.63 2.05L27.19 2.05L27.19 17.5L27.19 32.95Z"
id="dgDKP06E5"></path>
</g>
</svg>
{{- else if (eq .name "hackthebox") -}}
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
preserveAspectRatio="xMidYMid meet" viewBox="0 0 64 64" width="24" height="24" fill="currentColor"
stroke="currentColor">
<g>
<path
d="M4.63 15.53L4.63 31.85L4.63 48.27L18.36 56.14L32 64L45.74 56.14L59.37 48.17L59.37 31.95L59.37 15.63C51.31 10.97 46.83 8.38 45.93 7.86C38.57 3.58 32.3 0 32 0C31.7 0 25.43 3.48 18.07 7.76C16.27 8.8 11.79 11.39 4.63 15.53ZM49.62 17.32C49.12 18.71 33.79 27.77 32 27.77C30.21 27.77 14.88 18.71 14.38 17.32C14.18 16.62 30.01 6.27 31.8 5.97C31.9 5.97 36.08 8.36 40.96 11.15C45.93 14.03 49.82 16.82 49.62 17.32ZM29.01 33.84C29.01 40.11 29.01 43.6 29.01 44.29C29.01 51.36 28.62 54.74 27.92 54.74C27.32 54.74 23.04 52.65 18.46 50.07C17.91 49.75 15.12 48.15 10.1 45.29L10.1 34.04L10.1 22.79C13.57 24.7 15.49 25.77 15.88 25.98C18.96 27.77 23.24 30.26 25.33 31.55C25.82 31.86 27.05 32.62 29.01 33.84ZM36.08 54.74C35.28 54.74 34.99 51.66 35.19 44.09C35.2 43.38 35.3 39.83 35.48 33.44L44.44 28.17L53.4 22.99C53.7 29.08 53.86 32.47 53.9 33.14C54.2 38.72 54.3 43.7 54.1 44.29C53.8 45.49 37.77 54.74 36.08 54.74Z">
</path>
</g>
</svg>
{{- else if (eq .name "instagram") -}}
<svg xmlns="http://www.w3.org/2000/svg" class="feather" width="24" height="24" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<rect x="2" y="2" width="20" height="20" rx="5" ry="5"></rect>
<path d="M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z"></path>
<line x1="17.5" y1="6.5" x2="17.5" y2="6.5"></line>
</svg>
{{- else if (eq .name "lastfm") -}}
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor" stroke="none">
<path
d="M10.599 17.211l-.881-2.393s-1.433 1.596-3.579 1.596c-1.9 0-3.249-1.652-3.249-4.296 0-3.385 1.708-4.596 3.388-4.596 2.418 0 3.184 1.568 3.845 3.578l.871 2.751c.871 2.672 2.523 4.818 7.285 4.818 3.41 0 5.722-1.045 5.722-3.801 0-2.227-1.276-3.383-3.635-3.935l-1.757-.384c-1.217-.274-1.577-.771-1.577-1.597 0-.936.736-1.487 1.952-1.487 1.323 0 2.028.495 2.147 1.679l2.749-.33c-.225-2.479-1.937-3.494-4.745-3.494-2.479 0-4.897.936-4.897 3.934 0 1.873.902 3.058 3.185 3.605l1.862.443c1.397.33 1.863.916 1.863 1.713 0 1.021-.992 1.441-2.869 1.441-2.779 0-3.936-1.457-4.597-3.469l-.901-2.75c-1.156-3.574-3.004-4.896-6.669-4.896C2.147 5.327 0 7.879 0 12.235c0 4.179 2.147 6.445 6.003 6.445 3.108 0 4.596-1.457 4.596-1.457v-.012z" />
</svg>
{{- else if (eq .name "linkedin") -}}
<svg xmlns="http://www.w3.org/2000/svg" class="feather" width="24" height="24" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z"></path>
<rect x="2" y="9" width="4" height="12"></rect>
<circle cx="4" cy="4" r="2"></circle>
</svg>
{{- else if (eq .name "mixcloud") -}}
<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 "paypal") -}}
<svg xmlns="http://www.w3.org/2000/svg" class="feather" width="24" height="24" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path
d="M7.144 19.532l1.049-5.751c.11-.606.691-1.002 1.304-.948 2.155.192 6.877.1 8.818-4.002 2.554-5.397-.59-7.769-6.295-7.769H7.43a1.97 1.97 0 0 0-1.944 1.655L2.77 19.507a.857.857 0 0 0 .846.994h2.368a1.18 1.18 0 0 0 1.161-.969zM7.967 22.522a.74.74 0 0 0 .666.416h2.313c.492 0 .923-.351 1.003-.837l.759-4.601c.095-.523.597-.866 1.127-.819 1.86.166 5.567-.118 6.85-3.821.554-1.6.705-2.954.408-4.018"
style="font-variation-settings:normal" stroke="currentColor" stroke-linejoin="miter" /></svg>
{{- else if (eq .name "qq") -}}
<svg xmlns="http://www.w3.org/2000/svg" class="feather" width="24" height="24" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path transform="scale(0.04) translate(75 40)" stroke-width="50"
d="M433.754 420.445c-11.526 1.393-44.86-52.741-44.86-52.741 0 31.345-16.136 72.247-51.051 101.786 16.842 5.192 54.843 19.167 45.803 34.421-7.316 12.343-125.51 7.881-159.632 4.037-34.122 3.844-152.316 8.306-159.632-4.037-9.045-15.25 28.918-29.214 45.783-34.415-34.92-29.539-51.059-70.445-51.059-101.792 0 0-33.334 54.134-44.859 52.741-5.37-.65-12.424-29.644 9.347-99.704 10.261-33.024 21.995-60.478 40.144-105.779C60.683 98.063 108.982.006 224 0c113.737.006 163.156 96.133 160.264 214.963 18.118 45.223 29.912 72.85 40.144 105.778 21.768 70.06 14.716 99.053 9.346 99.704z">
</path>
</svg>
{{- else if (eq .name "soundcloud") -}}
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor" stroke="none">
<path
d="M1.175 12.225c-.051 0-.094.046-.101.1l-.233 2.154.233 2.105c.007.058.05.098.101.098.05 0 .09-.04.099-.098l.255-2.105-.27-2.154c0-.057-.045-.1-.09-.1m-.899.828c-.06 0-.091.037-.104.094L0 14.479l.165 1.308c0 .055.045.094.09.094s.089-.045.104-.104l.21-1.319-.21-1.334c0-.061-.044-.09-.09-.09m1.83-1.229c-.061 0-.12.045-.12.104l-.21 2.563.225 2.458c0 .06.045.12.119.12.061 0 .105-.061.121-.12l.254-2.474-.254-2.548c-.016-.06-.061-.12-.121-.12m.945-.089c-.075 0-.135.06-.15.135l-.193 2.64.21 2.544c.016.077.075.138.149.138.075 0 .135-.061.15-.15l.24-2.532-.24-2.623c0-.075-.06-.135-.135-.135l-.031-.017zm1.155.36c-.005-.09-.075-.149-.159-.149-.09 0-.158.06-.164.149l-.217 2.43.2 2.563c0 .09.075.157.159.157.074 0 .148-.068.148-.158l.227-2.563-.227-2.444.033.015zm.809-1.709c-.101 0-.18.09-.18.181l-.21 3.957.187 2.563c0 .09.08.164.18.164.094 0 .174-.09.18-.18l.209-2.563-.209-3.972c-.008-.104-.088-.18-.18-.18m.959-.914c-.105 0-.195.09-.203.194l-.18 4.872.165 2.548c0 .12.09.209.195.209.104 0 .194-.089.21-.209l.193-2.548-.192-4.856c-.016-.12-.105-.21-.21-.21m.989-.449c-.121 0-.211.089-.225.209l-.165 5.275.165 2.52c.014.119.104.225.225.225.119 0 .225-.105.225-.225l.195-2.52-.196-5.275c0-.12-.105-.225-.225-.225m1.245.045c0-.135-.105-.24-.24-.24-.119 0-.24.105-.24.24l-.149 5.441.149 2.503c.016.135.121.24.256.24s.24-.105.24-.24l.164-2.503-.164-5.456-.016.015zm.749-.134c-.135 0-.255.119-.255.254l-.15 5.322.15 2.473c0 .15.12.255.255.255s.255-.12.255-.27l.15-2.474-.165-5.307c0-.148-.12-.27-.271-.27m1.005.166c-.164 0-.284.135-.284.285l-.103 5.143.135 2.474c0 .149.119.277.284.277.149 0 .271-.12.284-.285l.121-2.443-.135-5.112c-.012-.164-.135-.285-.285-.285m1.184-.945c-.045-.029-.105-.044-.165-.044s-.119.015-.165.044c-.09.054-.149.15-.149.255v.061l-.104 6.048.115 2.449v.008c.008.06.03.135.074.18.058.061.142.104.234.104.08 0 .158-.044.209-.09.058-.06.091-.135.091-.225l.015-.24.117-2.203-.135-6.086c0-.104-.061-.193-.135-.239l-.002-.022zm1.006-.547c-.045-.045-.09-.061-.15-.061-.074 0-.149.016-.209.061-.075.061-.119.15-.119.24v.029l-.137 6.609.076 1.215.061 1.185c0 .164.148.314.328.314.181 0 .33-.15.33-.329l.15-2.414-.15-6.637c0-.12-.074-.221-.165-.277m8.934 3.777c-.405 0-.795.086-1.139.232-.24-2.654-2.46-4.736-5.188-4.736-.659 0-1.305.135-1.889.359-.225.09-.27.18-.285.359v9.368c.016.18.15.33.33.345h8.185C22.681 17.218 24 15.914 24 14.28s-1.319-2.952-2.938-2.952" />
</svg>
{{- else if (eq .name "shutterstock") -}}
<svg xmlns="http://www.w3.org/2000/svg" class="feather" width="24" height="24" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<rect ry="5" rx="5" height="20" width="20" y="2" x="2" />
<path d="M7.728 11.725V9.032c0-1.025.824-1.85 1.849-1.85h2.815m3.88 5.093v2.693a1.845 1.845 0 0 1-1.849 1.85h-2.815"
stroke-linecap="square" stroke-linejoin="miter" /></svg>
{{- else if (eq .name "slack") -}}
<svg xmlns="http://www.w3.org/2000/svg" class="feather" width="24" height="24" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M22.08 9C19.81 1.41 16.54-.35 9 1.92S-.35 7.46 1.92 15 7.46 24.35 15 22.08 24.35 16.54 22.08 9z"></path>
<line x1="12.57" y1="5.99" x2="16.15" y2="16.39"></line>
<line x1="7.85" y1="7.61" x2="11.43" y2="18.01"></line>
<line x1="16.39" y1="7.85" x2="5.99" y2="11.43"></line>
<line x1="18.01" y1="12.57" x2="7.61" y2="16.15"></line>
</svg>
{{- else if (eq .name "sourcerer") -}}
<svg version="1.0" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 300.000000 360.000000"
preserveAspectRatio="xMidYMid meet" fill="currentColor" stroke="currentColor">
<g transform="translate(0.000000,360.000000) scale(0.100000,-0.100000)">
<path
d="M1120 3584 c-207 -30 -409 -98 -562 -191 -386 -232 -562 -581 -493 -974 42 -240 129 -385 320 -534 95 -74 165 -111 306 -160 179 -62 279 -82 781 -155 535 -77 624 -97 735 -169 33 -21 64 -44 67 -50 5 -8 116 -11 368 -11 l361 0 -5 43 c-14 120 -132 310 -255 409 -216 174 -438 246 -998 323 -589 81 -723 109 -861 184 -159 86 -218 265 -140 425 35 72 126 155 218 200 262 128 737 121 999 -15 190 -99 296 -250 314 -449 4 -41 12 -81 18 -87 11 -15 603 -19 626 -4 22 14 8 222 -23 343 -91 356 -368 646 -741 778 -123 43 -268 77 -403 95 -142 19 -499 18 -632 -1z" />
<path
d="M163 1279 c-45 -13 -63 -44 -63 -106 l0 -53 -50 0 -50 0 0 -40 0 -40 50 0 50 0 0 -185 0 -185 45 0 45 0 0 185 0 185 75 0 75 0 0 -185 0 -185 45 0 45 0 0 225 0 225 -121 0 -120 0 3 38 c3 37 3 37 51 40 l47 3 0 45 0 44 -47 -1 c-27 0 -62 -5 -80 -10z" />
<path
d="M2639 1279 c-96 -15 -184 -82 -224 -173 -34 -75 -39 -125 -21 -196 44 -170 202 -268 365 -226 143 37 234 152 234 296 0 185 -169 328 -354 299z" />
<path
d="M466 595 c-36 -33 -46 -65 -46 -145 0 -80 10 -112 46 -145 38 -36 120 -36 158 0 36 33 46 65 46 146 0 122 -35 169 -126 169 -40 0 -57 -5 -78 -25z m122 -75 c17 -34 11 -135 -10 -157 -23 -23 -66 -9 -79 25 -14 34 -7 126 11 147 19 23 62 15 78 -15z" />
<path
d="M677 315 c-103 -168 -187 -307 -187 -310 0 -3 20 -5 44 -5 l44 0 158 257 c87 142 170 277 186 300 15 23 28 46 28 52 0 6 -19 11 -43 11 l-44 0 -186 -305z" />
<path
d="M1392 605 c-137 -38 -227 -156 -227 -295 1 -82 16 -127 66 -190 159 -201 470 -131 535 119 18 72 13 122 -20 196 -33 73 -69 111 -139 144 -77 37 -145 45 -215 26z m196 -112 c59 -36 102 -114 102 -183 0 -70 -43 -147 -103 -184 -68 -42 -138 -46 -210 -13 -115 53 -159 179 -101 295 58 116 200 155 312 85z" />
<path
d="M1922 608 c-9 -9 -12 -90 -12 -305 l0 -293 23 -5 c12 -3 150 -4 307 -3 l285 3 3 299 c2 233 -1 301 -10 308 -22 13 -582 10 -596 -4z" />
<path
d="M826 319 c-42 -33 -56 -71 -56 -149 0 -121 36 -170 125 -170 90 0 128 49 129 165 0 118 -43 175 -132 175 -25 0 -49 -8 -66 -21z m99 -63 c27 -19 34 -126 11 -161 -18 -27 -56 -34 -74 -12 -28 34 -26 142 4 172 19 19 35 19 59 1z" />
</g>
</svg>
{{- else if (eq .name "stackoverflow") -}}
<svg xmlns="http://www.w3.org/2000/svg" class="feather" width="24" height="24" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path
d="M2.913 16.041v6.848h17.599v-6.848M7.16 18.696h8.925M7.65 13.937l8.675 1.8M9.214 9.124l8.058 3.758M12.086 4.65l6.849 5.66M15.774 1.111l5.313 7.162" />
</svg>
{{- else if (eq .name "steam") -}}
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor" stroke="none">
<path
d="M11.979 0C5.678 0 .511 4.86.022 11.037l6.432 2.658c.545-.371 1.203-.59 1.912-.59.063 0 .125.004.188.006l2.861-4.142V8.91c0-2.495 2.028-4.524 4.524-4.524 2.494 0 4.524 2.031 4.524 4.527s-2.03 4.525-4.524 4.525h-.105l-4.076 2.911c0 .052.004.105.004.159 0 1.875-1.515 3.396-3.39 3.396-1.635 0-3.016-1.173-3.331-2.727L.436 15.27C1.862 20.307 6.486 24 11.979 24c6.627 0 11.999-5.373 11.999-12S18.605 0 11.979 0zM7.54 18.21l-1.473-.61c.262.543.714.999 1.314 1.25 1.297.539 2.793-.076 3.332-1.375.263-.63.264-1.319.005-1.949s-.75-1.121-1.377-1.383c-.624-.26-1.29-.249-1.878-.03l1.523.63c.956.4 1.409 1.5 1.009 2.455-.397.957-1.497 1.41-2.454 1.012H7.54zm11.415-9.303c0-1.662-1.353-3.015-3.015-3.015-1.665 0-3.015 1.353-3.015 3.015 0 1.665 1.35 3.015 3.015 3.015 1.663 0 3.015-1.35 3.015-3.015zm-5.273-.005c0-1.252 1.013-2.266 2.265-2.266 1.249 0 2.266 1.014 2.266 2.266 0 1.251-1.017 2.265-2.266 2.265-1.253 0-2.265-1.014-2.265-2.265z" />
</svg>
{{- else if (eq .name "telegram") -}}
<svg xmlns="http://www.w3.org/2000/svg" class="feather" width="24" height="24" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path
d="M21.198 2.433a2.242 2.242 0 0 0-1.022.215l-8.609 3.33c-2.068.8-4.133 1.598-5.724 2.21a405.15 405.15 0 0 1-2.849 1.09c-.42.147-.99.332-1.473.901-.728.968.193 1.798.919 2.286 1.61.516 3.275 1.009 4.654 1.472.509 1.793.997 3.592 1.48 5.388.16.36.506.494.864.498l-.002.018s.281.028.555-.038a2.1 2.1 0 0 0 .933-.517c.345-.324 1.28-1.244 1.811-1.764l3.999 2.952.032.018s.442.311 1.09.355c.324.022.75-.04 1.116-.308.37-.27.613-.702.728-1.196.342-1.492 2.61-12.285 2.997-14.072l-.01.042c.27-1.006.17-1.928-.455-2.474a1.654 1.654 0 0 0-1.034-.407z" />
</svg>
{{- else if (eq .name "twitch") -}}
<svg xmlns="http://www.w3.org/2000/svg" class="feather" width="24" height="24" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M21 2H3v16h5v4l4-4h5l4-4V2zm-10 9V7m5 4V7"></path>
</svg>
{{- else if (eq .name "twitter") -}}
<svg xmlns="http://www.w3.org/2000/svg" class="feather" width="24" height="24" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path
d="M23 3a10.9 10.9 0 0 1-3.14 1.53 4.48 4.48 0 0 0-7.86 3v1A10.66 10.66 0 0 1 3 4s-4 9 5 13a11.64 11.64 0 0 1-7 2c9 5 20 0 20-11.5a4.5 4.5 0 0 0-.08-.83A7.72 7.72 0 0 0 23 3z">
</path>
</svg>
{{- else if (eq .name "youtube") -}}
<svg xmlns="http://www.w3.org/2000/svg" class="feather" width="24" height="24" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path
d="M22.54 6.42a2.78 2.78 0 0 0-1.94-2C18.88 4 12 4 12 4s-6.88 0-8.6.46a2.78 2.78 0 0 0-1.94 2A29 29 0 0 0 1 11.75a29 29 0 0 0 .46 5.33A2.78 2.78 0 0 0 3.4 19c1.72.46 8.6.46 8.6.46s6.88 0 8.6-.46a2.78 2.78 0 0 0 1.94-2 29 29 0 0 0 .46-5.25 29 29 0 0 0-.46-5.33z">
</path>
<polygon points="9.75 15.02 15.5 11.75 9.75 8.48 9.75 15.02"></polygon>
</svg>
{{- else if .name -}}
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor"
stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link">
<path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path>
<path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path>
</svg>
{{- end -}}
+72
View File
@@ -0,0 +1,72 @@
<!-- Author: Parsia Hakimian https://github.com/parsiya/Hugo-Shortcodes -->
<!-- port of Octopress blockquote plugin http://octopress.org/docs/plugins/blockquote/ to Hugo
see readme for usage -->
<!-- reset scratch variables at the start -->
{{ $.Scratch.Set "bl_author" false }}
{{ $.Scratch.Set "bl_source" false }}
{{ $.Scratch.Set "bl_link" false }}
{{ $.Scratch.Set "bl_title" false }}
{{ if .IsNamedParams }}
{{ $.Scratch.Set "bl_author" (.Get "author") }}
{{ $.Scratch.Set "bl_source" (.Get "source") }}
{{ $.Scratch.Set "bl_link" (.Get "link") }}
{{ $.Scratch.Set "bl_title" (.Get "title") }}
{{ else }}
<!-- for the positional version if any -->
{{ end }}
<!-- if title is not set explicitly then we need to beautify the link
if length of link is more than 32 chars, we will cut it off by 32 and
then drop everything after the last / if any and put it in into title -->
{{ with $.Scratch.Get "bl_title" }}
<!-- do nothing -->
{{ else }}
{{ with $.Scratch.Get "bl_link" }} <!-- if link is given -->
{{ range last 1 (split ($.Scratch.Get "bl_link" ) "://") }} <!-- split by :// and then only take the items after it to remove protocol:// -->
{{ $.Scratch.Set "title_without_protocol" . }}
{{ end }}
{{ range last 1 (split ($.Scratch.Get "title_without_protocol" ) "www.") }} <!-- also remove the www. at the start if any. we are using a second split because all URLS may not start with it -->
{{ $.Scratch.Set "title_without_protocol" . }}
{{ end }}
{{ $.Scratch.Set "bl_title" ($.Scratch.Get "title_without_protocol") }}
<!-- if link is longer than 32 bytes we should trim it -->
{{ if (gt (len ($.Scratch.Get "title_without_protocol") ) 32) }}
{{ $title := (slicestr ($.Scratch.Get "title_without_protocol") 0 32) }} <!-- get the first 32 characters of title_without_protocol -->
{{ $split_by_fw_slash := split $title "/" }} <!-- now split on / because we want to stop after the last forward slash -->
{{ $count := (sub (len $split_by_fw_slash) 1) }} <!-- we want everything but the last part so we adjust the count accordingly -->
{{ $.Scratch.Set "tempstring" "" }} <!-- temp variable to hold the concatinated string -->
{{ range first $count $split_by_fw_slash }} <!-- loop through all parts except last and concat them (add / between halves) -->
{{ $.Scratch.Set "tempstring" ( . | printf "%s%s/" ($.Scratch.Get "tempstring") | printf "%s" ) }}
{{ end }}
{{ $.Scratch.Set "bl_title" ( printf "%s..." ($.Scratch.Get "tempstring") | printf "%s" ) }}
{{ end }}
{{ end }}
{{ end }}
<blockquote>
<p>{{ .Inner | markdownify }}</p>
<footer>
<strong>{{ with $.Scratch.Get "bl_author" }}{{ . }}{{ end }}</strong>
{{ with $.Scratch.Get "bl_source" }}
<cite>{{ . }}</cite>
{{ else }}
{{ with $.Scratch.Get "bl_link" }}
<cite>
<a href="{{ . }}" title="{{ . }}">{{ $.Scratch.Get "bl_title" }}</a> <!-- can't have new lines here -->
</cite>
{{ else }}
{{ with $.Scratch.Get "bl_title" }}
<cite>
{{ $.Scratch.Get "bl_title" }}</a>
</cite>
{{ end }}
{{ end }}
{{ end }}
</footer>
</blockquote>
+12
View File
@@ -0,0 +1,12 @@
{{ if .Get "content" }}
{{ if .Get "summary" }}
{{ else }}
{{ warnf "missing value for param 'summary': %s" .Position }}
{{ end }}
{{ else }}
{{ errorf "missing value for param 'content': %s" .Position }}
{{ end }}
<p><details {{ if (eq (.Get "openByDefault") true) }} open=true {{ end }}>
<summary markdown="span">{{ .Get "summary" | markdownify }}</summary>
{{ .Get "content" | markdownify }}
</details></p>
+2
View File
@@ -0,0 +1,2 @@
<!-- raw html -->
{{.Inner}}
Binary file not shown.

After

Width:  |  Height:  |  Size: 9.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 503 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

+1
View File
@@ -0,0 +1 @@
{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"}
+22
View File
@@ -0,0 +1,22 @@
# theme.toml template for a Hugo theme
# See https://github.com/gohugoio/hugoThemes#themetoml for an example
name = "PaperMod"
license = "MIT"
licenselink = "https://github.com/adityatelange/hugo-PaperMod/blob/master/LICENSE"
description = "A simple, clean, flexible Hugo theme"
homepage = "https://github.com/adityatelange/hugo-PaperMod"
tags = ["Responsive", "Simple", "Clean", "Light", "White", "Dark", "Blog", "PaperMod"]
features = ["Responsive", "One Column", "Blog"]
min_version = "0.57.1"
[author]
name = "Aditya Telange"
homepage = "https://github.com/adityatelange/"
# If porting an existing theme
[original]
name = "Paper"
author = "nanxiaobei"
homepage = "https://github.com/nanxiaobei"
repo = "https://github.com/nanxiaobei/hugo-paper/"