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
    # 彩蛋週|課程直播|切版班 by Sz ###### tags: `Sz` `第九週` `直播筆記` `2021夏季切版班` [【總】小組任務|2021夏季切版班 Team13](/GrA9x5TMQoGuIhR8xF7eyg) [網站上線全攻略](https://hackmd.io/WqYJs4b4SnCD9WeEG8MMVA?view) ## 步驟 1. 申請網址(godaddy) 2. 代管(cloudflare) 3. 管理 DNS,可以新增很多個導向網站 4. 以導向 github 為例 5. 加密 6. 新增一律加密規則(免費版有三次) 7. 主機 8. 上線後搜尋引擎的設定(google search console) 9. google analytics(GA) 觀察客戶行為 10. SEO ## 申請網址(godaddy) ``` 名稱.頂級網域 ``` 市面上有很多地方可以買、也有代理商(不同網域) 其實在哪買沒什麼差 想續約要注意網址蟑螂 ::: warning `.com`, `.com.tw` 是公司用,可能會被檢舉 ::: ### 購買步驟 ![](https://i.imgur.com/LKUyAFo.png) 全部no thank you 買純網址即可,他提供的加值服務可以透過下個步驟完成 ## 代管(cloudflare)(耐心) ![](https://i.imgur.com/sq05zlE.png) - 加密 (SSL,可使用 https 協定) - DNS 導到不同網站 - 可免費使用 ### 管理 DNS ::: info DNS 讓你可以自訂網址,方便指向對應主機位置 ::: 網路管理員->管理 DNS 買好的網址前綴可以無限新增,來導向不同的位置 ![](https://i.imgur.com/zbhMze2.png) ``` 可自訂新增的前綴.名稱.頂級網域 ``` `www.買的網址` ->某個主機 `shop.買的網址` ->某個主機(CNAME) #### CNAME 可以再進入導向的網站後台設定,設定托管會連到哪個細部網頁 #### 不同的前綴有不同功用 |類型|功用| |-|-| |A|IP| |mx|信箱| |cname|例如 github| ## 代管步驟 1. 複製到 godaddy 網頁名稱伺服器 2. ->輸入自己的名稱伺服器(cloudflare) ## 以導向 github 為例 :::info github pages 本身有加密,但如果要自訂網址,則要自己準備(在 cloudflare) ::: ## custom domain(耐心) ![](https://i.imgur.com/HF9s6zV.png) 經由 CNAME 導入的 github, 可以再到 github 的 custom domain 上去設定,讓他直接指回代管 ![](https://i.imgur.com/SFzNM4X.png) 他會 publish 到沒有 https 的網址 但因為 cloudflare 有提供 記得在「規則」的地方自動轉成 https 輸入記得要改成 https,就會有了 ![](https://i.imgur.com/S3vV9bI.png) ::: warning 目前已知 bug 重新 deploy 完會被導回預設網址,要重設定(耐心) ::: ## 回到 cloudflare ### SSL/TLS 跟 https 加密的設定有關 ### 規則 可以設定一律用 https, github pages 就會成功加密了(免費版限三次) ## 為什麼需要主機 容量 ::: info github 有容量限制(各repo 1G),真的太大的網站還是需要主機 ::: ## 購買主機通路 - emanager - heroku ### 查看流量 devtools->network 影音最吃流量 ### 減量 tinypng ![](https://i.imgur.com/IkSwobm.png) 如果流量一直被吃掉的話 可以使用規則->全部快取來避免一直被吃流量 ## google search console(耐心) 檢查網站狀態 1. 資源->新增資源 ![](https://i.imgur.com/I8GZXLv.png) 2. 驗證需要再回 cloudflare 新增 txt 類型的驗證文字 ## 安裝 Google Analytics(GA) 追蹤流量 分析顧客行為 沒有買網域也可以用 要貼一串到網站程式碼內 ![](https://i.imgur.com/faY7K5f.png) 新增帳戶,再新增資源 ![](https://i.imgur.com/WR6wOBC.png) 21:35 ## SEO :::danger h1 可以寫錯,但 title 不行 ::: ```htmlembedded= <title> 本頁主題 - 分類 - 品牌 </title> ``` - - 每個頁面標題不該一樣 - 本業主題該放最前面,而非品牌名 - 數量要達 10 頁以上,Google 才會開始讓你的連結在搜尋引擎上曝光 ## 分析類似網站 https://www.similarweb.com/ja/ ## 其他 ### GTM https://inboundmarketing.com.tw/websites-optimization/gtm%E6%95%99%E5%AD%B8-%E6%96%B0%E6%89%8B%E8%A7%80%E5%BF%B5%E7%AF%87.html ### bem 看這個 CSS 優良手冊 https://ithelp.ithome.com.tw/users/20040221/ironman/3567

    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