mirror of
https://github.com/wassname/template.git
synced 2026-07-15 11:27:10 +08:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4fac022efc | ||
|
|
dcf01cbc0f | ||
|
|
c6cd820bc3 | ||
|
|
6941ba780d |
@@ -30,6 +30,7 @@ const T = Template('d-hover-box', `
|
|||||||
box-shadow: 0 0 7px rgba(0, 0, 0, 0.1);
|
box-shadow: 0 0 7px rgba(0, 0, 0, 0.1);
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
padding: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
+15
-9
@@ -73,6 +73,8 @@ export function mergeFromYMLFrontmatter(target, source) {
|
|||||||
target.publishedDate = source.publishedDate;
|
target.publishedDate = source.publishedDate;
|
||||||
} else if (source.publishedDate.constructor === String) {
|
} else if (source.publishedDate.constructor === String) {
|
||||||
target.publishedDate = new Date(source.publishedDate);
|
target.publishedDate = new Date(source.publishedDate);
|
||||||
|
} else {
|
||||||
|
console.error('Don\'t know what to do with published date: ' + source.publishedDate);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
target.description = source.description;
|
target.description = source.description;
|
||||||
@@ -303,15 +305,19 @@ export class FrontMatter {
|
|||||||
target.url = this.url;
|
target.url = this.url;
|
||||||
target.githubUrl = this.githubUrl;
|
target.githubUrl = this.githubUrl;
|
||||||
target.previewURL = this.previewURL;
|
target.previewURL = this.previewURL;
|
||||||
target.volume = this.volume;
|
if (this.publishedDate) {
|
||||||
target.issue = this.issue;
|
target.volume = this.volume;
|
||||||
target.publishedDateRFC = this.publishedDateRFC;
|
target.issue = this.issue;
|
||||||
target.publishedYear = this.publishedYear;
|
target.publishedDateRFC = this.publishedDateRFC;
|
||||||
target.publishedMonth = this.publishedMonth;
|
target.publishedYear = this.publishedYear;
|
||||||
target.publishedDay = this.publishedDay;
|
target.publishedMonth = this.publishedMonth;
|
||||||
target.publishedMonthPadded = this.publishedMonthPadded;
|
target.publishedDay = this.publishedDay;
|
||||||
target.publishedDayPadded = this.publishedDayPadded;
|
target.publishedMonthPadded = this.publishedMonthPadded;
|
||||||
target.updatedDateRFC = this.updatedDateRFC;
|
target.publishedDayPadded = this.publishedDayPadded;
|
||||||
|
}
|
||||||
|
if (this.updatedDate) {
|
||||||
|
target.updatedDateRFC = this.updatedDateRFC;
|
||||||
|
}
|
||||||
target.concatenatedAuthors = this.concatenatedAuthors;
|
target.concatenatedAuthors = this.concatenatedAuthors;
|
||||||
target.bibtexAuthors = this.bibtexAuthors;
|
target.bibtexAuthors = this.bibtexAuthors;
|
||||||
target.slug = this.slug;
|
target.slug = this.slug;
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ distill-footer {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media(min-width: 1280px) {
|
@media(min-width: 1180px) {
|
||||||
.base-grid,
|
.base-grid,
|
||||||
distill-header,
|
distill-header,
|
||||||
d-title,
|
d-title,
|
||||||
|
|||||||
Reference in New Issue
Block a user