HexSlicing2021.Team13
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Write
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Versions and GitHub Sync Note Insights Sharing URL Help
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Write
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       owned this note    owned this note      
    Published Linked with GitHub
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    # gulp 與 git --- ###### tags `夏天` `第二週` --- * gulp如果要比喻的話比較像是去costco可以買到一次所有的東西,然而在傳統市場裡面就得一攤一攤買,大致上這樣。 https://awdr74100.github.io/2019-12-24-gulp-install/ * Git的話則是類似costco裡的店員需要不斷的更新貨架上的產品確保新鮮避免客人買到過期或者不堪用的。 https://gitbook.tw/chapters/introduction/what-is-git.html * 六角的youtube上也有很多影片可以參考看看 https://www.youtube.com/channel/UC-b2nGm0xLzic38Byti0VjA/search?query=git * 從 0 到 1 的 GitHub Pages 教學手冊 https://hackmd.io/@Albertnotes/B1_iKcAwI * 從gulp開始 https://hackmd.io/yWpLNMPRT2yvIR4Zq_idGw?view * 很有趣的GitHub https://github.com/wenyan-lang/wenyan * Git error - Fatal: remote origin already exists and how to fix it https://www.datree.io/resources/git-error-fatal-remote-origin-already-exists :::info git remote set-url origin [GitHub Repositories Url] git remote add origin [GitHub Repositories Url] git remote remove origin ::: * 用cmd上傳github步驟 git init # 若已經初始化過就可以不用輸入 git add . git commit -m "first commit" git remote add origin [GitHub   Repositories Url] git branch -M main git push -u origin main// 僅限第一次輸 入,往後只需要輸入 git push ###### 因為github內默認index.html為首頁,所以如果首頁名稱不是index.html需在pages後加上自己的首頁名稱,另若圖片較多需等待一下,由藍色方框轉成綠色的發佈成功 --- ejs是一個版型管理方式 --- > 透過 Gulp 部署網站流程 * layout(共通區塊),比方說頁首(header)頁尾(footer)及選單(nav-bar)(side-bar),每個頁面永遠會在畫面上的區塊 * 在terminal要先打gulp看有沒有被執行,被執行就會出現首頁,vscode開啟資料夾後dist內的index.html是被產生出來的,這個資料夾內的東西都不要動,開發時要修改文件應在app資料夾內找尋檔案。 * ![](https://i.imgur.com/tAxHuNT.png) * ![](https://i.imgur.com/SEUwkgb.png) * ![](https://i.imgur.com/UpyBwmS.png) * <% -content %>挖空部分就是拿來放置每頁不同的內容區塊 * [name=Summer.H] (https://i.imgur.com/qL4Zi0G.png) * title為頁面名稱可自行命名 1. layout:要引用的layout檔案,有時候會不只一個 2. engien:要使用的引擎 3. current:自己新增的變數(名稱) * app資料夾中的index.html+layout.ejs=dist資料夾中的index.html * ![](https://i.imgur.com/TAVGCFj.png) ![](https://i.imgur.com/N312gon.png) 因為是在layout部分增加內頁1,所以所有頁面都會出現 * 若要開啟其他頁面,則須在網址後面加上頁面名稱 ![](https://i.imgur.com/KRH3gwh.png) * 若要新增內頁則複製title......等四行內容稻頁首部分即可 * 編譯過程 ![](https://i.imgur.com/tWajU79.png) * asses(資產,scss、js、img),將資料全部放在assets資料夾內,style放置css相關,images放置圖片,js放置javascript,放置靜態文件 * js編譯範例![](https://i.imgur.com/5HmLJeF.png) --- 關機後要如何重新上傳資料 1. cd (資料夾位置)→gulp,重新編譯網頁 2. ctrl+c,中斷gulp 3. gulp build 4. gulp deploy 5. 即可更新網頁(可能下才會完整更新)

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully