Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge PRs and PaperMod commits after the fork #31

Open
wants to merge 82 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
82 commits
Select commit Hold shift + click to select a range
34614f3
Updates go.mod to match fork
SavingNinja Jul 2, 2022
5712437
feat: add share buttons back :tada:
Triple-Z Aug 10, 2022
313530c
make the background color of selected text consistent with the overal…
huohaodong Sep 5, 2022
f008479
add giscus
julien-blanchon Sep 12, 2022
48a7258
Add extra space after article date
julien-blanchon Sep 12, 2022
ea81099
theme vars fix
BedirT Sep 22, 2022
7349c4a
Merge pull request #1 from BedirT/master
Oct 8, 2022
afcdcd8
Merge pull request #2 from huohaodong/enhancement
Oct 8, 2022
301f82a
Merge pull request #3 from SavingNinja/patch-1
Oct 8, 2022
bb19da5
Merge pull request #4 from Triple-Z/PaperModX
Oct 8, 2022
1965937
:Set `<hr>`'s border to 0 (#870)
SebMtn Apr 19, 2022
2e9ee92
Fix malformed html structure of the translation list on post. (#886)
binick Apr 19, 2022
22a9693
Added Strava icon svg (#890)
mattburns Apr 21, 2022
20ac172
Update French translation fr.yaml (#888)
OxNinja Apr 21, 2022
ecba497
Fix line nums in code block alignment in rtl languages
adityatelange Apr 23, 2022
7789075
i18n: Update Korean translation ko.yaml (#894)
OctopusET Apr 29, 2022
a14d391
Add translations for Malay(ms) (#899)
mhrk04 Apr 29, 2022
b2e80fd
Add TikTok Social Icon (#905)
RichardSlater May 7, 2022
960e6d8
Add GuruShots (https://gurushots.com/) Social Icon (#906)
RichardSlater May 8, 2022
09abb42
Updating pagination strings for en:
adityatelange May 14, 2022
96a80fd
Update translation of zh-tw (#908)
DejavuMoe May 14, 2022
8809496
chore: change i18n next prev spanish language (#917)
IvanAprea May 17, 2022
cc37b85
Don't auto titlelify button text #842
adityatelange May 17, 2022
9f327a5
Add robotsNoIndex parameter (#900)
martin2250 May 22, 2022
a2a8022
Add ORCID Social Icon (#928)
jskherman May 27, 2022
6cc1e76
Output valid HTML (#673)
kenohassler May 27, 2022
adb35f4
Fix scroll bar appearance in Safari
adityatelange May 28, 2022
a8e9aa3
Fix impact of 2b0a52a on horizontal blocks
adityatelange May 28, 2022
7c15389
Update `fuse.js` v6.5.3 to v6.6.2 basic
adityatelange May 29, 2022
14024c5
Add license text for PaperMod in resources
adityatelange May 29, 2022
0791083
Improve Kurdish translations (#936)
rojvv Jun 4, 2022
fe4e645
Add lichess.org social icon. (#952)
v-shenoy Jun 22, 2022
c04b20c
Seperate scroll-bar customization into seperate stylesheet
adityatelange Jun 3, 2022
4492684
Revert "Seperate scroll-bar customization into seperate stylesheet"
dunklecat Oct 8, 2022
e735a35
fix
dunklecat Oct 8, 2022
a6b2625
fix
dunklecat Oct 8, 2022
2c8f05b
Revert "fix"
dunklecat Oct 8, 2022
d8b6244
Create head.html
Oct 8, 2022
5949e58
Seperate scroll-bar customization into seperate stylesheet
adityatelange Jun 3, 2022
fcbd91d
Merge branch 'master' of github.com:dunklecat/hugo-PaperModX
dunklecat Oct 8, 2022
c8d6018
fix
dunklecat Oct 8, 2022
0ad43dc
Update Indonesian Languange (id.yaml) (#955)
Jun 24, 2022
29a49cf
Update russian translation (#957)
MrYadro Jul 8, 2022
5f51f05
Change i18n next prev page Indonesian (#961)
Jul 8, 2022
68523ce
Simplify theme-toggle svg height
adityatelange Jul 8, 2022
2c11813
Remove share-buttons svg animation
adityatelange Jul 8, 2022
21e42ca
Simplify share-buttons svg
adityatelange Jul 8, 2022
9a279a4
Revert "add blockquote as shortcode"
adityatelange Jul 8, 2022
c47dad3
Add inTextImg shortcode
adityatelange Jul 8, 2022
791a1bd
Mark External link with an SVG icon
adityatelange Jul 8, 2022
e3353cd
Add a space to External link SVG in header menu
adityatelange Jul 8, 2022
b7d434d
Add a space to External link SVG in profile button
adityatelange Jul 8, 2022
dce97d4
Adding Sourcehut SocialIcon (#964)
biehlerj Jul 9, 2022
7014aa3
Fix Profile Mode imageTitle missing
adityatelange Jul 9, 2022
73ba1f8
Update hindi translation (#977)
icy-comet Jul 16, 2022
7b06395
Update inTextImg.html
adityatelange Jul 16, 2022
55f7806
add missing Icons, update Icon style (#733)
pxlfrk Jul 17, 2022
6beb68f
Remove alt for label.icon
adityatelange Jul 17, 2022
f17764f
Allow adding SVG in place of logo image (#976)
icy-comet Jul 23, 2022
932ce72
add vimeo icon (#975)
icy-comet Jul 24, 2022
28a1ecd
Add a meta tag for naver site verification (#991)
sunghyunjun Jul 24, 2022
1d1519d
Add optional custom "title" for social links (#999)
Netruk44 Aug 6, 2022
01f0e36
Updating pagination strings for bn: (#1002)
Aug 6, 2022
b0065b7
Add more ja translations (#1004)
Hattomo Aug 12, 2022
fdb81fc
Feat: Add page nums in list pages
adityatelange Aug 15, 2022
3ec16db
Adding threema as social icon (#1012)
pablo03v Aug 19, 2022
afcbf5f
Add social icons for DeviantArt and Patreon (#1013)
ArtBIT Aug 19, 2022
a3e2ddb
Fix Code Smell: Unexpected var, use let or const instead.
adityatelange Aug 20, 2022
f0a0f12
Add param 'hiddenInHomeList' to hide certain post from home page
adityatelange Aug 20, 2022
842abed
Fix spacing around `rawhtml` shortcode (#1018)
wj25czxj47bu6q Aug 28, 2022
d74e43e
fix
dunklecat Oct 9, 2022
44149c6
Add icons for AniList and osu! (#1022)
Katzenbiber Aug 28, 2022
a86491f
Updating pagination strings for de (#1024)
lguenth Aug 28, 2022
4bc3769
fix
dunklecat Oct 9, 2022
7886a30
Fix spotify icon svg (#997)
pinfel Aug 28, 2022
0f00aab
add sketchfab icon (#998)
pinfel Aug 28, 2022
85a5bd0
Update bug report template
adityatelange Aug 28, 2022
e4b5d01
Use Nullish Coalescing Operator with Fastsearch (#1033)
bentonw414 Sep 2, 2022
da15003
Fix error with profileMode imageUrl on Windows devices
adityatelange Sep 3, 2022
69ec3ce
[PATCH] Fix date format in schema and opengraph templates
jmooring Jun 20, 2021
89e9894
Merge pull request #6 from julien-blanchon/master
Oct 9, 2022
46bc665
Change absURL to absLangURL
Oct 10, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ Please fill the template below
**Expected behavior**:
<!-- A clear and concise description of what you expected to happen. -->

**Repo/Source where this issue can be reproduced**:
<!-- Please link source code of website where the said issue can be reproduced -->

**Screenshots**
<!-- If applicable, add screenshots to help explain your problem. -->

Expand Down
4 changes: 0 additions & 4 deletions assets/css/common/header.css
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,6 @@
image-rendering: -webkit-optimize-contrast;
}

#theme-toggle svg {
height: 18px;
}

button#theme-toggle {
font-size: 26px;
margin: auto 4px;
Expand Down
56 changes: 22 additions & 34 deletions assets/css/common/post-single.css
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ h6:hover .anchor {
.post-content .highlight:not(table) {
margin: var(--content-gap) auto;
border-radius: var(--radius);
direction: ltr;
}

.post-content li > .highlight {
Expand Down Expand Up @@ -295,8 +296,7 @@ h6:hover .anchor {
margin: 30px 0;
height: 2px;
background: var(--tertiary-bg);
border-top: 0;
border-bottom: 0;
border: 0
}

.post-content iframe {
Expand Down Expand Up @@ -423,38 +423,17 @@ h6:hover .anchor {
margin-inline-end: 12px;
}

.share-buttons a svg {
height: 30px;
width: 30px;
fill: currentColor;
transition: transform 0.1s;
}

.share-buttons svg:active {
transform: scale(0.96);
}


.post-content :not(table) ::-webkit-scrollbar-thumb {
border: 2px solid var(--code-bg);
background: rgb(113, 113, 117);
}

.post-content :not(table) ::-webkit-scrollbar-thumb:hover {
background: rgb(163, 163, 165);
}

.gist table::-webkit-scrollbar-thumb {
border: 2px solid rgb(255, 255, 255);
background: rgb(173, 173, 173);
}

.gist table::-webkit-scrollbar-thumb:hover {
background: rgb(112, 112, 112);
}

.post-content table::-webkit-scrollbar-thumb {
border-width: 2px;
h1:hover .anchor,
h2:hover .anchor,
h3:hover .anchor,
h4:hover .anchor,
h5:hover .anchor,
h6:hover .anchor {
display: inline-flex;
color: var(--secondary);
margin-inline-start: 8px;
font-weight: 500;
user-select: none;
}

.paginav {
Expand Down Expand Up @@ -658,3 +637,12 @@ h6:hover .anchor {
.tweet-ref blockquote a {
text-decoration: none;
}

h1>a>svg {
display: inline;
}

img.in-text {
display: inline;
margin: auto;
}
1 change: 0 additions & 1 deletion assets/css/common/profile-mode.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
.profile img {
display: inline-table;
border-radius: 50%;
pointer-events: none;
}

.buttons {
Expand Down
6 changes: 6 additions & 0 deletions assets/css/core/license.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/*
PaperMod v6
License: MIT https://github.com/adityatelange/hugo-PaperMod/blob/master/LICENSE
Copyright (c) 2020 nanxiaobei and adityatelange
Copyright (c) 2021-2022 adityatelange
*/
22 changes: 0 additions & 22 deletions assets/css/core/reset.css
Original file line number Diff line number Diff line change
Expand Up @@ -112,25 +112,3 @@ img {
display: block;
max-width: 100%;
}

::-webkit-scrollbar-track {
background: 0 0;
}

.list-page:not(.dark)::-webkit-scrollbar-track {
background: var(--code-bg);
}

::-webkit-scrollbar-thumb {
background: var(--tertiary-bg);
border: 5px solid var(--theme);
border-radius: var(--radius);
}

.list-page:not(.dark)::-webkit-scrollbar-thumb {
border: 5px solid var(--code-bg);
}

::-webkit-scrollbar-thumb:hover {
background: var(--secondary);
}
16 changes: 16 additions & 0 deletions assets/css/core/theme-vars.css
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,18 @@

}

::selection {
background: var(--link-background-color);
}

::-moz-selection {
background: var(--link-background-color);
}

::-webkit-selection {
background: var(--link-background-color);
}

.dark {
--theme: rgb(29, 30, 32);
--entry: rgb(46, 46, 51);
Expand All @@ -56,6 +68,10 @@
--link-underline-shadow: 0 1px 0 var(--link-color);
--link-hover-underline-color: var(--link-hover-color);
--link-hover-underline-shadow: 0 2px 0 var(--link-hover-underline-color);

/* for type pages theming */
--signature: var(--primary);
--signature-bg: var(--secondary);
}

.list-page {
Expand Down
9 changes: 0 additions & 9 deletions assets/css/core/zmedia.css
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,6 @@
}
}

@media screen and (min-width: 768px) {
/* reset */
::-webkit-scrollbar {
width: 19px;
height: 11px;
}
}

/* footer */
@media screen and (max-width: 900px) {
.list-page .top-link {
Expand All @@ -48,7 +40,6 @@
/* terms; profile-mode; post-single; post-entry; post-entry; search; search */
.terms-tags a:active,
.button:active,
.share-buttons svg:active,
.post-entry:active,
.top-link,
#searchResults .focus,
Expand Down
63 changes: 63 additions & 0 deletions assets/css/includes/scroll-bar.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
/* from reset */
::-webkit-scrollbar-track {
background: 0 0;
}

.list:not(.dark)::-webkit-scrollbar-track {
background: var(--code-bg);
}

::-webkit-scrollbar-thumb {
background: var(--tertiary);
border: 5px solid var(--theme);
border-radius: var(--radius);
}

.list:not(.dark)::-webkit-scrollbar-thumb {
border: 5px solid var(--code-bg);
}

::-webkit-scrollbar-thumb:hover {
background: var(--secondary);
}

::-webkit-scrollbar:not(.highlighttable, .highlight table, .gist .highlight) {
background: var(--theme);
}

/* from post-single */
.post-content .highlighttable td .highlight pre code::-webkit-scrollbar {
display: none;
}

.post-content :not(table) ::-webkit-scrollbar-thumb {
border: 2px solid var(--hljs-bg);
background: rgb(113, 113, 117);
}

.post-content :not(table) ::-webkit-scrollbar-thumb:hover {
background: rgb(163, 163, 165);
}

.gist table::-webkit-scrollbar-thumb {
border: 2px solid rgb(255, 255, 255);
background: rgb(173, 173, 173);
}

.gist table::-webkit-scrollbar-thumb:hover {
background: rgb(112, 112, 112);
}

.post-content table::-webkit-scrollbar-thumb {
border-width: 2px;
}

/* from zmedia */
@media screen and (min-width: 768px) {

/* reset */
::-webkit-scrollbar {
width: 19px;
height: 11px;
}
}
42 changes: 21 additions & 21 deletions assets/js/fastsearch.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
import * as params from '@params';

var fuse; // holds our search engine
var resList = document.getElementById('searchResults');
var sInput = document.getElementById('searchInput');
var first, last, current_elem = null
var resultsAvailable = false;
let fuse; // holds our search engine
let resList = document.getElementById('searchResults');
let sInput = document.getElementById('searchInput');
let first, last, current_elem = null
let resultsAvailable = false;

// load our search index
window.onload = function () {
var xhr = new XMLHttpRequest();
let xhr = new XMLHttpRequest();
xhr.onreadystatechange = function () {
if (xhr.readyState === 4) {
if (xhr.status === 200) {
var data = JSON.parse(xhr.responseText);
let data = JSON.parse(xhr.responseText);
if (data) {
// fuse.js options; check fuse.js website for details
var options = {
let options = {
distance: 100,
threshold: 0.4,
ignoreLocation: true,
Expand All @@ -28,17 +28,17 @@ window.onload = function () {
};
if (params.fuseOpts) {
options = {
isCaseSensitive: params.fuseOpts.iscasesensitive ? params.fuseOpts.iscasesensitive : false,
includeScore: params.fuseOpts.includescore ? params.fuseOpts.includescore : false,
includeMatches: params.fuseOpts.includematches ? params.fuseOpts.includematches : false,
minMatchCharLength: params.fuseOpts.minmatchcharlength ? params.fuseOpts.minmatchcharlength : 1,
shouldSort: params.fuseOpts.shouldsort ? params.fuseOpts.shouldsort : true,
findAllMatches: params.fuseOpts.findallmatches ? params.fuseOpts.findallmatches : false,
keys: params.fuseOpts.keys ? params.fuseOpts.keys : ['title', 'permalink', 'summary', 'content'],
location: params.fuseOpts.location ? params.fuseOpts.location : 0,
threshold: params.fuseOpts.threshold ? params.fuseOpts.threshold : 0.4,
distance: params.fuseOpts.distance ? params.fuseOpts.distance : 100,
ignoreLocation: params.fuseOpts.ignorelocation ? params.fuseOpts.ignorelocation : true
isCaseSensitive: params.fuseOpts.iscasesensitive ?? false,
includeScore: params.fuseOpts.includescore ?? false,
includeMatches: params.fuseOpts.includematches ?? false,
minMatchCharLength: params.fuseOpts.minmatchcharlength ?? 1,
shouldSort: params.fuseOpts.shouldsort ?? true,
findAllMatches: params.fuseOpts.findallmatches ?? false,
keys: params.fuseOpts.keys ?? ['title', 'permalink', 'summary', 'content'],
location: params.fuseOpts.location ?? 0,
threshold: params.fuseOpts.threshold ?? 0.4,
distance: params.fuseOpts.distance ?? 100,
ignoreLocation: params.fuseOpts.ignorelocation ?? true
}
}
fuse = new Fuse(data, options); // build the index from the json file
Expand Down Expand Up @@ -106,12 +106,12 @@ sInput.addEventListener('search', function (e) {
// kb bindings
document.onkeydown = function (e) {
let key = e.key;
var ae = document.activeElement;
let ae = document.activeElement;

let inbox = document.getElementById("searchbox").contains(ae)

if (ae === sInput) {
var elements = document.getElementsByClassName('focus');
let elements = document.getElementsByClassName('focus');
while (elements.length > 0) {
elements[0].classList.remove('focus');
}
Expand Down
Loading