File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -106,9 +106,9 @@ class _PostListPageState extends State<PostListPage> {
106106 children: [
107107 Align (
108108 alignment: Alignment .topRight,
109- child: Text (currentDoc.meta.date != null
110- ? DateFormat ('yyyy-MM-dd' ).format (currentDoc.meta.date! )
111- : '날짜 정보 없음' ),
109+ child: Text (
110+ 'category: ${ currentDoc . meta . category }${ currentDoc . meta . date != null ? ' · ${ DateFormat ('yyyy-MM-dd' ).format (currentDoc .meta .date !)}' : ' · 날짜 정보 없음' }' ,
111+ ),
112112 ),
113113 MarkdownWidget (
114114 data: currentDoc.body,
@@ -256,7 +256,11 @@ class _PostListPageState extends State<PostListPage> {
256256 return ListTile (
257257 title: Text (d.meta.title,
258258 maxLines: 1 , overflow: TextOverflow .ellipsis),
259- subtitle: Text ('${d .meta .category } · $dateStr ' ),
259+ subtitle: Text (
260+ d.meta.tag.isNotEmpty
261+ ? '${d .meta .category } · ${d .meta .tag } · $dateStr '
262+ : '${d .meta .category } · $dateStr ' ,
263+ ),
260264 trailing: const Icon (Icons .chevron_right),
261265 onTap: () {
262266 final postPath =
You can’t perform that action at this time.
0 commit comments