Skip to content

Comments

home page articles updated#69

Open
Cuiyuanxiu-Chen wants to merge 1 commit intomainfrom
google-sheets-migration
Open

home page articles updated#69
Cuiyuanxiu-Chen wants to merge 1 commit intomainfrom
google-sheets-migration

Conversation

@Cuiyuanxiu-Chen
Copy link

No description provided.

Copy link

@LiYueqian-James LiYueqian-James left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you upload a file with the google app script code as well? You can add this file under _data or someplace that makes sense. You can commit to this PR or you can merge this one and open another PR

fetch('https://script.google.com/macros/s/AKfycbxAAClnGBbo_rxRU2jUwmP4WvEadh_IKV9col_FTjpd0vgWX3KldgQMmJEnejzgyf2cQQ/exec')
.then(res => res.json())
.then(data => {
console.log(data);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's remove all logs before deployment

document.getElementById('article-card').innerHTML = data.map(article =>
`<div class="row">
<div class="col-md-4 col-sm-6">
<!-- <a href="#portfolioModal{{ post.modal-id }}" class="portfolio-link" data-toggle="modal"> -->

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's remove unused code as well

@LiYueqian-James
Copy link

Request Parameters
https://developers.google.com/apps-script/guides/web#request_parameters
We can use this feature to query data in different sections (home, merch, etc)

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

Successfully merging this pull request may close these issues.

2 participants