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

add column to published page #6

Closed
nickfrost opened this issue Dec 12, 2014 · 3 comments
Closed

add column to published page #6

nickfrost opened this issue Dec 12, 2014 · 3 comments

Comments

@nickfrost
Copy link

How can I add the author of the article to the spreadsheet in line with the article?

I tried adding a column 'author' to the Google Spreadsheet and add some names, but it didn't reflect on the live site.

Any suggestions?

Thanks!

Nick

@jlord
Copy link
Owner

jlord commented Dec 12, 2014

Yep!

You'll need to do a few things:

  1. Update your IFTTT recipe so that it sends author information to the spreadsheet
    • This should create an author column or just fill it into the one you've already created
  2. Update the table template in index.html by adding a column for author in the header and rows:
<script id="articleTable" type="text/html">
  <table>
    <tr><th class="fancy">&#8470;</th><th class="date">Date</th><th>Article</th><th>Author</th><th>Tags</th></tr>
    {{#rows}}
      <tr class="{{rowNumber}}"><td class="light-type">{{rowNumber}}</td><td class="date">{{date}}</td><td class="article"><a href="{{url}}" target="_blank">{{article}}</a></td><td>{{author}}</td>
      <td class="tag">{{#tags}}<a href="#">{{tag}}</a> {{/tags}}</td></tr>
    {{/rows}}
  </table>
</script>

🌴

@nickfrost
Copy link
Author

I added it and it looks great! (this is my first ever project on Github)

Thanks a lot for the quick response and help!

@jlord
Copy link
Owner

jlord commented Dec 13, 2014

Awesome! No problem, excited you're using it!

@jlord jlord closed this as completed Dec 13, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants