mirror of
https://github.com/omnivore-app/logseq-omnivore.git
synced 2026-05-21 09:10:35 +00:00
feat: use id as filename (#152)
This commit is contained in:
@@ -108,7 +108,7 @@ export const settingsSchema = async (): Promise<SettingSchemaDesc[]> => [
|
||||
title: t('Article Template'),
|
||||
default: '',
|
||||
description: t(
|
||||
'If the above item is off, want to sync to a separate page for each article, use the variable `{{{title}}}`, `{{{date}}}` or `{{{currentDate}}}` as the page name. For example, `{{{title}}}` will create a page for each article with the title of the article.'
|
||||
'If the above item is off, want to sync to a separate page for each article, use the variable `{{id}}`, `{{{title}}}`, `{{{date}}}` or `{{{currentDate}}}` as the page name. For example, `{{{title}}}` will create a page for each article with the title of the article.'
|
||||
),
|
||||
},
|
||||
{
|
||||
|
||||
@@ -17,6 +17,7 @@ type FunctionMap = {
|
||||
|
||||
export type ArticleView =
|
||||
| {
|
||||
id: string
|
||||
title: string
|
||||
author?: string
|
||||
omnivoreUrl: string
|
||||
@@ -146,6 +147,7 @@ const createArticleView = (
|
||||
? formatDate(new Date(article.archivedAt), preferredDateFormat)
|
||||
: undefined
|
||||
return {
|
||||
id: article.id,
|
||||
title: article.title,
|
||||
omnivoreUrl: `https://omnivore.app/me/${article.slug}`,
|
||||
siteName,
|
||||
|
||||
Reference in New Issue
Block a user