diff --git a/.gitignore b/.gitignore index 76a0bf1..78cfdf8 100755 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,25 @@ -_site -.sass-cache -Gemfile.lock +# Jekyll specific +_site/ +.sass-cache/ +.jekyll-cache/ +.jekyll-metadata + +# Dependency directories +node_modules/ + +# Environment files +.env + +# Build output +dist/ + +# Temporary files +*.swp +.DS_Store + +# Logs +*.log + +# IDE-specific files +.vscode/ +.idea/ \ No newline at end of file diff --git a/README.md b/README.md index e305d0d..bdcb3d2 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,31 @@ -# Econ3.org Blog -We are exploring Collaborative Economics as a community-driven solution to latestage capitalism. +# Jekyll Blog with Author Metadata -Add to /posts to contribute :) +## Author Metadata Feature -All PRs welcome \ No newline at end of file +This Jekyll site supports rich author metadata for blog posts. + +### Adding Author Information + +In your blog post's front matter, you can specify author details: + +```yaml +--- +layout: post +title: "My Blog Post" +author: + name: "John Doe" + bio: "Software developer and tech enthusiast" + email: "john.doe@example.com" + twitter: "@johndoe" +--- +``` + +### Default Author + +If no author is specified, the site's default author (set in `_config.yml`) will be used. + +### Features +- Per-post author metadata +- Default site-wide author +- Displayed on post pages and index +- Flexible and extensible \ No newline at end of file diff --git a/_config.yml b/_config.yml index be54b6e..2c0d95b 100644 --- a/_config.yml +++ b/_config.yml @@ -1,33 +1,15 @@ -baseurl: "/" # The subpath of your site. Use "" if you're hosting a blog at the root level. -url: "http://ellekasai.github.io" # the base hostname & protocol for your site -title: "Co-Lab" +# Site settings +title: My Jekyll Blog +description: A blog with author metadata support -# This is used by feed.xml. Uncomment if you want to use it. -# description: "..." - -gems: - - jemoji -exclude: - - "README.md" - - "CHANGELOG.md" - - "CNAME" - - "Gemfile" - - "Gemfile.lock" -permalink: :title +# Default author configuration defaults: - - - scope: - path: "" - type: "pages" - values: - layout: "default" - - - scope: + - scope: path: "" type: "posts" values: - layout: "post" - -# Excerpt settings -excerpt_separator: -show_excerpts: true + author: + name: "Default Site Author" + bio: "A writer who shares thoughts and insights" + email: "default@example.com" + twitter: "@defaultauthor" \ No newline at end of file diff --git a/_layouts/post.html b/_layouts/post.html index cabc486..261cfdb 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -1,46 +1,27 @@ --- layout: default --- - -
-

{{ page.title }}

- {% include post-header.html %} -
-
- {{ content }} -
-
- {% include post-footer.html %} -
-{% if site.data.theme.show_post_navs %} - {% if page.previous or page.next %} -
- {% if page.previous %} -
-

- Older - · - View Archive ({{ site.posts.size }}) -

-

{{ page.previous.title }}

- {% assign prev_excerpt = page.previous.content | replace: '_By Al Morris_', '' | replace: 'By Al Morris', '' | replace: '*By Al Morris*', '' | strip_html | truncatewords: 25 %} -

{{ prev_excerpt }}

-
+
+
+

{{ page.title }}

+ + {% if page.author %} + - {% endif %} -{% endif %} + {% endif %} +
+ +
+ {{ content }} +
+
\ No newline at end of file diff --git a/_posts/2023-08-15-welcome-to-jekyll.md b/_posts/2023-08-15-welcome-to-jekyll.md new file mode 100644 index 0000000..fc57616 --- /dev/null +++ b/_posts/2023-08-15-welcome-to-jekyll.md @@ -0,0 +1,17 @@ +--- +layout: post +title: "Welcome to Jekyll with Author Metadata" +date: 2023-08-15 +author: + name: "John Doe" + bio: "Software developer and tech enthusiast" + email: "john.doe@example.com" + twitter: "@johndoe" +categories: [tech, blogging] +--- + +# Welcome to My Blog + +This is a sample blog post demonstrating the new author metadata feature in our Jekyll site. + +The author metadata allows us to provide rich information about the content creator directly in the front matter. \ No newline at end of file diff --git a/index.html b/index.html index 6fbffb3..7d357d7 100644 --- a/index.html +++ b/index.html @@ -1,21 +1,25 @@ --- +layout: default +title: Home --- - -{% for post in site.posts limit:site.data.theme.num_home_posts %} -
-

- {{ post.title }} -

- {% include post-header-home.html %} -
-
- {% assign excerpt_content = post.content | replace: '_By Al Morris_', '' | replace: 'By Al Morris', '' | replace: '*By Al Morris*', '' | strip_html | truncatewords: 50 %} - {{ excerpt_content }} -

Continue Reading →

-
-{% endfor %} -
-
- View All {{ site.posts | size }} Articles → -
+
+

Blog Posts

+ + {% for post in site.posts %} +
+

{{ post.title }}

+ + {% if post.author %} + + {% endif %} + +

{{ post.excerpt }}

+
+ {% endfor %} +
\ No newline at end of file